Instead of keeping the state of the player's team and relying on the team event callback to change it, since we're already taking the player's team on draw, just do it by draw instead. This means we won't need to hold an extra state and reduce mismatch errors.
This also fixes/deals with how the HUD is presented to the spectator, now all players and all health shown to the spectator
Also a fix on cursor getting stuck when hitting this issue
This changes some variables naming from friendly/enemy to left/right due to assuming spectator's view of those HUD now. Although not all as that'll increase the PR diff.
Refactor DrawEnemy/DrawFriend into a more generic DrawPlayer. Now able to handle if a spectator seeing the HUD.
Description
DrawEnemy/DrawFriend
into a more genericDrawPlayer
. Now able to handle if a spectator seeing the HUD.Toolchain
Linked Issues