From ab4cf9549a47c0b1b6193177276f60f1896c0789 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 17 Aug 2020 02:51:01 -0400 Subject: [PATCH] CFlaahgra: Implement ProjectileAttack Deactivate --- Runtime/MP1/World/CFlaahgra.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Runtime/MP1/World/CFlaahgra.cpp b/Runtime/MP1/World/CFlaahgra.cpp index 57d872a92..9809aa247 100644 --- a/Runtime/MP1/World/CFlaahgra.cpp +++ b/Runtime/MP1/World/CFlaahgra.cpp @@ -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) {