1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Merge branch 'STRONGFOLLOW' into 'master'

Correct follow animation attack strength dependence

See merge request OpenMW/openmw!2280
This commit is contained in:
Evil Eye 2022-08-15 20:22:58 +00:00
commit 9817528011

View file

@ -1640,7 +1640,7 @@ bool CharacterController::updateWeaponState()
if (mAttackType != "shoot") if (mAttackType != "shoot")
{ {
std::string strength = mAttackStrength < 0.5f ? "small" : mAttackStrength < 1.f ? "medium" : "large"; std::string strength = mAttackStrength < 0.33f ? "small" : mAttackStrength < 0.66f ? "medium" : "large";
start = strength + ' ' + start; start = strength + ' ' + start;
stop = strength + ' ' + stop; stop = strength + ' ' + stop;
} }