]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Forbid weapon use when match is over
authorMario <mario@smbclan.net>
Thu, 30 Jun 2016 22:13:57 +0000 (08:13 +1000)
committerMario <mario@smbclan.net>
Thu, 30 Jun 2016 22:13:57 +0000 (08:13 +1000)
qcsrc/server/weapons/weaponsystem.qc

index fded1d7b478345df64353e196968e8a208646462..32e9a5670299b9dc00de52256f5081c3b77d49ca 100644 (file)
@@ -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;