2018-10-11 22:57:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-04-28 14:16:10 +00:00
|
|
|
#include "Runtime/Weapon/CProjectileInfo.hpp"
|
2019-09-28 02:53:03 +00:00
|
|
|
#include "Runtime/World/CPatterned.hpp"
|
2020-04-28 14:16:10 +00:00
|
|
|
#include "Runtime/World/CPathFindSearch.hpp"
|
2018-10-11 22:57:05 +00:00
|
|
|
|
2020-04-28 14:16:10 +00:00
|
|
|
namespace urde {
|
|
|
|
class CElementGen;
|
|
|
|
namespace MP1 {
|
2018-12-08 05:30:43 +00:00
|
|
|
|
|
|
|
class CBurrower : public CPatterned {
|
2020-04-28 14:16:10 +00:00
|
|
|
CPathFindSearch x568_pathFindSearch;
|
|
|
|
CProjectileInfo x64c_projectileInfo;
|
|
|
|
std::unique_ptr<CElementGen> x674_jumpParticle;
|
|
|
|
std::unique_ptr<CElementGen> x678_trailParticle;
|
|
|
|
std::optional<TLockedToken<CGenDescription>> x67c_visorParticle;
|
|
|
|
std::optional<TLockedToken<CGenDescription>> x68c_deathExplosionParticle;
|
|
|
|
float x69c_attackTime = 0.f;
|
|
|
|
float x6a0_lurkTimer = 0.f;
|
|
|
|
float x6a4_invulnDamageTime = 0.f;
|
|
|
|
TUniqueId x6a8_lastDestObj = kInvalidUniqueId;
|
|
|
|
s16 x6aa_visorSfx;
|
|
|
|
bool x6ac_24_doFacePlayer : 1 = false;
|
|
|
|
bool x6ac_25_inAir : 1 = false;
|
2018-10-11 22:57:05 +00:00
|
|
|
public:
|
2020-08-23 19:03:33 +00:00
|
|
|
DEFINE_PATTERNED(Burrower);
|
2018-12-08 05:30:43 +00:00
|
|
|
CBurrower(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, CModelData&&,
|
|
|
|
const CPatternedInfo&, const CActorParameters&, CAssetId, CAssetId, CAssetId, const CDamageInfo&, CAssetId,
|
|
|
|
u32, CAssetId);
|
2018-11-19 05:00:33 +00:00
|
|
|
|
2020-04-28 14:16:10 +00:00
|
|
|
void Think(float, CStateManager&) override;
|
2019-08-09 19:46:49 +00:00
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
2020-04-28 14:16:10 +00:00
|
|
|
void AddToRenderer(const zeus::CFrustum&, CStateManager&) override;
|
|
|
|
void Render(CStateManager& mgr) override;
|
|
|
|
const CDamageVulnerability* GetDamageVulnerability() const override;
|
|
|
|
const CDamageVulnerability* GetDamageVulnerability(const zeus::CVector3f&, const zeus::CVector3f&,
|
|
|
|
const CDamageInfo&) const override;
|
|
|
|
void DoUserAnimEvent(CStateManager& mgr, const CInt32POINode& node, EUserEventType type, float dt) override;
|
|
|
|
void Death(CStateManager& mgr, const zeus::CVector3f& direction, EScriptObjectState state) override;
|
|
|
|
void Patrol(CStateManager& mgr, EStateMsg msg, float dt) override;
|
|
|
|
void TargetPatrol(CStateManager& mgr, EStateMsg msg, float dt) override;
|
|
|
|
void TurnAround(CStateManager& mgr, EStateMsg msg, float dt) override;
|
|
|
|
void Active(CStateManager& mgr, EStateMsg msg, float dt) override;
|
|
|
|
void Lurk(CStateManager& mgr, EStateMsg msg, float dt) override;
|
|
|
|
void ProjectileAttack(CStateManager& mgr, EStateMsg msg, float dt) override;
|
|
|
|
void Retreat(CStateManager& mgr, EStateMsg msg, float dt) override;
|
|
|
|
bool PathShagged(CStateManager& mgr, float arg) override;
|
|
|
|
bool ShouldAttack(CStateManager& mgr, float arg) override;
|
|
|
|
CPathFindSearch* GetSearchPath() override { return &x568_pathFindSearch; }
|
|
|
|
CProjectileInfo* GetProjectileInfo() override { return &x64c_projectileInfo; }
|
|
|
|
const std::optional<TLockedToken<CGenDescription>>& GetDeathExplosionParticle() const override;
|
2018-10-11 22:57:05 +00:00
|
|
|
};
|
2020-04-28 14:16:10 +00:00
|
|
|
} // namespace MP1
|
|
|
|
} // namespace urde
|