From ca1f34a7fb758f24785b789e9b65718c46fb763d Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 11 Jun 2013 15:18:04 +0200 Subject: [PATCH] Allow weapon change impulses when not in round time --- qcsrc/server/cl_impulse.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/cl_impulse.qc b/qcsrc/server/cl_impulse.qc index 3288bbc72..d997409e2 100644 --- a/qcsrc/server/cl_impulse.qc +++ b/qcsrc/server/cl_impulse.qc @@ -46,8 +46,9 @@ void ImpulseCommands (void) return; self.impulse = 0; - // forbid impulses when not in round time + // allow only weapon change impulses when not in round time if(round_handler_IsActive() && !round_handler_IsRoundStarted()) + if(imp == 17 || (imp >= 20 && imp < 200) || imp > 253) return; if (timeout_status == TIMEOUT_ACTIVE) //don't allow any impulses while the game is paused -- 2.39.2