From 6ace8078489e1dca00a78620355a6e00793740b2 Mon Sep 17 00:00:00 2001 From: Samual Date: Wed, 5 Oct 2011 00:28:47 -0400 Subject: [PATCH] Fix the exception for hagar W_CheckProjectileDamage function (previously was overriding with linkexplode even when using primary and such... now it only does if it actually is the proper scenario.) --- qcsrc/server/w_hagar.qc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/w_hagar.qc b/qcsrc/server/w_hagar.qc index 76d2f9414..7d9db5c39 100644 --- a/qcsrc/server/w_hagar.qc +++ b/qcsrc/server/w_hagar.qc @@ -26,8 +26,13 @@ void W_Hagar_Damage (entity inflictor, entity attacker, float damage, float deat return; float is_linkexplode = ((inflictor.realowner == self.realowner) - && ((inflictor.projectiledeathtype & HITTYPE_SECONDARY) && (self.projectiledeathtype & HITTYPE_SECONDARY)) - && autocvar_g_balance_hagar_secondary_load_linkexplode); + && (inflictor.projectiledeathtype & HITTYPE_SECONDARY) + && (self.projectiledeathtype & HITTYPE_SECONDARY)); + + if(is_linkexplode) + is_linkexplode = (is_linkexplode && autocvar_g_balance_hagar_secondary_load_linkexplode); + else + is_linkexplode = -1; // not secondary load, so continue as normal without exception. if (!W_CheckProjectileDamage(inflictor.realowner, self.realowner, deathtype, is_linkexplode)) return; // g_projectiles_damage says to halt -- 2.39.2