]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Prevent picking up buffs immediately after spawning
authorMario <mario@smbclan.net>
Tue, 21 Feb 2017 02:21:35 +0000 (12:21 +1000)
committerMario <mario@smbclan.net>
Tue, 21 Feb 2017 02:21:35 +0000 (12:21 +1000)
qcsrc/common/mutators/mutator/buffs/sv_buffs.qc

index 73fe2209342694887ad9dd97444435235c9524b5..a65d57d729b615fde18d66c6d62fc61cac0baa82 100644 (file)
@@ -558,6 +558,7 @@ MUTATOR_HOOKFUNCTION(buffs, PlayerSpawn)
 
        player.buffs = 0;
        player.buff_time = 0;
+       player.buff_shield = time + 0.5; // prevent picking up buffs immediately
        // reset timers here to prevent them continuing after re-spawn
        player.buff_disability_time = 0;
        player.buff_disability_effect_time = 0;