Browse Source

Merge branch 'sohl1.2' into echoes

echoes
Night Owl 6 years ago
parent
commit
0a41f6ec70
  1. 10
      dlls/plats.cpp
  2. 1
      dlls/shotgun.cpp

10
dlls/plats.cpp

@ -164,6 +164,16 @@ void CBasePlatTrain::KeyValue( KeyValueData *pkvd ) @@ -164,6 +164,16 @@ void CBasePlatTrain::KeyValue( KeyValueData *pkvd )
m_bStopSnd = atoi( pkvd->szValue );
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" ) )
{
m_volume = atof( pkvd->szValue );

1
dlls/shotgun.cpp

@ -122,7 +122,6 @@ void CShotgun::Holster( int skiplocal ) @@ -122,7 +122,6 @@ void CShotgun::Holster( int skiplocal )
void CShotgun::PrimaryAttack()
{
// don't fire underwater
if( m_pPlayer->pev->waterlevel == 3 )
if (m_pPlayer->pev->waterlevel == 3 && m_pPlayer->pev->watertype > CONTENT_FLYFIELD)
{
PlayEmptySound();

Loading…
Cancel
Save