From fb7e8cd65a885e3e7415d41ab9c1abbd32ea6c26 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 9 Sep 2020 02:29:58 -0400 Subject: [PATCH] CDrone: Implement AttackOver --- Runtime/MP1/World/CDrone.cpp | 2 ++ Runtime/MP1/World/CDrone.hpp | 1 + 2 files changed, 3 insertions(+) diff --git a/Runtime/MP1/World/CDrone.cpp b/Runtime/MP1/World/CDrone.cpp index a94548c0f..f5a83fec0 100644 --- a/Runtime/MP1/World/CDrone.cpp +++ b/Runtime/MP1/World/CDrone.cpp @@ -768,6 +768,8 @@ bool CDrone::SpotPlayer(CStateManager& mgr, float arg) { bool CDrone::AnimOver(CStateManager& mgr, float arg) { return x7c8_ == 2; } +bool CDrone::AttackOver(CStateManager& mgr, float arg) { return x834_31_attackOver; } + bool CDrone::ShouldAttack(CStateManager& mgr, float arg) { if (x5d0_ > 0.f) return false; diff --git a/Runtime/MP1/World/CDrone.hpp b/Runtime/MP1/World/CDrone.hpp index 19dde0ad4..ea1655c6d 100644 --- a/Runtime/MP1/World/CDrone.hpp +++ b/Runtime/MP1/World/CDrone.hpp @@ -154,6 +154,7 @@ public: bool InRange(CStateManager&, float arg) override; bool SpotPlayer(CStateManager&, float arg) override; bool AnimOver(CStateManager&, float arg) override; + bool AttackOver(CStateManager& mgr, float arg) override; bool ShouldAttack(CStateManager&, float arg) override; bool HearShot(CStateManager&, float arg) override; bool CoverCheck(CStateManager&, float arg) override;