2016-08-14 21:11:44 +00:00
|
|
|
#ifndef __URDE_CPOWERBEAM_HPP__
|
|
|
|
#define __URDE_CPOWERBEAM_HPP__
|
|
|
|
|
|
|
|
#include "CGunWeapon.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2018-05-25 06:39:38 +00:00
|
|
|
class CPowerBeam final : public CGunWeapon
|
2016-08-14 21:11:44 +00:00
|
|
|
{
|
2017-09-07 03:55:31 +00:00
|
|
|
enum class ESmokeState
|
|
|
|
{
|
|
|
|
Inactive,
|
|
|
|
Active,
|
|
|
|
Done
|
|
|
|
};
|
2017-08-22 03:20:22 +00:00
|
|
|
TCachedToken<CGenDescription> x21c_shotSmoke;
|
|
|
|
TCachedToken<CGenDescription> x228_power2nd1;
|
2017-09-02 04:06:05 +00:00
|
|
|
std::unique_ptr<CElementGen> x234_shotSmokeGen;
|
2017-09-07 03:55:31 +00:00
|
|
|
std::unique_ptr<CElementGen> x238_power2ndGen;
|
|
|
|
float x23c_smokeTimer = 0.f;
|
|
|
|
ESmokeState x240_smokeState = ESmokeState::Inactive;
|
2017-08-22 03:20:22 +00:00
|
|
|
bool x244_24 : 1;
|
2017-09-07 03:55:31 +00:00
|
|
|
bool x244_25_loaded : 1;
|
|
|
|
void ReInitVariables();
|
2016-12-10 02:35:20 +00:00
|
|
|
public:
|
2017-08-22 03:20:22 +00:00
|
|
|
CPowerBeam(CAssetId characterId, EWeaponType type, TUniqueId playerId,
|
|
|
|
EMaterialTypes playerMaterial, const zeus::CVector3f& scale);
|
2017-09-07 03:55:31 +00:00
|
|
|
|
|
|
|
void PreRenderGunFx(const CStateManager& mgr, const zeus::CTransform& xf);
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CPOWERBEAM_HPP__
|