NSRenderableEntity: Respect the .traileffectnum field
This commit is contained in:
parent
775e210a06
commit
f2c41e3def
2 changed files with 6 additions and 3 deletions
|
@ -735,8 +735,6 @@ NSProjectile::ReceiveEntity(float flNew, float flChanged)
|
|||
READENTITY_ANGLE(m_flRenderAmt, PROJ_CHANGED_RENDERAMT)
|
||||
setmodelindex(this, modelindex);
|
||||
setorigin(this, origin);
|
||||
|
||||
traileffectnum = -fabs(traileffectnum);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -554,7 +554,7 @@ entities, so TODO: make things like anims, sentences apply
|
|||
only to relevant child-classes
|
||||
============
|
||||
*/
|
||||
var vector autocvar_testscale = [1,1,1];
|
||||
.vector last_pos;
|
||||
float
|
||||
NSRenderableEntity::predraw(void)
|
||||
{
|
||||
|
@ -591,6 +591,11 @@ NSRenderableEntity::predraw(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (traileffectnum) {
|
||||
trailparticles(traileffectnum, this, oldorigin, origin);
|
||||
}
|
||||
oldorigin = origin;
|
||||
|
||||
return (PREDRAW_NEXT);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue