X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcl_impulse.qc;h=d09c0704fe56dbc2536a52a74df8a93381318560;hb=d0db4b5db11800d291fbdba93a67e8487fa033e2;hp=9e662bb848e204b1a5b59dcd283424247d396951;hpb=5836f4f65fb9b51c0f48b47b936033c7a799f273;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/cl_impulse.qc b/qcsrc/server/cl_impulse.qc index 9e662bb84..d09c0704f 100644 --- a/qcsrc/server/cl_impulse.qc +++ b/qcsrc/server/cl_impulse.qc @@ -46,9 +46,19 @@ void ImpulseCommands (void) return; self.impulse = 0; - if (timeoutStatus == 2) //don't allow any impulses while the game is paused + // forbid impulses when not in round time + if(round_handler_IsActive() && !round_handler_IsRoundStarted()) return; + if (timeout_status == TIMEOUT_ACTIVE) //don't allow any impulses while the game is paused + return; + + if(self.vehicle) + if(self.vehicle.deadflag == DEAD_NO) + if(self.vehicle.vehicles_impusle) + if(self.vehicle.vehicles_impusle(imp)) + return; + if(CheatImpulse(imp)) { } @@ -159,11 +169,14 @@ void ImpulseCommands (void) case 33: if(self.deadflag == DEAD_NO && teamplay) { - wp = WaypointSprite_Attach("helpme", TRUE, RADARICON_HELPME, '1 0.5 0'); - if(!wp) - WaypointSprite_HelpMePing(self.waypointsprite_attachedforcarrier); - else - WaypointSprite_Ping(wp); + if not(MUTATOR_CALLHOOK(HelpMePing)) + { + wp = WaypointSprite_Attach("helpme", TRUE, RADARICON_HELPME, '1 0.5 0'); + if(!wp) + WaypointSprite_HelpMePing(self.waypointsprite_attachedforcarrier); + else + WaypointSprite_Ping(wp); + } sprint(self, "HELP ME attached\n"); } break;