Server: Make it so you can't walk around after you die.

This commit is contained in:
Marco Cawthorne 2022-07-09 16:46:55 -07:00
parent 722a6ac5cd
commit cacc015ae0
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 5 additions and 2 deletions

View File

@ -59,8 +59,11 @@ void
TFCGameRules::PlayerDeath(NSClientPlayer pp) TFCGameRules::PlayerDeath(NSClientPlayer pp)
{ {
player pl = (player)pp; player pl = (player)pp;
pp.think = PlayerRespawn;
pp.nextthink = time + 4.0f; pl.SetSolid(SOLID_NOT);
pl.SetMovetype(MOVETYPE_NONE);
pl.think = PlayerRespawn;
pl.nextthink = time + 4.0f;
} }
void void