CPhazonHealingNodule: Add missing functions

This commit is contained in:
Luke Street 2020-04-05 02:26:35 -04:00
parent 61444da8ff
commit ab8e00880e
2 changed files with 22 additions and 0 deletions

View File

@ -169,4 +169,18 @@ void CPhazonHealingNodule::UpdateParticleElectric(CStateManager& mgr) {
x57c_particleElectric->SetOverrideFPos(actorLctrXf.origin); x57c_particleElectric->SetOverrideFPos(actorLctrXf.origin);
} }
} }
bool CPhazonHealingNodule::AnimOver(CStateManager&, float arg) { return x588_state == 3; }
bool CPhazonHealingNodule::InRange(CStateManager&, float arg) { return x568_active == 0; }
bool CPhazonHealingNodule::InDetectionRange(CStateManager&, float arg) { return x568_active == 1; }
void CPhazonHealingNodule::MassiveDeath(CStateManager& mgr) { Death(mgr, zeus::skZero3f, EScriptObjectState::Dead); }
void CPhazonHealingNodule::MassiveFrozenDeath(CStateManager& mgr) {
Death(mgr, zeus::skZero3f, EScriptObjectState::Dead);
}
void CPhazonHealingNodule::PhazeOut(CStateManager& mgr) { Death(mgr, zeus::skZero3f, EScriptObjectState::Dead); }
} // namespace urde::MP1 } // namespace urde::MP1

View File

@ -36,6 +36,14 @@ public:
void Lurk(CStateManager& mgr, EStateMsg msg, float dt) override; void Lurk(CStateManager& mgr, EStateMsg msg, float dt) override;
void Patrol(CStateManager& mgr, EStateMsg msg, float dt) override; void Patrol(CStateManager& mgr, EStateMsg msg, float dt) override;
bool InRange(CStateManager &, float arg) override;
bool InDetectionRange(CStateManager &, float arg) override;
bool AnimOver(CStateManager &, float arg) override;
void MassiveDeath(CStateManager &mgr) override;
void MassiveFrozenDeath(CStateManager &mgr) override;
void PhazeOut(CStateManager &) override;
private: private:
void UpdateParticleElectric(CStateManager& mgr); void UpdateParticleElectric(CStateManager& mgr);
}; };