Page MenuHomeFeedback Tracker

Heli crashes not cleaning up particles
Assigned, NormalPublic

Description

Both the Wreck_UH1Y and the Wreck_Mi8_Crashed are spawning particles in the constructor but dont clean it up in destructor or via eedelete causing the particles to still be there when the event is cleaned up.

Both examples here:
class Wreck_Mi8_Crashed extends CrashBase
{
void Wreck_Mi8_Crashed()
{

		if ( !GetGame().IsDedicatedServer() )
		{
			m_ParticleEfx = ParticleManager.GetInstance().PlayOnObject(ParticleList.SMOKING_HELI_WRECK, this, Vector(2, 0, -5));
		}

}
}

class Wreck_UH1Y extends CrashBase
{
void Wreck_UH1Y()
{

		if ( !GetGame().IsDedicatedServer() )
		{
			m_ParticleEfx = ParticleManager.GetInstance().PlayOnObject(ParticleList.SMOKING_HELI_WRECK, this, Vector(-0.5, 0, -1.0));
		}

}
}

additionally, we got this in the crashbase:

override void EEDelete(EntityAI parent)
{

		if ( !GetGame().IsDedicatedServer() )
		{
			if ( m_ParticleEfx )
				m_ParticleEfx.Stop();
		}

}
but it doesnt seem to get the particles parent at all

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
Multiplayer
Steps To Reproduce

Observe heli crashes or spawn/delete them and the particles are still there.

Event Timeline

DonAlfredo updated the task description. (Show Details)May 29 2025, 2:10 AM
Geez changed the task status from New to Assigned.Jun 3 2025, 1:23 PM
Geez added a subscriber: Geez.Jun 4 2025, 11:03 PM

Hello,
Can you please describe the procedure used for spawning and deleting these events?
We cannot seem to reproduce this on vanilla with the normal way through ecconomy.
Video with repro steps would be ideal.

Hello Geez, sorry it took so long to get back to it!

I observed this via economy aswell. I didnt spawn or delete it via any admin tools.
Maybe its an issue with how the particles are networked, given they are in the constructor i could imagine it being called at the exact time a client loads the particles an in the next or very same tick it gets deleted by the economy.

Im unable to reproduce it tho...
It happens very sporadically and its quite rare, but i think almost every player has experienced it atleast once, maybe more so on modded community server.