From a025c7f5216b414f79095ce6ef9ee0ee131a2bef Mon Sep 17 00:00:00 2001 From: drjaska Date: Fri, 12 Mar 2021 06:58:56 +0200 Subject: [PATCH] Removed fall damage, initially added by an oversight. --- qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc b/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc index b868b14ac..93b6d6346 100644 --- a/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc +++ b/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc @@ -64,9 +64,10 @@ MUTATOR_HOOKFUNCTION(mayhem, Damage_Calculate) { entity frag_attacker = M_ARGV(1, entity); entity frag_target = M_ARGV(2, entity); + float frag_deathtype = M_ARGV(3, float); float frag_damage = M_ARGV(4, float); - if (frag_target == frag_attacker) + if (frag_target == frag_attacker || frag_deathtype == DEATH_FALL.m_id) frag_damage = 0; M_ARGV(4, float) = frag_damage; -- 2.39.2