2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-08-14 21:11:44 +00:00
|
|
|
|
|
|
|
#include "CGunWeapon.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
|
|
|
|
class CIceBeam final : public CGunWeapon {
|
|
|
|
TCachedToken<CGenDescription> x21c_iceSmoke;
|
|
|
|
TCachedToken<CGenDescription> x228_ice2nd1;
|
|
|
|
TCachedToken<CGenDescription> x234_ice2nd2;
|
|
|
|
std::unique_ptr<CElementGen> x240_smokeGen;
|
|
|
|
std::unique_ptr<CElementGen> x244_chargeFx;
|
|
|
|
bool x248_24_loaded : 1;
|
|
|
|
bool x248_25_inEndFx : 1;
|
|
|
|
void ReInitVariables();
|
2016-08-14 21:11:44 +00:00
|
|
|
|
2017-08-22 03:20:22 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CIceBeam(CAssetId characterId, EWeaponType type, TUniqueId playerId, EMaterialTypes playerMaterial,
|
|
|
|
const zeus::CVector3f& scale);
|
2017-09-07 03:55:31 +00:00
|
|
|
|
2019-08-09 12:45:18 +00:00
|
|
|
void PreRenderGunFx(const CStateManager& mgr, const zeus::CTransform& xf) override;
|
|
|
|
void PostRenderGunFx(const CStateManager& mgr, const zeus::CTransform& xf) override;
|
|
|
|
void UpdateGunFx(bool shotSmoke, float dt, const CStateManager& mgr, const zeus::CTransform& xf) override;
|
2018-12-08 05:30:43 +00:00
|
|
|
void Fire(bool underwater, float dt, EChargeState chargeState, const zeus::CTransform& xf, CStateManager& mgr,
|
2019-08-09 12:45:18 +00:00
|
|
|
TUniqueId homingTarget, float chargeFactor1, float chargeFactor2) override;
|
|
|
|
void EnableFx(bool enable) override;
|
|
|
|
void EnableSecondaryFx(ESecondaryFxType type) override;
|
|
|
|
void Update(float dt, CStateManager& mgr) override;
|
|
|
|
void Load(CStateManager& mgr, bool subtypeBasePose) override;
|
|
|
|
void Unload(CStateManager& mgr) override;
|
|
|
|
bool IsLoaded() const override;
|
2016-08-14 21:11:44 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|