Knockbacks are disabled on solid monsters. Add in small knockback effect on stone throw hit. Release Build 9641.
This commit is contained in:
@@ -912,6 +912,7 @@ geom2d::circle<float>Monster::BulletCollisionHitbox(){
|
||||
}
|
||||
|
||||
void Monster::Knockback(const vf2d&vel){
|
||||
if(IsSolid())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