From: Mario Date: Tue, 21 Feb 2017 02:21:35 +0000 (+1000) Subject: Prevent picking up buffs immediately after spawning X-Git-Tag: xonotic-v0.8.2~190 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eb3ae7a87171636d6185f543dd5c7382929ecd1a;p=xonotic%2Fxonotic-data.pk3dir.git Prevent picking up buffs immediately after spawning --- diff --git a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc index 73fe22093..a65d57d72 100644 --- a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc +++ b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc @@ -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;