From 8ab066ffe1bb66effe2e61682638ecf392890a14 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Wed, 14 Aug 2024 18:09:18 -0700 Subject: [PATCH] NSProjectile: allow projectiles without models to still have trails etc. --- src/shared/NSProjectile.qc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/shared/NSProjectile.qc b/src/shared/NSProjectile.qc index 1b5be610..585398f8 100644 --- a/src/shared/NSProjectile.qc +++ b/src/shared/NSProjectile.qc @@ -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