This commit is contained in:
parent
8b28dcc764
commit
c0595dc15b
4 changed files with 13 additions and 5 deletions
|
@ -115,6 +115,11 @@ void CNpcBouncingRockHazard::processMovement( int _frames )
|
|||
|
||||
// deal with horizontal
|
||||
|
||||
if ( m_soundId == NOT_PLAYING )
|
||||
{
|
||||
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_ROLLING_ROCK, true );
|
||||
}
|
||||
|
||||
bool pathComplete;
|
||||
|
||||
if ( m_npcPath.thinkFlat( Pos, &pathComplete, &waypointXDist, &waypointYDist, &waypointHeading, 1 ) )
|
||||
|
|
|
@ -61,6 +61,11 @@ void CNpcFlyTrapHazard::processMovement( int _frames )
|
|||
m_shut = false;
|
||||
m_contact = false;
|
||||
m_timer = GameState::getOneSecondInFrames();
|
||||
|
||||
if ( m_soundId == NOT_PLAYING )
|
||||
{
|
||||
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_CLAM_ATTACK, true );
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -64,12 +64,9 @@ void CNpcRollingRockHazard::processMovement( int _frames )
|
|||
}
|
||||
else
|
||||
{
|
||||
if ( !m_jump )
|
||||
if ( m_soundId == NOT_PLAYING )
|
||||
{
|
||||
if ( m_soundId == NOT_PLAYING )
|
||||
{
|
||||
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_ROLLING_ROCK, true );
|
||||
}
|
||||
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_ROLLING_ROCK, true );
|
||||
}
|
||||
|
||||
if ( distX )
|
||||
|
|
|
@ -344,6 +344,7 @@ void CNpcCartPlatform::jump()
|
|||
{
|
||||
m_inJump = true;
|
||||
m_vertSpeed = -8 << 8;
|
||||
CSoundMediator::playSfx(CSoundMediator::SFX_SPONGEBOB_JUMP);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue