From: ItsMe Date: Tue, 29 Jan 2013 19:27:23 +0000 (+0100) Subject: make other weapon cycle impulses also change spectating speed X-Git-Tag: xonotic-v0.7.0~114 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a1b051163a5405833fecdbb77d787d59a2924978;p=xonotic%2Fxonotic-data.pk3dir.git make other weapon cycle impulses also change spectating speed --- diff --git a/qcsrc/server/cl_physics.qc b/qcsrc/server/cl_physics.qc index 3e2268d89..4e5f007e3 100644 --- a/qcsrc/server/cl_physics.qc +++ b/qcsrc/server/cl_physics.qc @@ -897,15 +897,15 @@ void SV_PlayerPhysics() maxspd_mod = autocvar_sv_spectator_speed_multiplier; if(!self.spectatorspeed) self.spectatorspeed = maxspd_mod; - if(self.impulse && self.impulse <= 19) + if(self.impulse && self.impulse <= 19 || self.impulse >= 200 && self.impulse <= 209 || self.impulse >= 220 && self.impulse <= 229) { if(self.lastclassname != "player") { - if(self.impulse == 10 || self.impulse == 15 || self.impulse == 18) + if(self.impulse == 10 || self.impulse == 15 || self.impulse == 18 || self.impulse >= 200 && self.impulse <= 209) self.spectatorspeed = bound(1, self.spectatorspeed + 0.5, 5); else if(self.impulse == 11) self.spectatorspeed = maxspd_mod; - else if(self.impulse == 12 || self.impulse == 16 || self.impulse == 19) + else if(self.impulse == 12 || self.impulse == 16 || self.impulse == 19 || self.impulse >= 220 && self.impulse <= 229) self.spectatorspeed = bound(1, self.spectatorspeed - 0.5, 5); else if(self.impulse >= 1 && self.impulse <= 9) self.spectatorspeed = 1 + 0.5 * (self.impulse - 1);