2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-08-27 03:02:18 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <optional>
|
2017-08-27 03:02:18 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/Weapon/CWeapon.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CAABox.hpp>
|
2017-08-27 03:02:18 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
namespace urde {
|
2018-09-10 01:04:57 +00:00
|
|
|
class CElementGen;
|
2019-09-23 19:00:23 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CPowerBomb : public CWeapon {
|
|
|
|
bool x158_24_canStartFilter : 1;
|
|
|
|
bool x158_25_filterEnabled : 1;
|
|
|
|
float x15c_curTime = 0.f;
|
|
|
|
float x160_curRadius = 0.f;
|
|
|
|
float x164_radiusIncrement;
|
|
|
|
std::unique_ptr<CElementGen> x168_particle;
|
|
|
|
float x16c_radius;
|
|
|
|
|
2017-08-27 03:02:18 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CPowerBomb(const TToken<CGenDescription>& particle, TUniqueId uid, TAreaId aid, TUniqueId playerId,
|
|
|
|
const zeus::CTransform& xf, const CDamageInfo& dInfo);
|
2018-09-10 01:04:57 +00:00
|
|
|
|
2019-08-09 12:45:18 +00:00
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
|
|
|
void Think(float, CStateManager&) override;
|
2020-04-05 11:54:02 +00:00
|
|
|
void AddToRenderer(const zeus::CFrustum&, CStateManager&) override;
|
2020-04-09 17:28:20 +00:00
|
|
|
void Render(CStateManager&) override {}
|
2020-03-25 19:56:57 +00:00
|
|
|
std::optional<zeus::CAABox> GetTouchBounds() const override { return std::nullopt; }
|
2019-08-09 12:45:18 +00:00
|
|
|
void Touch(CActor&, CStateManager&) override { /*x158_24_canStartFilter; */
|
2018-12-08 05:30:43 +00:00
|
|
|
}
|
|
|
|
float GetCurTime() const { return x15c_curTime; }
|
|
|
|
void ApplyDynamicDamage(const zeus::CVector3f&, CStateManager&);
|
2017-08-27 03:02:18 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|