diff --git a/source/enemy/npc.cpp b/source/enemy/npc.cpp index 0ecc9a20f..6a9ad3154 100644 --- a/source/enemy/npc.cpp +++ b/source/enemy/npc.cpp @@ -1207,6 +1207,13 @@ void CNpcEnemy::processMovementModifier(int _frames, s32 distX, s32 distY, s32 d //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +void CNpcEnemy::hasBeenAttacked() +{ + m_controlFunc = NPC_CONTROL_SHOT: +} + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + void CNpcEnemy::processShot() { } diff --git a/source/enemy/npc.h b/source/enemy/npc.h index 2bc80d145..04f97e519 100644 --- a/source/enemy/npc.h +++ b/source/enemy/npc.h @@ -171,6 +171,7 @@ public: void addWaypoint( s32 xPos, s32 yPos ); void setPathType( u8 newType ) {m_npcPath.setPathType( newType );} void setStartPos( s32 xPos, s32 yPos ); + void hasBeenAttacked(); static void CacheActor(int Type);