Add a proximity knockback overload function that handles hurt list target types instead. Make large stone toss knockback only apply to targets actually hit. Release Build 9837.

This commit is contained in:
2024-06-25 03:11:56 -05:00
parent d8c2c615dc
commit afff03e201
7 changed files with 28 additions and 5 deletions
+1 -1
View File
@@ -932,7 +932,7 @@ geom2d::circle<float>Monster::BulletCollisionHitbox(){
}
void Monster::Knockback(const vf2d&vel){
if(IsSolid()||GetZ()>=1.f)return;
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;