Fix Headcrab canister precache

► Fixed an issue where the console would be spammed with precache messages on dm_runoff.
This commit is contained in:
speedvoltage 2025-03-11 21:56:43 +01:00
parent a62efecf62
commit 57ac9b8ad9

View file

@ -314,7 +314,10 @@ void CEnvHeadcrabCanister::Spawn( void )
void CEnvHeadcrabCanister::UpdateOnRemove()
{
BaseClass::UpdateOnRemove();
StopSound( "HeadcrabCanister.AfterLanding" );
if ( m_bLanded || m_bOpened )
StopSound( "HeadcrabCanister.AfterLanding" );
if ( m_hTrail )
{
UTIL_Remove( m_hTrail );