2018-10-11 22:57:05 +00:00
|
|
|
#include "CMagdolite.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde::MP1 {
|
2018-10-11 22:57:05 +00:00
|
|
|
|
|
|
|
CMagdolite::CMagdoliteData::CMagdoliteData(CInputStream& in)
|
|
|
|
: x0_propertyCount(in.readUint32Big())
|
|
|
|
, x4_(in.readUint32Big())
|
|
|
|
, x8_(in)
|
|
|
|
, xc_(in.readUint32Big())
|
|
|
|
, x10_(in.readFloatBig())
|
|
|
|
, x18_(in.readFloatBig())
|
2018-12-08 05:30:43 +00:00
|
|
|
, x1c_(in.readFloatBig()) {}
|
2018-10-11 22:57:05 +00:00
|
|
|
|
|
|
|
CMagdolite::CMagdolite(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
|
2018-12-08 05:30:43 +00:00
|
|
|
CModelData&& mData, const CPatternedInfo& pInfo, const CActorParameters& actParms, float f1,
|
|
|
|
float f2, const CDamageInfo& dInfo1, const CDamageInfo& dInfo2,
|
|
|
|
const CDamageVulnerability& dVuln1, const CDamageVulnerability& dVuln2, CAssetId modelId,
|
|
|
|
CAssetId skinId, float f3, float f4, float f5, float f6,
|
|
|
|
const urde::MP1::CMagdolite::CMagdoliteData& magData, float f7, float f8, float f9)
|
2018-10-11 22:57:05 +00:00
|
|
|
: CPatterned(ECharacter::Magdolite, uid, name, EFlavorType::Zero, info, xf, std::move(mData), pInfo,
|
2018-12-08 05:30:43 +00:00
|
|
|
EMovementType::Flyer, EColliderType::One, EBodyType::BiPedal, actParms, EKnockBackVariant::Large) {}
|
2019-01-31 20:44:05 +00:00
|
|
|
|
|
|
|
void CMagdolite::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) {
|
|
|
|
|
|
|
|
switch(msg) {
|
|
|
|
case EScriptObjectMessage::Damage:
|
|
|
|
case EScriptObjectMessage::InvulnDamage:
|
|
|
|
/* TODO Implement */
|
|
|
|
return;
|
|
|
|
case EScriptObjectMessage::Registered:
|
|
|
|
x450_bodyController->Activate(mgr);
|
|
|
|
RemoveMaterial(EMaterialTypes::Solid, mgr);
|
|
|
|
AddMaterial(EMaterialTypes::NonSolidDamageable, mgr);
|
|
|
|
//x584_boneTracker.SetActive(false);
|
|
|
|
CreateShadow(false);
|
|
|
|
/* TODO Finish */
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
CPatterned::AcceptScriptMsg(msg, uid, mgr);
|
|
|
|
}
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde::MP1
|