I'm trying to determine whether my client is spectating or not and all I figure out is a roundabout way of tracking connections and players and it still requires non-insim knowledge about the client. This goes hand in hand that State doesn't just tell you your playerId or connectionId either.
Basically, all I can figure is that if I know my playername, i can request all playerinfo and also listen for players joining. If i see myself listed or joining, that's my playerId and i'm not spectating. If i see that playerId leaving, I know i'm spectating now.
Of course, there's the catch-22, that i can't find out my playername without knowing my playerId or connectionId.
Is there some information I'm overlooking?
If no one else has a solution, I'd would like to request that IS_STA uses one of it's Spare's to report the connectionId and/or playerId
Basically, all I can figure is that if I know my playername, i can request all playerinfo and also listen for players joining. If i see myself listed or joining, that's my playerId and i'm not spectating. If i see that playerId leaving, I know i'm spectating now.
Of course, there's the catch-22, that i can't find out my playername without knowing my playerId or connectionId.
Is there some information I'm overlooking?
If no one else has a solution, I'd would like to request that IS_STA uses one of it's Spare's to report the connectionId and/or playerId