SC_AngelScript
SC_AngelScript copied to clipboard
CBasePlayer.m_flRespawnDelaytime cannot be set at the right time
When attempting to set m_flRespawnDelayTime at hook's PlayerKilled or PlayerSpawned, the game does not change their respawn delay. From what it seems, you have to set it the moment the on-display timer starts counting.
Test code: https://github.com/MrOats/AngelScript_SC_Plugins/blob/master/AdjustSpawntime.as
If i recall correctly, the game will clamp respawn delays at some point. That's probably having an effect here.