From: Rudolf Polzer Date: Sat, 12 Feb 2011 12:59:18 +0000 (+0100) Subject: linkexplode: use secondary mode properly X-Git-Tag: xonotic-v0.5.0~311^2~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=622233bd4199b10c803307a048b919d0d050b55b;p=xonotic%2Fxonotic-data.pk3dir.git linkexplode: use secondary mode properly --- diff --git a/qcsrc/server/w_crylink.qc b/qcsrc/server/w_crylink.qc index aa5029c0a..2578b6260 100644 --- a/qcsrc/server/w_crylink.qc +++ b/qcsrc/server/w_crylink.qc @@ -57,7 +57,10 @@ void W_Crylink_LinkExplode (entity e, entity e2) if(e == e.realowner.crylink_lastgroup) e.realowner.crylink_lastgroup = world; - RadiusDamage (e, e.realowner, autocvar_g_balance_crylink_primary_damage * a, autocvar_g_balance_crylink_primary_edgedamage * a, autocvar_g_balance_crylink_primary_radius, world, autocvar_g_balance_crylink_primary_force * a, e.projectiledeathtype, other); + if(e.projectiledeathtype & HITTYPE_SECONDARY) + RadiusDamage (e, e.realowner, autocvar_g_balance_crylink_secondary_damage * a, autocvar_g_balance_crylink_secondary_edgedamage * a, autocvar_g_balance_crylink_secondary_radius, world, autocvar_g_balance_crylink_secondary_force * a, e.projectiledeathtype, other); + else + RadiusDamage (e, e.realowner, autocvar_g_balance_crylink_primary_damage * a, autocvar_g_balance_crylink_primary_edgedamage * a, autocvar_g_balance_crylink_primary_radius, world, autocvar_g_balance_crylink_primary_force * a, e.projectiledeathtype, other); if(e.queuenext != e2) W_Crylink_LinkExplode(e.queuenext, e2);