]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Count removal for idling as a forfeit in LMS, fixes #2600
authorMario <mario.mario@y7mail.com>
Sun, 20 Jun 2021 23:26:36 +0000 (09:26 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 20 Jun 2021 23:26:36 +0000 (09:26 +1000)
qcsrc/server/client.qc

index 7217c4b87b0df4ae0f2105bd633ca8a4abbca118..e0f0e2b19ef665ae190020c295f6a24b1100e7ba 100644 (file)
@@ -6,6 +6,7 @@
 #include <common/effects/qc/globalsound.qh>
 #include <common/ent_cs.qh>
 #include <common/gamemodes/_mod.qh>
+#include <common/gamemodes/gamemode/lms/sv_lms.qh>
 #include <common/gamemodes/gamemode/nexball/sv_nexball.qh>
 #include <common/items/_mod.qh>
 #include <common/items/inventory.qh>
@@ -2725,6 +2726,7 @@ void PlayerPostThink (entity this)
                                        Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_MOVETOSPEC_IDLING, this.netname, maxidle_time);
                                        if (this.caplayer)
                                                this.caplayer = 0;
+                                       this.lms_spectate_warning = 2; // TODO: mutator hook for players forcibly moved to spectator?
                                        PutObserverInServer(this);
                                }
                                else