From a0d7f126e9a5bf31075fe006373c7b040773bf7f Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sun, 13 Sep 2020 19:30:21 -0400 Subject: [PATCH] CDrone: Reset shieldTime in GetCollisionResponseType --- Runtime/MP1/World/CDrone.cpp | 1 + Runtime/MP1/World/CDrone.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/MP1/World/CDrone.cpp b/Runtime/MP1/World/CDrone.cpp index d960a8571..bf1dc319e 100644 --- a/Runtime/MP1/World/CDrone.cpp +++ b/Runtime/MP1/World/CDrone.cpp @@ -347,6 +347,7 @@ void CDrone::Touch(CActor& act, CStateManager& mgr) { EWeaponCollisionResponseTypes CDrone::GetCollisionResponseType(const zeus::CVector3f&, const zeus::CVector3f& dir, const CWeaponMode&, EProjectileAttrib) const { if (x3fc_flavor == EFlavorType::One && HitShield(-dir)) { + x5e8_shieldTime = 1.f; return EWeaponCollisionResponseTypes::Unknown86; } return EWeaponCollisionResponseTypes::Unknown36; diff --git a/Runtime/MP1/World/CDrone.hpp b/Runtime/MP1/World/CDrone.hpp index 1c78e480e..75ea865f3 100644 --- a/Runtime/MP1/World/CDrone.hpp +++ b/Runtime/MP1/World/CDrone.hpp @@ -25,7 +25,7 @@ class CDrone : public CPatterned { float x5dc_ = 0.f; float x5e0_ = 0.f; float x5e4_; - float x5e8_shieldTime = 0.f; + mutable float x5e8_shieldTime = 0.f; float x5ec_turnSpeed; float x5f0_; float x5f4_;