MantisBT - Zandronum
View Issue Details
0003716Zandronum[All Projects] Bugpublic2019-09-26 18:212019-09-26 18:21
HiM 
 
normalmajorsometimes
newopen 
MicrosoftWindowsXP/Vista/7
 
 
0003716: Player changes to different PlayerClass upon respawn
Sometimes Player changes to different PlayerClass upon respawn.
This breaks gameplay and any ACS based on PlayerClass value (==0, ==1 ==2 etc).

Joined player spectator has PlayerClass value "0".
First PlayerClass has value "0", Second PlayerClass has value "1" etc.
Flag "IsSpectator" is different, spectator has same value of "0" as first in order PlayerClass.

1 Team can have multiple PlayerClasses. When player joins certain PlayerClass, that value, i suppose, should be permanent across respawns and level loads until:
- player spectates
- player morphs to another PlayerClass
- player joins another PlayerClass by own will
Rare cases, but permanent is not the case upon respawns somehow.

PlayerClass value is not reset to "0" upon spectate. It retains last PlayerClass value, like "2".

Can be observed in rare ocassions.

Current PlayerClass value can be tested with ACS printing on screen PlayerClass of player.
Maybe this is due to old Zandronum coding that needs review, or some script that somehow alters PlayerClass without really need to do that.

Besides, built-in ACS counters are for Player Teams only (counting players per teams), but there is no built-in way to count Players per PlayerClass unless TID is used for counting purposes, or some other workarounds.
Is PlayerClass a skulltag feature?
No tags attached.
Issue History
2019-09-26 18:21HiMNew Issue

There are no notes attached to this issue.