NSRenderableEntity: Respect the .traileffectnum field

This commit is contained in:
Marco Cawthorne 2023-07-10 08:55:30 -07:00
parent 775e210a06
commit f2c41e3def
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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