From 7e9490fad76fee3849de682da429a090a548c275 Mon Sep 17 00:00:00 2001 From: MotoLegacy Date: Tue, 30 Jan 2024 16:02:07 -0500 Subject: [PATCH] SERVER: Implement Sprint Stun when taking explosive damage --- source/server/damage.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/server/damage.qc b/source/server/damage.qc index 63d1485..68fe153 100644 --- a/source/server/damage.qc +++ b/source/server/damage.qc @@ -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;