This commit is contained in:
parent
60fdda39b9
commit
f33844b282
2 changed files with 17 additions and 0 deletions
|
@ -929,3 +929,19 @@ void CNpcMotherJellyfishEnemy::collidedWith(CThing *_thisThing)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
u8 CNpcMotherJellyfishEnemy::hasBeenAttacked()
|
||||
{
|
||||
if ( !alwaysThink() )
|
||||
{
|
||||
if ( m_controlFunc != NPC_CONTROL_SHOT )
|
||||
{
|
||||
m_controlFunc = NPC_CONTROL_SHOT;
|
||||
m_state = NPC_GENERIC_HIT_CHECK_HEALTH;
|
||||
}
|
||||
}
|
||||
|
||||
return( true );
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ public:
|
|||
void shutdown();
|
||||
void setupWaypoints( sThingActor *ThisActor );
|
||||
bool alwaysThink();
|
||||
u8 hasBeenAttacked();
|
||||
|
||||
protected:
|
||||
void processClose( int _frames );
|
||||
|
|
Loading…
Add table
Reference in a new issue