HLMultiplayeRules: implement PlayerRequestRespawn method
This commit is contained in:
parent
f313017c74
commit
37d401bcee
1 changed files with 11 additions and 0 deletions
|
@ -26,6 +26,17 @@ HLMultiplayerRules::IsTeamplay(void)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
HLMultiplayerRules::PlayerRequestRespawn(NSClientPlayer bp)
|
||||||
|
{
|
||||||
|
if (bp.TimeSinceDeath() > 0.5f) {
|
||||||
|
bp.ScheduleThink(PutClientInServer, 0.0f);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
HLMultiplayerRules::InitPostEnts(void)
|
HLMultiplayerRules::InitPostEnts(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue