Quote:
Originally Posted by TnTSCS
Sure, on round start would work, but maybe on player spawn, or shortly thereafter?
I'm going through the CS:S version and will have it updated soon, actually, I've been going through it for the last few days cleaning up the code and optimizing it.
|
not sure if that would work, here's the workflow I imagine:
1. OnRoundEnd
2. TerroristsWonTimer
3. RespawnPlayerTimer
4. SwitchPlayerTeam
But step 3 and 4 will call CS_RespawnPlayer().. if I Unfreeze in the OnPlayerSpawn Event Handler, it will unfreeze players during the teamswitching, wouldn't it? (freeze wouldn't have any effect)
fact is, OnPlayerSpawn it already ResetClientVariables() which unfreezes players... I thought about taking that out of the "ResetClientVariables()" function, but I'd need to see where this function is called (OnClientConnected / OnClientDisconnected only..) to make sure clients are able to move...
but if CS_RespawnPlayer() does not trigger OnPlayerSpawn I do not need to worry about the above.
__________________