mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 03:41:15 +00:00
SERVER: Implement Sprint Stun when taking explosive damage
This commit is contained in:
parent
0f9500276b
commit
7e9490fad7
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue