]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Begin making players still gib in instagib
authorMario <zacjardine@y7mail.com>
Wed, 17 Dec 2014 00:20:46 +0000 (11:20 +1100)
committerMario <zacjardine@y7mail.com>
Wed, 17 Dec 2014 00:20:46 +0000 (11:20 +1100)
qcsrc/server/mutators/mutator_instagib.qc

index cd0ebdd0f052f7bb6cbdeea5e277094d0e02a257..d79b08b0522155b243a1bf7e78cbc7b478d314de 100644 (file)
@@ -364,6 +364,14 @@ MUTATOR_HOOKFUNCTION(instagib_ItemCountdown)
        return FALSE;
 }
 
+MUTATOR_HOOKFUNCTION(instagib_PlayerDies)
+{      
+       if(DEATH_ISWEAPON(frag_deathtype, WEP_VAPORIZER))
+               frag_damage = 1000; // always gib if it was a vaporizer death
+
+       return FALSE;
+}
+
 MUTATOR_HOOKFUNCTION(instagib_ItemTouch)
 {
        if(self.ammo_cells)
@@ -449,6 +457,7 @@ MUTATOR_DEFINITION(mutator_instagib)
        MUTATOR_HOOK(FilterItem, instagib_FilterItem, CBC_ORDER_ANY);
        MUTATOR_HOOK(CustomizeWaypoint, instagib_CustomizeWaypoint, CBC_ORDER_ANY);
        MUTATOR_HOOK(Item_RespawnCountdown, instagib_ItemCountdown, CBC_ORDER_ANY);
+       MUTATOR_HOOK(PlayerDies, instagib_PlayerDies, CBC_ORDER_ANY);
        MUTATOR_HOOK(PlayerDamage_SplitHealthArmor, instagib_SplitHealthArmor, CBC_ORDER_ANY);
        MUTATOR_HOOK(PlayerPowerups, instagib_PlayerPowerups, CBC_ORDER_ANY);
        MUTATOR_HOOK(ForbidThrowCurrentWeapon, instagib_ForbidThrowing, CBC_ORDER_ANY);