WildGamer's Dream

Now the car is not damaging when driving and the crouch button is pressed (unless you deliberately hit the wall at high speed).
This commit is contained in:
insellium 2023-11-20 23:45:56 +05:00
parent 3baa6a5e7e
commit d1a0772586

View file

@ -1483,7 +1483,7 @@ static void PM_AccelerateAndMoveBody( car_t *car, carBody_t *sBody, carBody_t *t
// damage stuff
VectorSubtract(tBody->v, sBody->v, vec);
impulseDamage = VectorLength(vec);
if (impulseDamage > 5.0f){
if (impulseDamage > 500.0f){
// Com_Printf("impulseDamage %f\n", impulseDamage);
pm->damage.damage += impulseDamage / 25.0f;
}