What happened?
When a player that joins the server selects a class, but the game decides they shouldn’t spawn in (such as during postgame, the final killcam, or a round of Search and Destroy), the player gets kicked out of the server with the error message: Server Disconnected - Your stats could not be validated, and on the console of the dedicated server it would show: <player num>:<player name> PATCH_BAD_STATS. This seems to be caused by the function fix_godmode_class_exploit in Plutonium’s script scripts\mp\mp_spawn_fix.gsc, specifically self.custom_class being undefined when the player is not spawned in immediately after selecting a class for the first time since joining.
Expected result
For the player to not get falsely kicked after selecting a class for the first time since joining the server when the selection is made during a period that doesn’t make the player spawn in.
Steps to reproduce
- Join a dedicated server, preferably one on Search and Destroy with players already in it on both teams.
- Select a class once the final killcam starts playing, or if on an SnD server, do so after some time has passed for you to not spawn in.
Affected game(s)
BO1 Multiplayer (T5MP)
Affected component(s)
Server (dedi)
Plutonium version
r4855
Relevant logs
Client console:
Com_ERROR: Server Disconnected - Your stats could not be validated.
Server console:
6:Hadi77KSA PATCH_BAD_STATS
Additional information
No response
Operating system
No response
Plutonium profile
No response
Discord username
hadi77ksa