mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-14 08:57:52 +00:00
Fix train sounds.
This commit is contained in:
parent
822c46de43
commit
ec5cb8c6eb
@ -164,6 +164,16 @@ void CBasePlatTrain::KeyValue( KeyValueData *pkvd )
|
|||||||
m_bStopSnd = atoi( pkvd->szValue );
|
m_bStopSnd = atoi( pkvd->szValue );
|
||||||
pkvd->fHandled = TRUE;
|
pkvd->fHandled = TRUE;
|
||||||
}
|
}
|
||||||
|
else if( FStrEq( pkvd->szKeyName, "custommovesnd" ) )
|
||||||
|
{
|
||||||
|
pev->noise = ALLOC_STRING( pkvd->szValue );
|
||||||
|
pkvd->fHandled = TRUE;
|
||||||
|
}
|
||||||
|
else if( FStrEq( pkvd->szKeyName, "customstopsnd" ) )
|
||||||
|
{
|
||||||
|
pev->noise1 = ALLOC_STRING(pkvd->szValue);
|
||||||
|
pkvd->fHandled = TRUE;
|
||||||
|
}
|
||||||
else if( FStrEq( pkvd->szKeyName, "volume" ) )
|
else if( FStrEq( pkvd->szKeyName, "volume" ) )
|
||||||
{
|
{
|
||||||
m_volume = atof( pkvd->szValue );
|
m_volume = atof( pkvd->szValue );
|
||||||
|
@ -116,7 +116,6 @@ BOOL CShotgun::Deploy()
|
|||||||
void CShotgun::PrimaryAttack()
|
void CShotgun::PrimaryAttack()
|
||||||
{
|
{
|
||||||
// don't fire underwater
|
// don't fire underwater
|
||||||
if( m_pPlayer->pev->waterlevel == 3 )
|
|
||||||
if (m_pPlayer->pev->waterlevel == 3 && m_pPlayer->pev->watertype > CONTENT_FLYFIELD)
|
if (m_pPlayer->pev->waterlevel == 3 && m_pPlayer->pev->watertype > CONTENT_FLYFIELD)
|
||||||
{
|
{
|
||||||
PlayEmptySound();
|
PlayEmptySound();
|
||||||
|
Loading…
Reference in New Issue
Block a user