CDrone: Implement AttackOver

This commit is contained in:
Luke Street 2020-09-09 02:29:58 -04:00
parent aba51246d8
commit fb7e8cd65a
2 changed files with 3 additions and 0 deletions

View File

@ -768,6 +768,8 @@ bool CDrone::SpotPlayer(CStateManager& mgr, float arg) {
bool CDrone::AnimOver(CStateManager& mgr, float arg) { return x7c8_ == 2; } 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) { bool CDrone::ShouldAttack(CStateManager& mgr, float arg) {
if (x5d0_ > 0.f) if (x5d0_ > 0.f)
return false; return false;

View File

@ -154,6 +154,7 @@ public:
bool InRange(CStateManager&, float arg) override; bool InRange(CStateManager&, float arg) override;
bool SpotPlayer(CStateManager&, float arg) override; bool SpotPlayer(CStateManager&, float arg) override;
bool AnimOver(CStateManager&, float arg) override; bool AnimOver(CStateManager&, float arg) override;
bool AttackOver(CStateManager& mgr, float arg) override;
bool ShouldAttack(CStateManager&, float arg) override; bool ShouldAttack(CStateManager&, float arg) override;
bool HearShot(CStateManager&, float arg) override; bool HearShot(CStateManager&, float arg) override;
bool CoverCheck(CStateManager&, float arg) override; bool CoverCheck(CStateManager&, float arg) override;