]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2862 "Remove "tried to use cheat 'impulse 141'" console spam from Race/CTS"
authordrjaska <drjaska83@gmail.com>
Wed, 4 Sep 2024 09:51:54 +0000 (12:51 +0300)
committerdrjaska <drjaska83@gmail.com>
Sun, 20 Oct 2024 02:40:24 +0000 (05:40 +0300)
https://gitlab.com/xonotic/xonotic-data.pk3dir/-/issues/2862

qcsrc/server/client.qc

index bd7ab6a9bffd76218ea7ebeb451c3e2b053e92b2..643df310bef3090600cdfaf5628606c7b77579f9 100644 (file)
@@ -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);