|
|
@ -52,6 +52,8 @@ namespace ESM
|
|
|
|
esm.writeHNString ("BOW_", mBowId);
|
|
|
|
esm.writeHNString ("BOW_", mBowId);
|
|
|
|
esm.writeHNT ("VEL_", mVelocity);
|
|
|
|
esm.writeHNT ("VEL_", mVelocity);
|
|
|
|
esm.writeHNT ("STR_", mAttackStrength);
|
|
|
|
esm.writeHNT ("STR_", mAttackStrength);
|
|
|
|
|
|
|
|
esm.writeHNT ("THR_", mThrown);
|
|
|
|
|
|
|
|
esm.writeHNT ("TIM_", mTime);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ProjectileState::load(ESMReader &esm)
|
|
|
|
void ProjectileState::load(ESMReader &esm)
|
|
|
@ -63,6 +65,12 @@ namespace ESM
|
|
|
|
|
|
|
|
|
|
|
|
mAttackStrength = 1.f;
|
|
|
|
mAttackStrength = 1.f;
|
|
|
|
esm.getHNOT(mAttackStrength, "STR_");
|
|
|
|
esm.getHNOT(mAttackStrength, "STR_");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mThrown = false;
|
|
|
|
|
|
|
|
esm.getHNOT (mThrown, "THR_");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mTime = 0.f;
|
|
|
|
|
|
|
|
esm.getHNOT (mTime, "TIM_");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|