2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2018-06-04 19:30:04 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/Particle/CWeaponDescription.hpp"
|
|
|
|
#include "Runtime/World/CDamageInfo.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2018-06-04 19:30:04 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2018-06-04 19:30:04 +00:00
|
|
|
class CPlayer;
|
2018-12-08 05:30:43 +00:00
|
|
|
class CProjectileInfo {
|
|
|
|
TToken<CWeaponDescription> x0_weaponDescription;
|
|
|
|
CDamageInfo xc_damageInfo;
|
|
|
|
|
2018-06-04 19:30:04 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CProjectileInfo(CInputStream&);
|
|
|
|
CProjectileInfo(CAssetId, const CDamageInfo&);
|
2018-06-04 19:30:04 +00:00
|
|
|
|
2018-12-13 07:39:16 +00:00
|
|
|
float GetProjectileSpeed() const;
|
|
|
|
static zeus::CVector3f PredictInterceptPos(const zeus::CVector3f& gunPos, const zeus::CVector3f& aimPos,
|
|
|
|
const CPlayer& player, bool gravity, float speed, float dt);
|
|
|
|
zeus::CVector3f PredictInterceptPos(const zeus::CVector3f& gunPos, const zeus::CVector3f& aimPos,
|
2019-08-14 10:04:11 +00:00
|
|
|
const CPlayer& player, bool gravity, float dt) const;
|
2018-06-04 19:30:04 +00:00
|
|
|
|
2019-02-18 05:47:46 +00:00
|
|
|
const CDamageInfo& GetDamage() const { return xc_damageInfo; }
|
2019-11-12 20:25:21 +00:00
|
|
|
void SetDamage(const CDamageInfo& damageInfo) { xc_damageInfo = damageInfo; }
|
2019-01-16 04:22:44 +00:00
|
|
|
TToken<CWeaponDescription>& Token() { return x0_weaponDescription; }
|
2018-06-04 19:30:04 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|