2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-08-14 21:11:44 +00:00
|
|
|
|
|
|
|
#include "CGunWeapon.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2018-05-25 06:39:38 +00:00
|
|
|
class CPlasmaBeam final : public CGunWeapon
|
2016-08-14 21:11:44 +00:00
|
|
|
{
|
2017-08-22 03:20:22 +00:00
|
|
|
TCachedToken<CGenDescription> x21c_plasma2nd1;
|
2017-09-07 03:55:31 +00:00
|
|
|
std::unique_ptr<CElementGen> x228_chargeFx;
|
|
|
|
bool x22c_24_loaded : 1;
|
|
|
|
bool x22c_25_worldLighingDim : 1;
|
|
|
|
float x230_fireShotDelayTimer = 0.f;
|
|
|
|
float x234_fireShotDelay = 0.f;
|
|
|
|
float x238_lightingResetDelayTimer = 0.f;
|
|
|
|
TAreaId x23c_stateArea = kInvalidAreaId;
|
|
|
|
void ReInitVariables();
|
|
|
|
void SetWorldLighting(CStateManager& mgr, TAreaId aid, float speed, float target);
|
2017-08-22 03:20:22 +00:00
|
|
|
public:
|
|
|
|
CPlasmaBeam(CAssetId characterId, EWeaponType type, TUniqueId playerId,
|
|
|
|
EMaterialTypes playerMaterial, const zeus::CVector3f& scale);
|
2017-09-07 03:55:31 +00:00
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId sender, CStateManager& mgr);
|
|
|
|
bool IsFiring() const { return x234_fireShotDelay > 0.f; }
|
|
|
|
void StopBeam(CStateManager& mgr, bool b1) { /* Empty */ }
|
|
|
|
void CreateBeam(CStateManager& mgr) { /* Empty */ }
|
2017-09-02 04:06:05 +00:00
|
|
|
void UpdateBeam(float dt, const zeus::CTransform& targetXf,
|
2017-09-07 03:55:31 +00:00
|
|
|
const zeus::CVector3f& localBeamPos, CStateManager& mgr) { /* Empty */ }
|
|
|
|
void DeleteBeam(CStateManager& mgr);
|
|
|
|
|
|
|
|
void PostRenderGunFx(const CStateManager& mgr, const zeus::CTransform& xf);
|
|
|
|
void UpdateGunFx(bool shotSmoke, float dt, const CStateManager& mgr, const zeus::CTransform& xf);
|
|
|
|
void Fire(bool underwater, float dt, EChargeState chargeState, const zeus::CTransform& xf,
|
|
|
|
CStateManager& mgr, TUniqueId homingTarget, float chargeFactor1, float chargeFactor2);
|
|
|
|
void EnableSecondaryFx(ESecondaryFxType type);
|
|
|
|
void Update(float dt, CStateManager& mgr);
|
|
|
|
void Load(CStateManager& mgr, bool subtypeBasePose);
|
|
|
|
void Unload(CStateManager& mgr);
|
|
|
|
bool IsLoaded() const;
|
2016-08-14 21:11:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|