From: Mario Date: Thu, 30 Jun 2016 22:13:57 +0000 (+1000) Subject: Forbid weapon use when match is over X-Git-Tag: xonotic-v0.8.2~700^2~111 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ed90f21ce0197c6583c2df3e0e15792e39e44829;p=xonotic%2Fxonotic-data.pk3dir.git Forbid weapon use when match is over --- diff --git a/qcsrc/server/weapons/weaponsystem.qc b/qcsrc/server/weapons/weaponsystem.qc index fded1d7b4..32e9a5670 100644 --- a/qcsrc/server/weapons/weaponsystem.qc +++ b/qcsrc/server/weapons/weaponsystem.qc @@ -408,6 +408,7 @@ bool forbidWeaponUse(entity player) if (time < game_starttime && !autocvar_sv_ready_restart_after_countdown) return true; if (round_handler_IsActive() && !round_handler_IsRoundStarted()) return true; if (player.player_blocked) return true; + if (gameover) return true; if (STAT(FROZEN, player)) return true; if (player.weapon_blocked) return true; return false;