if(sf & ISF_LOCATION)
{
- this.origin = ReadVector();
- setorigin(this, this.origin);
- this.oldorigin = this.origin;
+ vector org = ReadVector();
+ setorigin(this, org);
+ this.oldorigin = org;
}
if(sf & ISF_ANGLES)
precache_model(this.mdl);
_setmodel(this, this.mdl);
- this.skin = ReadByte();
+ this.skin = ReadByte();
setsize(this, '-16 -16 0', '16 16 48');
}
void viewmodel_animate(entity this)
{
- if (autocvar_chase_active) return;
- if (STAT(HEALTH) <= 0) return;
+ if (autocvar_chase_active || STAT(HEALTH) <= 0) return;
entity view = CSQCModel_server2csqc(player_localentnum - 1);