This commit is contained in:
parent
a30c5a73cf
commit
bc09ea7d05
@ -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 );
|
||||||
|
}
|
||||||
}
|
}
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user