CFlaahgra: Implement ProjectileAttack Deactivate

This commit is contained in:
Luke Street 2020-08-17 02:51:01 -04:00
parent bf2d15f6ea
commit ab4cf9549a
1 changed files with 7 additions and 0 deletions

View File

@ -1169,6 +1169,13 @@ void CFlaahgra::ProjectileAttack(CStateManager& mgr, EStateMsg msg, float) {
x450_bodyController->GetCommandMgr().DeliverTargetVector(mgr.GetPlayer().GetTranslation() - GetTranslation());
}
}
} else if (msg == EStateMsg::Deactivate) {
x7c0_ = (x308_attackTimeVariation * mgr.GetActiveRandom()->Float() + x304_averageAttackTime) / (1.f + x788_);
x7b4_ = -1;
x72c_ = -1;
if (x450_bodyController->GetCurrentStateId() == pas::EAnimationState::ProjectileAttack) {
x450_bodyController->GetCommandMgr().DeliverCmd(CBodyStateCmd(EBodyStateCmd::NextState));
}
}
}
void CFlaahgra::Cover(CStateManager& mgr, EStateMsg msg, float) {