Closed JimPix1 closed 9 months ago
Update on this: ammo is shown correctly, but HP isn't. OpenSpades doesn't show ammo or hp while spectating
Ah, I figured out what the issue is. The issue is that when the player's ammo was spent BEFORE connecting to the server, then if you join internally the client thinks the player has full ammo. If that players shoots/spends ammo or if it's reset by the server (I tested on a tent), then this does get reflected, as in the ammo will be subtracted, but from the starting position of full ammo, so it will still be incorrect. In which case I'd suggest doing the same thing OpenSpades does - simply hiding the ammo/hp. And as Jim pointed out, theoretically players could use this to cheat in for example arena mode (even though I'd say it's quite a stretch). We can keep the code which keeps track of this in spectator. As this is a "bug" in the protocol, this can be fixed later
When you spectate a player in BetterSpades, the ammo and HP indicators are displayed on-screen but are always full/the default even if the person you're spectating does not have full ammo or full HP. Essentially, the indicators are pointless and shouldn't be there. It would be better to remove them while in spectator mode.