|
|
@ -13,13 +13,13 @@ namespace ESM
|
|
|
|
|
|
|
|
|
|
|
|
void AiWander::load(ESMReader& esm)
|
|
|
|
void AiWander::load(ESMReader& esm)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
esm.getHNTSized<14>(mData, "DATA");
|
|
|
|
esm.getHNT("DATA", mData.mDistance, mData.mDuration, mData.mTimeOfDay, mData.mIdle, mData.mShouldRepeat);
|
|
|
|
esm.getHNTSized<8>(mDurationData, "STAR"); // was mStartTime
|
|
|
|
esm.getHNT("STAR", mDurationData.mRemainingDuration, mDurationData.unused); // was mStartTime
|
|
|
|
mStoredInitialActorPosition = false;
|
|
|
|
mStoredInitialActorPosition = false;
|
|
|
|
if (esm.isNextSub("POS_"))
|
|
|
|
if (esm.isNextSub("POS_"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mStoredInitialActorPosition = true;
|
|
|
|
mStoredInitialActorPosition = true;
|
|
|
|
esm.getHTSized<12>(mInitialActorPosition);
|
|
|
|
esm.getHT(mInitialActorPosition.mValues);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ namespace ESM
|
|
|
|
|
|
|
|
|
|
|
|
void AiTravel::load(ESMReader& esm)
|
|
|
|
void AiTravel::load(ESMReader& esm)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
esm.getHNTSized<12>(mData, "DATA");
|
|
|
|
esm.getHNT("DATA", mData.mX, mData.mY, mData.mZ);
|
|
|
|
esm.getHNOT(mHidden, "HIDD");
|
|
|
|
esm.getHNOT(mHidden, "HIDD");
|
|
|
|
mRepeat = false;
|
|
|
|
mRepeat = false;
|
|
|
|
esm.getHNOT(mRepeat, "REPT");
|
|
|
|
esm.getHNOT(mRepeat, "REPT");
|
|
|
@ -49,7 +49,7 @@ namespace ESM
|
|
|
|
|
|
|
|
|
|
|
|
void AiEscort::load(ESMReader& esm)
|
|
|
|
void AiEscort::load(ESMReader& esm)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
esm.getHNTSized<14>(mData, "DATA");
|
|
|
|
esm.getHNT("DATA", mData.mX, mData.mY, mData.mZ, mData.mDuration);
|
|
|
|
mTargetId = esm.getHNRefId("TARG");
|
|
|
|
mTargetId = esm.getHNRefId("TARG");
|
|
|
|
mTargetActorId = -1;
|
|
|
|
mTargetActorId = -1;
|
|
|
|
esm.getHNOT(mTargetActorId, "TAID");
|
|
|
|
esm.getHNOT(mTargetActorId, "TAID");
|
|
|
@ -81,7 +81,7 @@ namespace ESM
|
|
|
|
|
|
|
|
|
|
|
|
void AiFollow::load(ESMReader& esm)
|
|
|
|
void AiFollow::load(ESMReader& esm)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
esm.getHNTSized<14>(mData, "DATA");
|
|
|
|
esm.getHNT("DATA", mData.mX, mData.mY, mData.mZ, mData.mDuration);
|
|
|
|
mTargetId = esm.getHNRefId("TARG");
|
|
|
|
mTargetId = esm.getHNRefId("TARG");
|
|
|
|
mTargetActorId = -1;
|
|
|
|
mTargetActorId = -1;
|
|
|
|
esm.getHNOT(mTargetActorId, "TAID");
|
|
|
|
esm.getHNOT(mTargetActorId, "TAID");
|
|
|
|