]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
linkexplode: use secondary mode properly
authorRudolf Polzer <divverent@alientrap.org>
Sat, 12 Feb 2011 12:59:18 +0000 (13:59 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 12 Feb 2011 12:59:18 +0000 (13:59 +0100)
qcsrc/server/w_crylink.qc

index aa5029c0a6ca623e7154672d045e3179702a841b..2578b62609b820014933f20bb3e542c38c8b0cec 100644 (file)
@@ -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);