From 47c02cec495b4188dfc122b77393429ae257e14b Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 13 Dec 2014 22:38:29 +1100 Subject: [PATCH] Fix shotgun nade damage --- qcsrc/server/mutators/mutator_nades.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/mutators/mutator_nades.qc b/qcsrc/server/mutators/mutator_nades.qc index 3341d30a7..3a440e28d 100644 --- a/qcsrc/server/mutators/mutator_nades.qc +++ b/qcsrc/server/mutators/mutator_nades.qc @@ -585,11 +585,14 @@ void nade_damage(entity inflictor, entity attacker, float damage, float deathtyp if(DEATH_ISWEAPON(deathtype, WEP_MACHINEGUN) || DEATH_ISWEAPON(deathtype, WEP_HMG)) damage = self.max_health * 0.1; - if((DEATH_ISWEAPON(deathtype, WEP_SHOCKWAVE) || DEATH_ISWEAPON(deathtype, WEP_SHOTGUN)) && (deathtype & HITTYPE_SECONDARY)) // WEAPONTODO + if(DEATH_ISWEAPON(deathtype, WEP_SHOCKWAVE) || DEATH_ISWEAPON(deathtype, WEP_SHOTGUN)) // WEAPONTODO + if(deathtype & HITTYPE_SECONDARY) { damage = self.max_health * 0.1; force *= 10; } + else + damage = self.max_health * 1.15; self.velocity += force; -- 2.39.2