base_player: MakeTempSectator() will now make sure modelindex of the target
is set to 0.
This commit is contained in:
parent
4e62e833a3
commit
2c79071514
2 changed files with 6 additions and 0 deletions
|
@ -104,6 +104,11 @@ CSEv_PlayerSwitchWeapon_i(int w)
|
|||
{
|
||||
player pl = (player)self;
|
||||
|
||||
#ifdef WASTES
|
||||
if (pl.gflags & GF_IS_HEALING)
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (pl.activeweapon != w) {
|
||||
pl.activeweapon = w;
|
||||
Weapons_Draw(pl);
|
||||
|
|
|
@ -503,6 +503,7 @@ base_player::MakeTempSpectator(void)
|
|||
{
|
||||
classname = "player";
|
||||
flags = FL_CLIENT;
|
||||
modelindex = 0;
|
||||
max_health = health = 0;
|
||||
armor = 0;
|
||||
g_items = 0;
|
||||
|
|
Loading…
Reference in a new issue