2016-04-27 19:59:38 +00:00
|
|
|
#ifndef __URDE_CSCRIPTSPECIALFUNCTION_HPP__
|
|
|
|
#define __URDE_CSCRIPTSPECIALFUNCTION_HPP__
|
|
|
|
|
|
|
|
#include "CActor.hpp"
|
|
|
|
#include "CDamageInfo.hpp"
|
|
|
|
#include "zeus/CTransform.hpp"
|
|
|
|
#include "zeus/CColor.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CScriptSpecialFunction : public CActor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum class ESpecialFunction
|
|
|
|
{
|
|
|
|
What,
|
|
|
|
PlayerFollowLocator,
|
|
|
|
SpinnerController,
|
|
|
|
ObjectFollowLocator,
|
|
|
|
Four,
|
|
|
|
InventoryActivator,
|
|
|
|
MapStation,
|
|
|
|
SaveStation,
|
|
|
|
IntroBossRingController,
|
|
|
|
ViewFrustumTester,
|
|
|
|
ShotSpinnerController,
|
|
|
|
EscapeSequence,
|
|
|
|
BossEnergyBar,
|
|
|
|
EndGame,
|
|
|
|
HUDFadeIn,
|
|
|
|
CinematicSkip,
|
|
|
|
ScriptLayerController,
|
|
|
|
RainSimulator,
|
|
|
|
AreaDamage,
|
|
|
|
ObjectFollowObject,
|
|
|
|
RedundantHintSystem,
|
|
|
|
DropBomb,
|
|
|
|
TwentyTwo,
|
|
|
|
MissileStation,
|
|
|
|
Billboard,
|
|
|
|
PlayerInAreaRelay,
|
|
|
|
HUDTarget,
|
|
|
|
FogFader,
|
|
|
|
EnterLogbook,
|
|
|
|
PowerBombStation,
|
|
|
|
Ending,
|
|
|
|
FusionRelay,
|
|
|
|
WeaponSwitch,
|
2016-09-02 15:26:29 +00:00
|
|
|
FogVolume = 47,
|
|
|
|
RadialDamage = 48,
|
|
|
|
EnvFxDensityController = 49,
|
|
|
|
RumbleEffect = 50
|
2016-04-27 19:59:38 +00:00
|
|
|
};
|
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
enum class ESpinnerControllerMode
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SRingController
|
|
|
|
{
|
|
|
|
SRingController(TUniqueId, float, bool);
|
|
|
|
};
|
|
|
|
|
2016-04-27 19:59:38 +00:00
|
|
|
private:
|
2016-12-19 18:27:58 +00:00
|
|
|
ESpecialFunction xe8_function;
|
|
|
|
std::string xec_locatorName;
|
|
|
|
float xfc_radius;
|
|
|
|
float x100_;
|
|
|
|
float x104_;
|
|
|
|
float x108_;
|
|
|
|
zeus::CVector3f x10c_;
|
|
|
|
zeus::CColor x118_;
|
|
|
|
CDamageInfo x11c_damageInfo;
|
|
|
|
float x138_ = 0.f;
|
|
|
|
zeus::CTransform x13c_ = zeus::CTransform::Identity();
|
|
|
|
float x16c_ = 0.f;
|
|
|
|
s16 x170_;
|
|
|
|
s16 x172_;
|
|
|
|
s16 x174_;
|
|
|
|
u32 x178_ = 0;
|
|
|
|
u32 x17c_;
|
|
|
|
float x180_ = 0.f;
|
|
|
|
std::vector<float> x184_;
|
|
|
|
float x194_ = 0.f;
|
|
|
|
u32 x19c_ = 0;
|
|
|
|
u32 x1a0_ = 0;
|
|
|
|
u32 x1a4_ = 0;
|
|
|
|
u32 x1a8_ = 2;
|
|
|
|
zeus::CVector3f x1ac_ = zeus::CVector3f::skZero;
|
|
|
|
bool x1b8_ = true;
|
|
|
|
ResId x1bc_;
|
|
|
|
ResId x1c0_;
|
|
|
|
ResId x1c4_;
|
|
|
|
rstl::optional_object<zeus::CAABox> x1c8_;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
bool x1e4_24_ : 1;
|
|
|
|
bool x1e4_25_ : 1;
|
|
|
|
bool x1e4_26_ : 1;
|
|
|
|
bool x1e4_27_ : 1;
|
|
|
|
bool x1e4_31_ : 1;
|
|
|
|
bool x1e5_24_ : 1;
|
|
|
|
bool x1e5_25_ : 1;
|
|
|
|
bool x1e5_26_ : 1;
|
|
|
|
};
|
|
|
|
u32 x1e4_dummy = 0;
|
|
|
|
};
|
|
|
|
bool x1f0_ = false;
|
2016-04-27 19:59:38 +00:00
|
|
|
public:
|
|
|
|
CScriptSpecialFunction(TUniqueId, const std::string&, const CEntityInfo&, const zeus::CTransform&, ESpecialFunction,
|
2016-09-02 15:26:29 +00:00
|
|
|
const std::string&, float, float, float, float, const zeus::CVector3f&, const zeus::CColor&,
|
2016-12-19 18:27:58 +00:00
|
|
|
bool, const CDamageInfo&, ResId, ResId, ResId, s16, s16, s16);
|
|
|
|
|
|
|
|
void Think(float, CStateManager &);
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager &);
|
|
|
|
void PreRender(const zeus::CFrustum &, const CStateManager &);
|
|
|
|
void AddToRenderer(const zeus::CFrustum &, const CStateManager &) const;
|
|
|
|
void Render(const CStateManager &) const;
|
|
|
|
|
|
|
|
void SkipCinematic(CStateManager&);
|
|
|
|
void RingMoveCloser(CStateManager&, float);
|
|
|
|
void RingMoveAway(CStateManager&, float);
|
|
|
|
void ThinkRingPuller(float, CStateManager&);
|
|
|
|
void RingScramble(CStateManager&);
|
|
|
|
void ThinkIntroBossRingController(float, CStateManager&);
|
|
|
|
void ThinkPlayerFollowLocator(float, CStateManager&);
|
|
|
|
void ThinkSpinnerController(float, CStateManager&, ESpinnerControllerMode);
|
|
|
|
void ThinkObjectFollowLocator(float, CStateManager&);
|
|
|
|
void ThinkChaffTarget(float, CStateManager&);
|
2016-04-27 19:59:38 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // CSCRIPTSPECIALFUNCTION_HPP
|