From ed90f21ce0197c6583c2df3e0e15792e39e44829 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 1 Jul 2016 08:13:57 +1000 Subject: [PATCH] Forbid weapon use when match is over --- qcsrc/server/weapons/weaponsystem.qc | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2