|
|
@ -686,19 +686,19 @@ void Animation::handleTextKey(AnimState &state, const std::string &groupname, co
|
|
|
|
else if(evt.compare(off, len, "unequip detach") == 0)
|
|
|
|
else if(evt.compare(off, len, "unequip detach") == 0)
|
|
|
|
showWeapons(false);
|
|
|
|
showWeapons(false);
|
|
|
|
else if(evt.compare(off, len, "chop hit") == 0)
|
|
|
|
else if(evt.compare(off, len, "chop hit") == 0)
|
|
|
|
mPtr.getClass().hit(mPtr, MWMechanics::CreatureStats::AT_Chop);
|
|
|
|
mPtr.getClass().hit(mPtr, ESM::Weapon::AT_Chop);
|
|
|
|
else if(evt.compare(off, len, "slash hit") == 0)
|
|
|
|
else if(evt.compare(off, len, "slash hit") == 0)
|
|
|
|
mPtr.getClass().hit(mPtr, MWMechanics::CreatureStats::AT_Slash);
|
|
|
|
mPtr.getClass().hit(mPtr, ESM::Weapon::AT_Slash);
|
|
|
|
else if(evt.compare(off, len, "thrust hit") == 0)
|
|
|
|
else if(evt.compare(off, len, "thrust hit") == 0)
|
|
|
|
mPtr.getClass().hit(mPtr, MWMechanics::CreatureStats::AT_Thrust);
|
|
|
|
mPtr.getClass().hit(mPtr, ESM::Weapon::AT_Thrust);
|
|
|
|
else if(evt.compare(off, len, "hit") == 0)
|
|
|
|
else if(evt.compare(off, len, "hit") == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (groupname == "attack1")
|
|
|
|
if (groupname == "attack1")
|
|
|
|
mPtr.getClass().hit(mPtr, MWMechanics::CreatureStats::AT_Chop);
|
|
|
|
mPtr.getClass().hit(mPtr, ESM::Weapon::AT_Chop);
|
|
|
|
else if (groupname == "attack2")
|
|
|
|
else if (groupname == "attack2")
|
|
|
|
mPtr.getClass().hit(mPtr, MWMechanics::CreatureStats::AT_Slash);
|
|
|
|
mPtr.getClass().hit(mPtr, ESM::Weapon::AT_Slash);
|
|
|
|
else if (groupname == "attack3")
|
|
|
|
else if (groupname == "attack3")
|
|
|
|
mPtr.getClass().hit(mPtr, MWMechanics::CreatureStats::AT_Thrust);
|
|
|
|
mPtr.getClass().hit(mPtr, ESM::Weapon::AT_Thrust);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
mPtr.getClass().hit(mPtr);
|
|
|
|
mPtr.getClass().hit(mPtr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|