etlegacy
etlegacy copied to clipboard
Game does not remember last person you spectated when you die
When you die and follow a certain player while waiting for respawn, it should remember that player the next time you die and automatically follow him if he is alive, but it doesn't.
"IIRC it is basically vanilla code, who you spectate is saved into spectatorClient and when that person dies it is overwritten when it switches to someone else. I think new field is necessary just to store the client you want to spectate, at least that was my conclusion when I looked at it back then, maybe there is better way or I remember wrong.
Just a thought, maybe it could be possible (and simpler) to just check if the person we currently follow is dead, and instead update it to whoever that person is following (instead of overwriting spectatorClient), but it could get ugly I guess." - ryzyk_krzysiek