PadWorld-Entertainment / worldofpadman

World of PADMAN game repository
https://worldofpadman.net
Other
37 stars 8 forks source link

CGAME: Scoreboard shows medal count of last viewed player (or bot) when cycling through players as spectator #267

Closed kai-li-wop closed 1 month ago

kai-li-wop commented 1 month ago

Somehow the scoreboard shows PadHero (defense) medal count when spectating. All I did was switching through bot payers to obverse a bot match in CTL and when coming back to "my" scoreboard after being switching through all bot players, it shows a PadHero count but I did not take part in the match. Is it showing another bots stats?

grafik

kai-li-wop commented 1 month ago

Also bot goals of the last viewed bots are shown. So definitely when coming back to spectator you are stuck with the values of the last viewed bot.

Image

kai-li-wop commented 1 month ago

Note: When switching from being an active player to become a spectator you currently loose your medal count, all is set to zero and you need to start from zero, when joining a team again. So there is no reason to show the medal count when being a spectator.

In contrast the accuracy count is kept throughout the whole match, so you don't lose it when switching between teams and spectator, so we can always show it, but also as spectator it would not be an issue to simply hide it.

So a solution to mask the issue would be to simply hide medal and accuracy display when being a spectator.

kai-li-wop commented 1 month ago

Note: simply hiding the medal and accuracy display when being a spectator also hides it when following other players. So it would not be possible to see their medal and accuracy count.

kai-li-wop commented 1 month ago

fed7920788ab4859bfc80cc2485a766e3a9e69bc simply hides the medal and accuracy count for spectators which is not a fix but masks this issue. So I count it as solved.

kai-li-wop commented 1 month ago

abca30bba8b61c4beb134b2d5df0fd192482d8fa fixes an issue introduced with fed7920788ab4859bfc80cc2485a766e3a9e69bc.