SC_AngelScript icon indicating copy to clipboard operation
SC_AngelScript copied to clipboard

CBasePlayer.m_flRespawnDelaytime cannot be set at the right time

Open MrOats opened this issue 8 years ago • 1 comments

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

MrOats avatar Apr 08 '17 13:04 MrOats

If i recall correctly, the game will clamp respawn delays at some point. That's probably having an effect here.

SamVanheer avatar Apr 08 '17 13:04 SamVanheer