MantisBT - Zandronum
View Issue Details
0003982Zandronum[All Projects] Bugpublic2022-03-22 05:312022-03-22 05:33
shadowpikachu 
 
normalminoralways
newopen 
3.1 
 
0003982: SetPlayerClass force respawn does not work and stops script in TLMS
When a TLMS Mode is active and in progress, any script that attempts to respawn someone runs the line to set the playerclass/any other things on that tic, it sets the class and stops there, not respawning.

Assumedly it gets to the code where it tries to respawn you and promptly dies.
Run a script like:

SetPlayerClass(PlayerNumber(),[whateverclass],1);
Delay(10);
SetPlayerClass(PlayerNumber(),[whateverclass2],0);

Here it would stop before the delay never setting your class back or respawning you, but without it:

SetPlayerClass(PlayerNumber(),[whateverclass],1);
SetPlayerClass(PlayerNumber(),[whateverclass2],0);

Here it would run both then stop since it's on the same tic, resulting in you sitting at [whateverclass2].

Neither case respawns you in TLMS.

Replace [whateverclass] with a class and set [whateverclass2] to another class.
Using setdeadspectator is not a valid substitute, maybe morphing but that has it's own less clean procedures to get working.

I'd expect if it didn't work with TLMS for reasons it would at least not stop the script, perhaps it needs to be forced?
No tags attached.
Issue History
2022-03-22 05:31shadowpikachuNew Issue

There are no notes attached to this issue.