From: drjaska Date: Wed, 4 Sep 2024 09:51:54 +0000 (+0300) Subject: Fix #2862 "Remove "tried to use cheat 'impulse 141'" console spam from Race/CTS" X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=86894efc712f2c63b4d37a33b3040ac7a682d411;p=xonotic%2Fxonotic-data.pk3dir.git Fix #2862 "Remove "tried to use cheat 'impulse 141'" console spam from Race/CTS" https://gitlab.com/xonotic/xonotic-data.pk3dir/-/issues/2862 --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index bd7ab6a9b..643df310b 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2305,7 +2305,9 @@ bool PlayerThink(entity this) if (frametime && autocvar_sv_show_entnum) show_entnum(this); if (IS_DEAD(this)) { - if (this.personal && g_race_qualifying) { + if (this.personal && g_race_qualifying + && (autocvar_g_allow_checkpoints || CheatsAllowed(this, CHIMPULSE_SPEEDRUN.impulse, 0, 0, false, true))) + { if (time > this.respawn_time) { STAT(RESPAWN_TIME, this) = this.respawn_time = time + 1; // only retry once a second respawn(this);