This commit is contained in:
parent
a30c5a73cf
commit
bc09ea7d05
2 changed files with 8 additions and 3 deletions
|
@ -44,7 +44,7 @@ bool CNpcBabyOctopusEnemy::processSensor()
|
|||
|
||||
default:
|
||||
{
|
||||
if ( playerXDistSqr + playerYDistSqr < 400 )
|
||||
if ( playerXDistSqr + playerYDistSqr < 4000 )
|
||||
{
|
||||
m_controlFunc = NPC_CONTROL_CLOSE;
|
||||
|
||||
|
@ -184,4 +184,9 @@ void CNpcBabyOctopusEnemy::processClose( int _frames )
|
|||
m_timerTimer = GameState::getOneSecondInFrames();
|
||||
m_sensorFunc = NPC_SENSOR_NONE;
|
||||
}
|
||||
|
||||
if ( m_soundId == NOT_PLAYING )
|
||||
{
|
||||
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_NAUTILUS_ATTACK, true );
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue