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

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)
{