This commit is contained in:
speedvoltage 2025-03-29 21:40:44 +01:00 committed by GitHub
commit 0cff84fbd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -950,11 +950,13 @@ void CAmbientGeneric::SendSound( SoundFlags_t flags)
{
UTIL_EmitAmbientSound( pSoundSource->GetSoundSourceIndex(), pSoundSource->GetAbsOrigin(), m_szSoundFile,
0, SNDLVL_NONE, flags, 0);
m_fActive = false;
}
else
{
UTIL_EmitAmbientSound( pSoundSource->GetSoundSourceIndex(), pSoundSource->GetAbsOrigin(), m_szSoundFile,
(m_dpv.vol * 0.01), m_iSoundLevel, flags, m_dpv.pitch);
m_fActive = true;
}
}
else
@ -964,6 +966,7 @@ void CAmbientGeneric::SendSound( SoundFlags_t flags)
{
UTIL_EmitAmbientSound( m_nSoundSourceEntIndex, GetAbsOrigin(), m_szSoundFile,
0, SNDLVL_NONE, flags, 0);
m_fActive = false;
}
}
}