NSProjectile: allow projectiles without models to still have trails etc.

This commit is contained in:
Marco Cawthorne 2024-08-14 18:09:18 -07:00
parent 02301994ce
commit 8ab066ffe1
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -1072,9 +1072,6 @@ NSProjectile::EvaluateEntity(void)
float
NSProjectile::SendEntity(entity ePEnt, float flChanged)
{
if (!modelindex)
return (0);
if (clienttype(ePEnt) != CLIENTTYPE_REAL)
return (0);
@ -1142,6 +1139,12 @@ NSProjectile::predraw(void)
dynamiclight_add(origin, m_flLightRadius, m_vecLightColor);
}
if (traileffectnum) {
if (oldorigin != g_vec_null)
trailparticles(traileffectnum, this, oldorigin, origin);
}
oldorigin = origin;
return super::predraw();
}
#endif