2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2015-09-10 20:30:35 +00:00
|
|
|
|
|
|
|
#include "../../DNACommon/DNACommon.hpp"
|
|
|
|
#include "IScriptObject.hpp"
|
|
|
|
#include "Parameters.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace DataSpec::DNAMP1 {
|
|
|
|
struct Babygoth : IScriptObject {
|
|
|
|
AT_DECL_DNA_YAML
|
|
|
|
AT_DECL_DNAV
|
|
|
|
String<-1> name;
|
|
|
|
Value<atVec3f> location;
|
|
|
|
Value<atVec3f> orientation;
|
|
|
|
Value<atVec3f> scale;
|
|
|
|
PatternedInfo patternedInfo;
|
|
|
|
ActorParameters actorParameters;
|
2019-06-30 07:29:49 +00:00
|
|
|
Value<float> fireballAttackTime;
|
|
|
|
Value<float> fireballAttackTimeVariance;
|
|
|
|
UniqueID32 fireballWeapon;
|
|
|
|
DamageInfo fireballDamage;
|
|
|
|
DamageInfo attackContactDamage;
|
|
|
|
UniqueID32 fireBreathWeapon;
|
|
|
|
UniqueID32 fireBreathRes;
|
|
|
|
DamageInfo fireBreathDamage;
|
|
|
|
DamageVulnerability mouthVulnerabilities;
|
|
|
|
DamageVulnerability shellVulnerabilities;
|
|
|
|
UniqueID32 noShellModel;
|
|
|
|
UniqueID32 noShellSkin;
|
|
|
|
Value<float> shellHitPoints;
|
|
|
|
Value<atUint32> shellCrackSfx;
|
|
|
|
UniqueID32 intermediateCrackParticle;
|
|
|
|
UniqueID32 crackOneParticle;
|
|
|
|
UniqueID32 crackTwoParticle;
|
|
|
|
UniqueID32 destroyShellParticle;
|
|
|
|
Value<atUint32> crackOneSfx;
|
|
|
|
Value<atUint32> crackTwoSfx;
|
|
|
|
Value<atUint32> destroyShellSfx;
|
|
|
|
Value<float> timeUntilAttack;
|
|
|
|
Value<float> attackCooldownTime;
|
|
|
|
Value<float> interestTime;
|
|
|
|
UniqueID32 flamePlayerSteamTxtr;
|
|
|
|
Value<atUint32> flamePlayerHitSfx;
|
|
|
|
UniqueID32 flamePlayerIceTxtr;
|
2015-10-27 00:19:03 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void addCMDLRigPairs(PAKRouter<PAKBridge>& pakRouter, CharacterAssociations<UniqueID32>& charAssoc) const {
|
|
|
|
UniqueID32 cinf = patternedInfo.animationParameters.getCINF(pakRouter);
|
|
|
|
actorParameters.addCMDLRigPairs(pakRouter, charAssoc, patternedInfo.animationParameters);
|
2018-10-11 20:50:05 +00:00
|
|
|
|
2019-06-30 07:29:49 +00:00
|
|
|
if (noShellModel && noShellSkin) {
|
|
|
|
charAssoc.m_cmdlRigs[noShellModel] = std::make_pair(noShellSkin, cinf);
|
|
|
|
charAssoc.m_cskrCinfToCharacter[noShellSkin] =
|
2018-12-08 05:30:43 +00:00
|
|
|
std::make_pair(patternedInfo.animationParameters.animationCharacterSet, "ATTACH.SHELLESS.CSKR");
|
2019-06-30 07:29:49 +00:00
|
|
|
charAssoc.addAttachmentRig(patternedInfo.animationParameters.animationCharacterSet, {}, noShellModel, "SHELLESS");
|
2015-10-27 00:19:03 +00:00
|
|
|
}
|
2018-12-08 05:30:43 +00:00
|
|
|
}
|
2015-10-27 00:19:03 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void nameIDs(PAKRouter<PAKBridge>& pakRouter) const {
|
2019-06-30 07:29:49 +00:00
|
|
|
if (fireballWeapon) {
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(fireballWeapon);
|
2018-12-08 05:30:43 +00:00
|
|
|
ent->name = name + "_wpsc1";
|
2015-10-27 00:19:03 +00:00
|
|
|
}
|
2019-06-30 07:29:49 +00:00
|
|
|
if (fireBreathWeapon) {
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(fireBreathWeapon);
|
2018-12-08 05:30:43 +00:00
|
|
|
ent->name = name + "_wpsc2";
|
2016-10-02 22:41:36 +00:00
|
|
|
}
|
2019-06-30 07:29:49 +00:00
|
|
|
if (fireBreathRes) {
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(fireBreathRes);
|
2018-12-08 05:30:43 +00:00
|
|
|
ent->name = name + "_part1";
|
2016-10-02 22:41:36 +00:00
|
|
|
}
|
2019-06-30 07:29:49 +00:00
|
|
|
if (noShellModel) {
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(noShellModel);
|
2018-12-08 05:30:43 +00:00
|
|
|
ent->name = name + "_emodel";
|
|
|
|
}
|
2019-06-30 07:29:49 +00:00
|
|
|
if (noShellSkin) {
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(noShellSkin);
|
2018-12-08 05:30:43 +00:00
|
|
|
ent->name = name + "_eskin";
|
|
|
|
}
|
2019-06-30 07:29:49 +00:00
|
|
|
if (intermediateCrackParticle) {
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(intermediateCrackParticle);
|
2018-12-08 05:30:43 +00:00
|
|
|
ent->name = name + "_part2";
|
|
|
|
}
|
2019-06-30 07:29:49 +00:00
|
|
|
if (crackOneParticle) {
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(crackOneParticle);
|
2018-12-08 05:30:43 +00:00
|
|
|
ent->name = name + "_part3";
|
|
|
|
}
|
2019-06-30 07:29:49 +00:00
|
|
|
if (crackTwoParticle) {
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(crackTwoParticle);
|
2018-12-08 05:30:43 +00:00
|
|
|
ent->name = name + "_part4";
|
|
|
|
}
|
2019-06-30 07:29:49 +00:00
|
|
|
if (destroyShellParticle) {
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(destroyShellParticle);
|
2018-12-08 05:30:43 +00:00
|
|
|
ent->name = name + "_part5";
|
|
|
|
}
|
2019-06-30 07:29:49 +00:00
|
|
|
if (flamePlayerSteamTxtr) {
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(flamePlayerSteamTxtr);
|
2018-12-08 05:30:43 +00:00
|
|
|
ent->name = name + "_tex";
|
|
|
|
}
|
2019-06-30 07:29:49 +00:00
|
|
|
if (flamePlayerIceTxtr) {
|
|
|
|
PAK::Entry* ent = (PAK::Entry*)pakRouter.lookupEntry(flamePlayerIceTxtr);
|
2018-12-08 05:30:43 +00:00
|
|
|
ent->name = name + "_part6";
|
|
|
|
}
|
|
|
|
patternedInfo.nameIDs(pakRouter, name + "_patterned");
|
|
|
|
actorParameters.nameIDs(pakRouter, name + "_actp");
|
|
|
|
}
|
|
|
|
|
|
|
|
void gatherDependencies(std::vector<hecl::ProjectPath>& pathsOut, std::vector<hecl::ProjectPath>& lazyOut) const {
|
2019-06-30 07:29:49 +00:00
|
|
|
g_curSpec->flattenDependencies(fireballWeapon, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(fireBreathWeapon, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(fireBreathRes, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(noShellModel, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(noShellSkin, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(intermediateCrackParticle, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(crackOneParticle, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(crackTwoParticle, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(destroyShellParticle, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(flamePlayerSteamTxtr, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(flamePlayerIceTxtr, pathsOut);
|
2018-12-08 05:30:43 +00:00
|
|
|
patternedInfo.depIDs(pathsOut);
|
|
|
|
actorParameters.depIDs(pathsOut, lazyOut);
|
|
|
|
}
|
2015-09-10 20:30:35 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void gatherScans(std::vector<Scan>& scansOut) const { actorParameters.scanIDs(scansOut); }
|
|
|
|
};
|
|
|
|
} // namespace DataSpec::DNAMP1
|