2018-10-11 22:57:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "World/CPatterned.hpp"
|
2018-11-17 05:05:57 +00:00
|
|
|
#include "World/CPathFindSearch.hpp"
|
2018-10-11 22:57:05 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde::MP1 {
|
|
|
|
class CFireFlea : public CPatterned {
|
|
|
|
class CDeathCameraEffect : public CEntity {
|
|
|
|
u32 x34_ = 13;
|
|
|
|
u32 x38_ = 5;
|
|
|
|
u32 x3c_ = 60;
|
|
|
|
u32 x40_ = 190;
|
|
|
|
u32 x44_ = 0;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static const zeus::CColor skStartFadeColor;
|
|
|
|
static const zeus::CColor skEndFadeColor;
|
|
|
|
static zeus::CColor sCurrentFadeColor;
|
|
|
|
CDeathCameraEffect(TUniqueId, TAreaId, std::string_view);
|
|
|
|
|
|
|
|
void Accept(IVisitor&);
|
|
|
|
void PreThink(float, CStateManager&);
|
|
|
|
void Think(float, CStateManager&);
|
|
|
|
};
|
|
|
|
float x568_ = 1.f;
|
|
|
|
float x56c_;
|
2018-12-10 05:12:55 +00:00
|
|
|
rstl::reserved_vector<TUniqueId, 1024> x570_nearList;
|
2018-12-08 05:30:43 +00:00
|
|
|
float xe64_;
|
|
|
|
zeus::CVector3f xd74_;
|
2018-12-10 05:12:55 +00:00
|
|
|
zeus::CVector3f xd80_targetPos;
|
2018-12-08 05:30:43 +00:00
|
|
|
CPathFindSearch xd8c_pathFind;
|
|
|
|
|
|
|
|
static s32 sLightIdx;
|
2018-12-10 05:12:55 +00:00
|
|
|
zeus::CVector3f FindSafeRoute(CStateManager& mgr, const zeus::CVector3f& forward);
|
|
|
|
bool CheckNearWater(const CStateManager&, const zeus::CVector3f& dir);
|
2018-11-10 02:47:07 +00:00
|
|
|
|
2018-10-11 22:57:05 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
DEFINE_PATTERNED(FireFlea)
|
2018-10-11 22:57:05 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CFireFlea(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, CModelData&&,
|
|
|
|
const CActorParameters&, const CPatternedInfo&, float);
|
2018-11-17 05:05:57 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void Accept(IVisitor&);
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr);
|
|
|
|
void Dead(CStateManager&, EStateMsg msg, float dt);
|
|
|
|
bool Delay(CStateManager&, float arg);
|
|
|
|
bool InPosition(CStateManager& mgr, float dt);
|
2018-12-10 05:12:55 +00:00
|
|
|
bool HearShot(CStateManager&, float);
|
|
|
|
void TargetPatrol(CStateManager&, EStateMsg, float);
|
|
|
|
void Patrol(CStateManager&, EStateMsg, float);
|
|
|
|
void Flee(CStateManager&, EStateMsg, float);
|
2018-12-08 05:30:43 +00:00
|
|
|
CPathFindSearch* GetSearchPath() { return &xd8c_pathFind; }
|
2018-10-11 22:57:05 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde::MP1
|