SERVER: Implement Sprint Stun when taking explosive damage

This commit is contained in:
MotoLegacy 2024-01-30 16:02:07 -05:00
parent 0f9500276b
commit 7e9490fad7

View file

@ -639,6 +639,10 @@ void(entity inflictor, entity attacker, float damage2, float mindamage, float ra
final_damage /= radius;
final_damage *= 60;
}
// inflicting damage from an explosive introduces a delay before
// player can sprint again.
ent.sprint_delay = time + 3;
}
// shake the camera on impact
vector distance;