metaforce/Runtime/Weapon/CEnergyProjectile.cpp

21 lines
1003 B
C++
Raw Normal View History

2017-06-12 04:23:34 +00:00
#include "CEnergyProjectile.hpp"
namespace urde
{
CEnergyProjectile::CEnergyProjectile(bool active, const TToken<CWeaponDescription>& desc, EWeaponType type,
const zeus::CTransform& xf, EMaterialTypes materials, const CDamageInfo& damage,
2017-09-05 03:00:19 +00:00
TUniqueId uid, TAreaId aid, TUniqueId owner, TUniqueId homingTarget,
EProjectileAttrib attribs, bool underwater, const zeus::CVector3f& scale,
2017-06-12 04:23:34 +00:00
const rstl::optional_object<TLockedToken<CGenDescription>>& particle,
s16 w2, bool b2)
2017-09-05 03:00:19 +00:00
: CGameProjectile(active, desc, "GameProjectile", type, xf, materials, damage, uid, aid,
owner, homingTarget, attribs, underwater, scale, particle, w2, b2),
2017-06-12 04:23:34 +00:00
x2ec_dir(xf.basis[1]), x2f8_mag(x2ec_dir.magnitude()),
x2fc_camShake(CCameraShakeData::BuildProjectileCameraShake(0.5f, 0.75f))
{
2017-08-13 07:56:35 +00:00
xe6_27_renderVisorFlags = 2;
2017-06-12 04:23:34 +00:00
}
}