NSProjectile: allow projectiles without models to still have trails etc.
This commit is contained in:
parent
02301994ce
commit
8ab066ffe1
1 changed files with 6 additions and 3 deletions
|
@ -1072,9 +1072,6 @@ NSProjectile::EvaluateEntity(void)
|
||||||
float
|
float
|
||||||
NSProjectile::SendEntity(entity ePEnt, float flChanged)
|
NSProjectile::SendEntity(entity ePEnt, float flChanged)
|
||||||
{
|
{
|
||||||
if (!modelindex)
|
|
||||||
return (0);
|
|
||||||
|
|
||||||
if (clienttype(ePEnt) != CLIENTTYPE_REAL)
|
if (clienttype(ePEnt) != CLIENTTYPE_REAL)
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
|
@ -1142,6 +1139,12 @@ NSProjectile::predraw(void)
|
||||||
dynamiclight_add(origin, m_flLightRadius, m_vecLightColor);
|
dynamiclight_add(origin, m_flLightRadius, m_vecLightColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (traileffectnum) {
|
||||||
|
if (oldorigin != g_vec_null)
|
||||||
|
trailparticles(traileffectnum, this, oldorigin, origin);
|
||||||
|
}
|
||||||
|
oldorigin = origin;
|
||||||
|
|
||||||
return super::predraw();
|
return super::predraw();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue