This commit is contained in:
Charles 2001-08-21 14:53:35 +00:00
parent 60fdda39b9
commit f33844b282
2 changed files with 17 additions and 0 deletions

View File

@ -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 );
}

View File

@ -33,6 +33,7 @@ public:
void shutdown(); void shutdown();
void setupWaypoints( sThingActor *ThisActor ); void setupWaypoints( sThingActor *ThisActor );
bool alwaysThink(); bool alwaysThink();
u8 hasBeenAttacked();
protected: protected:
void processClose( int _frames ); void processClose( int _frames );