2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2018-02-11 05:27:00 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <optional>
|
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/Weapon/CEnergyProjectile.hpp"
|
2018-02-11 05:27:00 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
|
|
|
|
class CTargetableProjectile : public CEnergyProjectile {
|
2019-03-24 05:45:47 +00:00
|
|
|
TLockedToken<CWeaponDescription> x3d8_weaponDesc;
|
|
|
|
CDamageInfo x3e0_damage;
|
2018-02-11 05:27:00 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CTargetableProjectile(const TToken<CWeaponDescription>& desc, EWeaponType type, const zeus::CTransform& xf,
|
|
|
|
EMaterialTypes materials, const CDamageInfo& damage, const CDamageInfo& damage2, TUniqueId uid,
|
2019-03-24 05:45:47 +00:00
|
|
|
TAreaId aid, TUniqueId owner, const TLockedToken<CWeaponDescription>& weapDesc,
|
|
|
|
TUniqueId homingTarget, EProjectileAttrib attribs,
|
2019-06-12 02:05:17 +00:00
|
|
|
const std::optional<TLockedToken<CGenDescription>>& visorParticle, u16 visorSfx,
|
2018-12-08 05:30:43 +00:00
|
|
|
bool sendCollideMsg);
|
2019-03-24 05:45:47 +00:00
|
|
|
|
2019-08-09 12:45:18 +00:00
|
|
|
void Accept(IVisitor&) override;
|
|
|
|
zeus::CVector3f GetAimPosition(const CStateManager&, float) const override;
|
2019-03-24 05:45:47 +00:00
|
|
|
bool Explode(const zeus::CVector3f& pos, const zeus::CVector3f& normal, EWeaponCollisionResponseTypes type,
|
2019-08-09 12:45:18 +00:00
|
|
|
CStateManager& mgr, const CDamageVulnerability& dVuln, TUniqueId hitActor) override;
|
2020-09-25 18:14:24 +00:00
|
|
|
void ResolveCollisionWithActor(const CRayCastResult& res, CActor& act, CStateManager& mgr) override;
|
2018-02-11 05:27:00 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|