HLMultiplayerRules: Call pl.Death() to take care of most of the work

declaring a client dead.
This commit is contained in:
Marco Cawthorne 2022-03-02 20:38:29 -08:00
parent 2087fae53b
commit 8b55c8acef
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 1 additions and 5 deletions

View File

@ -77,14 +77,10 @@ HLMultiplayerRules::PlayerDeath(base_player pl)
}
/* now let's make the real client invisible */
pl.SetModelindex(0);
pl.SetMovetype(MOVETYPE_NONE);
pl.SetSolid(SOLID_NOT);
pl.Death();
pl.takedamage = DAMAGE_NO;
pl.gflags &= ~GF_FLASHLIGHT;
pl.gflags &= ~GF_EGONBEAM;
pl.armor = pl.activeweapon = pl.g_items = 0;
pl.health = 0;
Sound_Play(pl, CHAN_AUTO, "player.die");