Commit 8b58b3fe authored by Gerstrong's avatar Gerstrong

more sounds and fixes

parent e84c22d8
......@@ -90,8 +90,8 @@ bool CMessages::extractEp4Strings(std::map<std::string, std::string>& StringMap)
StringMap.insert( extractString( "LINDSEY_END_TEXT2", 0x309FA, 0x30A24 ) );
StringMap.insert( extractString( "LINDSEY_START_TEXT", 0x30A25, 0x30A3C ) );
StringMap.insert( extractString( "CANT_SWIM_TEXT", 0x30A3D, 0x30A4B ) );
StringMap.insert( extractString( "SWIM_SUIT_TEXT", 0x30A4C, 0x30A72 ) );
StringMap.insert( extractString( "CANT_SWIM_TEXT", 0x30A3D, 0x30A4A ) );
StringMap.insert( extractString( "SWIM_SUIT_TEXT", 0x30A4B, 0x30A72 ) );
StringMap.insert( extractString( "KEEN_NOSWEAT_TEXT", 0x30A71, 0x30A91 ) );
......
......@@ -217,6 +217,16 @@ void CPlayerBase::makeWalkSound()
}
void CPlayerBase::makeSwimSound()
{
const int time = m_walktimer % MAX_WALKSOUNDTIMER;
// Process walk timer. This is only for the walking sound
if( time == 0 )
playSound( SOUND_KEEN_SWIM );
m_walktimer++;
}
......
......@@ -61,6 +61,11 @@ public:
*/
void makeWalkSound();
/**
* Same here but with swimming
*/
void makeSwimSound();
void processDead();
void processDying();
......
......@@ -337,6 +337,8 @@ void CPlayerWM::performSwimmingAnimation()
m_animation_time = 5;
sprite += m_animation%2;
makeSwimSound();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment