Targets already in the air should not be knocked back. Fix image loading dependencies internally within the engine so they work even during unit testing. Rearrange some item initializing functions to occur after the GFX map is reset so all graphics are loaded properly. Release Build 9835.
This commit is contained in:
@@ -932,7 +932,7 @@ geom2d::circle<float>Monster::BulletCollisionHitbox(){
|
||||
}
|
||||
|
||||
void Monster::Knockback(const vf2d&vel){
|
||||
if(IsSolid())return;
|
||||
if(IsSolid()||GetZ()>=1.f)return;
|
||||
//A new angle will be applied, but will be constrained by whichever applied velocity is strongest (either the current velocity, or the new one). This prevents continuous uncapped velocities to knockbacks applied.
|
||||
if(vel==vf2d{})return;
|
||||
float maxVelThreshold;
|
||||
|
||||
Reference in New Issue
Block a user