mirror of https://github.com/AxioDL/metaforce.git
CFlyingPirate: Fix TargetPatrol
This commit is contained in:
parent
26ae8beb74
commit
651e28e921
|
@ -1309,6 +1309,8 @@ void CFlyingPirate::UpdateCanSeePlayer(CStateManager& mgr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFlyingPirate::TargetPatrol(CStateManager& mgr, EStateMsg msg, float arg) {
|
void CFlyingPirate::TargetPatrol(CStateManager& mgr, EStateMsg msg, float arg) {
|
||||||
|
CPatterned::Patrol(mgr, msg, arg);
|
||||||
|
|
||||||
if (msg == EStateMsg::Activate) {
|
if (msg == EStateMsg::Activate) {
|
||||||
x450_bodyController->GetCommandMgr().SetSteeringBlendMode(ESteeringBlendMode::Normal);
|
x450_bodyController->GetCommandMgr().SetSteeringBlendMode(ESteeringBlendMode::Normal);
|
||||||
x2dc_destObj = GetWaypointForState(mgr, EScriptObjectState::Attack, EScriptObjectMessage::Follow);
|
x2dc_destObj = GetWaypointForState(mgr, EScriptObjectState::Attack, EScriptObjectMessage::Follow);
|
||||||
|
|
Loading…
Reference in New Issue