This commit is contained in:
Charles 2001-07-12 21:37:43 +00:00
parent a30c5a73cf
commit bc09ea7d05
2 changed files with 8 additions and 3 deletions

View File

@ -44,7 +44,7 @@ bool CNpcBabyOctopusEnemy::processSensor()
default: default:
{ {
if ( playerXDistSqr + playerYDistSqr < 400 ) if ( playerXDistSqr + playerYDistSqr < 4000 )
{ {
m_controlFunc = NPC_CONTROL_CLOSE; m_controlFunc = NPC_CONTROL_CLOSE;
@ -184,4 +184,9 @@ void CNpcBabyOctopusEnemy::processClose( int _frames )
m_timerTimer = GameState::getOneSecondInFrames(); m_timerTimer = GameState::getOneSecondInFrames();
m_sensorFunc = NPC_SENSOR_NONE; m_sensorFunc = NPC_SENSOR_NONE;
} }
if ( m_soundId == NOT_PLAYING )
{
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_NAUTILUS_ATTACK, true );
}
} }

View File

@ -291,7 +291,7 @@ CNpcEnemy::NPC_DATA CNpcEnemy::m_data[NPC_UNIT_TYPE_MAX] =
false, false,
true, true,
CSoundMediator::NUM_SFXIDS, CSoundMediator::NUM_SFXIDS,
CSoundMediator::NUM_SFXIDS, CSoundMediator::SFX_FISH_FOLK_MOVE_1,
false, false,
}, },
@ -655,7 +655,7 @@ CNpcEnemy::NPC_DATA CNpcEnemy::m_data[NPC_UNIT_TYPE_MAX] =
false, false,
true, true,
CSoundMediator::NUM_SFXIDS, CSoundMediator::NUM_SFXIDS,
CSoundMediator::NUM_SFXIDS, CSoundMediator::SFX_NAUTILUS_MOVE,
true, true,
}, },