From: terencehill Date: Tue, 11 Jun 2013 13:18:04 +0000 (+0200) Subject: Allow weapon change impulses when not in round time X-Git-Tag: xonotic-v0.8.0~243^2~1^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ca1f34a7fb758f24785b789e9b65718c46fb763d;p=xonotic%2Fxonotic-data.pk3dir.git Allow weapon change impulses when not in round time --- 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