austinchambers / multiplayer-vr

A multiplayer VR game
1 stars 2 forks source link

Store Player ID In PlayerState #92

Closed austinchambers closed 9 years ago

austinchambers commented 9 years ago

Now that we have a PlayerState class, the proper thing to do is to store the player ID there. This will likely help with some network troubleshooting issues as well (e.g., #88)

austinchambers commented 9 years ago

Fixed by the following:

  1. Removed "Player Index" from PlayerController class. Now that we store this in Player State, it's redundant. Also updated locations that use this.
  2. Used Player Id in VRGameMode and also set it there when players log in (based off of array size, not self incrementing counter). Also removed SpawnCounter.
  3. Added PlayerId to the PlayerState class.