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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue