game/server: fix particle transition from trigger_vphysics_motion

This commit is contained in:
nillerusr
2022-10-31 19:59:10 +03:00
parent 3a7d4319d6
commit ba90de20d9
3 changed files with 15 additions and 1 deletions

View File

@@ -4623,7 +4623,8 @@ void CTriggerVPhysicsMotion::StartTouch( CBaseEntity *pOther )
#ifndef _XBOX
if ( m_ParticleTrail.m_strMaterialName != NULL_STRING )
{
CEntityParticleTrail::Create( pOther, m_ParticleTrail, this );
CEntityParticleTrail *pTrail = CEntityParticleTrail::Create( pOther, m_ParticleTrail, this );
pTrail->SetShouldDeletedOnChangelevel( true );
}
#endif