Server: Respect mp_forcerespawn in multiplayer

This commit is contained in:
Marco Cawthorne 2023-11-13 10:44:32 -08:00
parent fa22d59818
commit 436dbe4641
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 3 additions and 1 deletions

View File

@ -145,7 +145,9 @@ HLMultiplayerRules::PlayerDeath(NSClientPlayer pl)
Sound_Play(pl, CHAN_AUTO, "player.die");
/* force respawn */
pl.ScheduleThink(PutClientInServer, 4.0f);
if (cvar("mp_forcerespawn") == 1) {
pl.ScheduleThink(PutClientInServer, 4.0f);
}
/* have we gone over the fraglimit? */
CheckRules();