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 CWaveBeam final : public CGunWeapon {
|
|
|
|
TCachedToken<CWeaponDescription> x21c_waveBeam;
|
|
|
|
TCachedToken<CElectricDescription> x228_wave2nd1;
|
|
|
|
TCachedToken<CElectricDescription> x234_wave2nd2;
|
|
|
|
TCachedToken<CGenDescription> x240_wave2nd3;
|
|
|
|
float x24c_effectTimer = 0.f;
|
|
|
|
std::unique_ptr<CParticleElectric> x250_chargeElec;
|
|
|
|
std::unique_ptr<CElementGen> x254_chargeFx;
|
|
|
|
bool x258_24_loaded : 1;
|
|
|
|
bool x258_25_effectTimerActive : 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
|
|
|
CWaveBeam(CAssetId characterId, EWeaponType type, TUniqueId playerId, EMaterialTypes playerMaterial,
|
|
|
|
const zeus::CVector3f& scale);
|
2017-09-07 03:55:31 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|