HLMultiplayerRules: Call pl.Death() to take care of most of the work
declaring a client dead.
This commit is contained in:
parent
2087fae53b
commit
8b55c8acef
1 changed files with 1 additions and 5 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue