HLMultiplayeRules: implement PlayerRequestRespawn method

This commit is contained in:
Marco Cawthorne 2023-02-12 12:57:36 -08:00
parent f313017c74
commit 37d401bcee
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,17 @@ HLMultiplayerRules::IsTeamplay(void)
return false;
}
bool
HLMultiplayerRules::PlayerRequestRespawn(NSClientPlayer bp)
{
if (bp.TimeSinceDeath() > 0.5f) {
bp.ScheduleThink(PutClientInServer, 0.0f);
return true;
}
return false;
}
void
HLMultiplayerRules::InitPostEnts(void)
{