Knockbacks are disabled on solid monsters. Add in small knockback effect on stone throw hit. Release Build 9641.

This commit is contained in:
2024-06-15 18:28:45 -05:00
parent c625b0767e
commit eb3562eca3
8 changed files with 39 additions and 8 deletions
+1
View File
@@ -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;