mirror of https://github.com/AxioDL/metaforce.git
CDrone: Reset shieldTime in GetCollisionResponseType
This commit is contained in:
parent
ffe0cf7ca2
commit
a0d7f126e9
|
@ -347,6 +347,7 @@ void CDrone::Touch(CActor& act, CStateManager& mgr) {
|
||||||
EWeaponCollisionResponseTypes CDrone::GetCollisionResponseType(const zeus::CVector3f&, const zeus::CVector3f& dir,
|
EWeaponCollisionResponseTypes CDrone::GetCollisionResponseType(const zeus::CVector3f&, const zeus::CVector3f& dir,
|
||||||
const CWeaponMode&, EProjectileAttrib) const {
|
const CWeaponMode&, EProjectileAttrib) const {
|
||||||
if (x3fc_flavor == EFlavorType::One && HitShield(-dir)) {
|
if (x3fc_flavor == EFlavorType::One && HitShield(-dir)) {
|
||||||
|
x5e8_shieldTime = 1.f;
|
||||||
return EWeaponCollisionResponseTypes::Unknown86;
|
return EWeaponCollisionResponseTypes::Unknown86;
|
||||||
}
|
}
|
||||||
return EWeaponCollisionResponseTypes::Unknown36;
|
return EWeaponCollisionResponseTypes::Unknown36;
|
||||||
|
|
|
@ -25,7 +25,7 @@ class CDrone : public CPatterned {
|
||||||
float x5dc_ = 0.f;
|
float x5dc_ = 0.f;
|
||||||
float x5e0_ = 0.f;
|
float x5e0_ = 0.f;
|
||||||
float x5e4_;
|
float x5e4_;
|
||||||
float x5e8_shieldTime = 0.f;
|
mutable float x5e8_shieldTime = 0.f;
|
||||||
float x5ec_turnSpeed;
|
float x5ec_turnSpeed;
|
||||||
float x5f0_;
|
float x5f0_;
|
||||||
float x5f4_;
|
float x5f4_;
|
||||||
|
|
Loading…
Reference in New Issue