This commit is contained in:
Charles 2001-02-05 14:55:11 +00:00
parent 2a71836478
commit b9ccd83f66
7 changed files with 72 additions and 6 deletions

View file

@ -48,7 +48,7 @@
void CNpc::init()
{
m_type = NPC_SAW_BLADE;
m_type = NPC_FISH_FOLK;
m_heading = m_fireHeading = 0;
m_movementTimer = 0;
@ -243,6 +243,29 @@ void CNpc::init()
break;
}
case NPC_INIT_FISH_FOLK:
{
m_heading = m_fireHeading = 0;
m_npcPath.initPath();
DVECTOR newPos;
newPos.vx = 100;
newPos.vy = 100;
m_npcPath.addWaypoint( newPos );
newPos.vx = 500;
newPos.vy = 100;
m_npcPath.addWaypoint( newPos );
m_npcPath.setPathType( PONG_PATH );
break;
}
default:
break;
@ -780,6 +803,13 @@ void CNpc::processMovementModifier(int _frames, s32 distX, s32 distY, s32 dist,
break;
}
case NPC_MOVEMENT_MODIFIER_FISH_FOLK:
{
processFishFolkMovementModifier( _frames, distX, distY );
break;
}
}
}