From 8caa8d171ff9a25f1bea1c7315e7c35e2b176795 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Fri, 27 Nov 2020 03:10:59 +0100 Subject: [PATCH] info_particle_system: Make sure to respect the 'start_active' key. --- src/gs-entbase/shared/info_particle_system.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/gs-entbase/shared/info_particle_system.cpp b/src/gs-entbase/shared/info_particle_system.cpp index c2772d09..81d440e9 100644 --- a/src/gs-entbase/shared/info_particle_system.cpp +++ b/src/gs-entbase/shared/info_particle_system.cpp @@ -238,12 +238,11 @@ info_particle_system::Respawn(void) SetOrigin(m_oldOrigin); SetAngles(m_oldAngle); - SendFlags = PARTSYSFL_CHANGED_ORIGIN | \ - PARTSYSFL_CHANGED_ANGLES | \ - PARTSYSFL_CHANGED_EFFECT | \ - PARTSYSFL_CHANGED_STATUS | \ - PARTSYSFL_CHANGED_INTERVAL | \ - PARTSYSFL_CHANGED_COUNT; + if (spawnflags & PSFL_STARTACTIVE) { + Trigger(this, TRIG_ON); + } else { + Trigger(this, TRIG_OFF); + } } #endif