info_particle_system: Fix the emitting speed/angle. Apparently that's

specified in the particle config itself.
This commit is contained in:
Marco Cawthorne 2022-01-28 17:55:45 -08:00
parent 578da4a779
commit 3fc7c477f0
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 4 additions and 2 deletions

View File

@ -73,11 +73,13 @@ class info_particle_system:NSPointTrigger
void
info_particle_system::Emit(void)
{
makevectors(angles);
if (m_iValue)
if (m_iSpawnCount)
pointparticles((float)m_iEffectID, origin, angles, m_iSpawnCount);
pointparticles((float)m_iEffectID, origin, v_forward, m_iSpawnCount);
else
pointparticles((float)m_iEffectID, origin, angles, 1);
pointparticles((float)m_iEffectID, origin, v_forward, 1);
nextthink = time + m_flInterval;
}