]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clean up rocketminsta hook
authorMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 04:02:29 +0000 (14:02 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 04:02:29 +0000 (14:02 +1000)
qcsrc/server/mutators/mutator_rocketminsta.qc

index 217d33f1af00a00ad870db99399b84a575e7d20f..6b7f293d1144f9af8c6d361dd5ef53e6ee6384e3 100644 (file)
@@ -19,14 +19,12 @@ MUTATOR_HOOKFUNCTION(rm, PlayerDamage_Calculate)
 }
 
 MUTATOR_HOOKFUNCTION(rm, PlayerDies)
-{      
-       if(     /*(DEATH_ISWEAPON(frag_deathtype, WEP_VAPORIZER))*/
-               (autocvar_g_rm && DEATH_ISWEAPON(frag_deathtype, WEP_DEVASTATOR.m_id))
-       ||      (((autocvar_g_rm && autocvar_g_rm_laser == 1) || autocvar_g_rm_laser == 2) && DEATH_ISWEAPON(frag_deathtype, WEP_ELECTRO.m_id))
-       )
-               frag_damage = 1000; // always gib if it was a vaporizer death
+{
+       // we do it this way, so rm can be toggled during the match
+       if(!autocvar_g_rm) { return false; }
 
-       //(get_weaponinfo(WEP_VAPORIZER)).weaponthrowable = 1; // throwing is forbidden by a mutator hook, enabling this for drop on death
+       if(DEATH_ISWEAPON(frag_deathtype, WEP_DEVASTATOR.m_id) || DEATH_ISWEAPON(frag_deathtype, WEP_ELECTRO.m_id))
+               frag_damage = 1000; // always gib if it was a vaporizer death
 
        return false;
 }