metaforce/Runtime/Weapon/CTargetableProjectile.cpp

20 lines
955 B
C++
Raw Normal View History

2018-02-11 05:27:00 +00:00
#include "CTargetableProjectile.hpp"
2018-12-08 05:30:43 +00:00
namespace urde {
2018-02-11 05:27:00 +00:00
CTargetableProjectile::CTargetableProjectile(
2018-12-08 05:30:43 +00:00
const TToken<CWeaponDescription>& desc, EWeaponType type, const zeus::CTransform& xf, EMaterialTypes materials,
const CDamageInfo& damage, const CDamageInfo& damage2, TUniqueId uid, TAreaId aid, TUniqueId owner,
2018-02-11 05:27:00 +00:00
TUniqueId homingTarget, EProjectileAttrib attribs,
2019-01-29 08:28:35 +00:00
const rstl::optional<TLockedToken<CGenDescription>>& visorParticle, u16 visorSfx, bool sendCollideMsg)
2018-02-11 05:27:00 +00:00
: CEnergyProjectile(true, desc, type, xf, materials, damage, uid, aid, owner, homingTarget,
attribs | EProjectileAttrib::BigProjectile | EProjectileAttrib::PartialCharge |
2018-12-08 05:30:43 +00:00
EProjectileAttrib::PlasmaProjectile,
false, zeus::skOne3f, visorParticle, visorSfx, sendCollideMsg)
2018-12-08 05:30:43 +00:00
, x3e0_dInfo2(damage2) {
x68_material.Add(EMaterialTypes::Target);
x68_material.Add(EMaterialTypes::Orbit);
2018-02-11 05:27:00 +00:00
}
2018-12-08 05:30:43 +00:00
} // namespace urde