2017-03-24 05:30:16 +00:00
|
|
|
#include "CProjectileWeapon.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2017-06-11 02:57:35 +00:00
|
|
|
u16 CProjectileWeapon::g_GlobalSeed = 99;
|
2017-03-24 05:30:16 +00:00
|
|
|
|
2017-05-18 10:58:15 +00:00
|
|
|
CProjectileWeapon::CProjectileWeapon(const TToken<CWeaponDescription>& wDesc, const zeus::CVector3f&, const zeus::CTransform&,
|
|
|
|
const zeus::CVector3f&, s32)
|
|
|
|
: x4_weaponDesc(wDesc)
|
|
|
|
{
|
|
|
|
}
|
2017-03-24 05:30:16 +00:00
|
|
|
|
2018-02-09 07:12:26 +00:00
|
|
|
zeus::CTransform CProjectileWeapon::GetTransform() const
|
|
|
|
{
|
|
|
|
return x14_localToWorldXf * x44_localXf;
|
|
|
|
}
|
|
|
|
|
|
|
|
zeus::CVector3f CProjectileWeapon::GetTranslation() const
|
|
|
|
{
|
|
|
|
return x14_localToWorldXf * (x44_localXf * x8c_ + x80_) + x74_;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CProjectileWeapon::RenderParticles() const
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void CProjectileWeapon::Update(float dt)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void CProjectileWeapon::UpdateParticleFx()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void CProjectileWeapon::UpdateChildParticleSystems(float dt)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void CProjectileWeapon::SetWorldSpaceOrientation(const zeus::CTransform& xf)
|
|
|
|
{
|
|
|
|
x44_localXf = x14_localToWorldXf.inverse() * xf;
|
|
|
|
}
|
|
|
|
|
2017-03-24 05:30:16 +00:00
|
|
|
}
|