baso88 / SC_AngelScript

Sven Co-op AngelScript documentation, tutorials, sample code and tools
41 stars 4 forks source link

CBasePlayer.m_flRespawnDelaytime cannot be set at the right time #50

Open MrOats opened 7 years ago

MrOats commented 7 years ago

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

SamVanheer commented 7 years ago

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