1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-28 20:15:32 +00:00
openmw-tes3mp/apps/openmw/mwmechanics
psi29a e83fb8c3fd Merge branch 'fix_turn_to_movement' into 'master'
Bugfix for "turn to movement direction"

Fix for #5457.

Users complain that movement is not smooth enough when the character turns from "straight right" to "straight right and a bit backward" movement.

This MR fixes it.

The problem was mostly caused by the logic that at first changes animation speed to match movement speed, and then adjusts the movement speed to match the animation. IMHO it is a doubtful logic because then the real movement speed may be not consistent with the result of getSpeed.

Also I've removed the setting "turn to movement direction speed coef" because:
1) It was added as a workaround for this "non smooth movement" problem. After the fix it is not needed.
2) Users mistakenly think that it is somehow related to movement speed for diagonal movement.

See merge request OpenMW/openmw!245
2020-06-26 20:04:02 +00:00
..
activespells.cpp Implement vanilla-style corprus handling (bug #3714, bug #4623) 2020-06-03 12:58:17 +04:00
activespells.hpp Implement vanilla-style corprus handling (bug #3714, bug #4623) 2020-06-03 12:58:17 +04:00
actor.cpp Make greeting-related actor data temporary (bug #5397) 2020-05-30 00:51:58 +03:00
actor.hpp Make greeting-related actor data temporary (bug #5397) 2020-05-30 00:51:58 +03:00
actors.cpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
actors.hpp Pass Actor by reference, simplify GetTarget for greetings 2020-05-30 00:51:58 +03:00
actorutil.cpp Use 2D distance for fight rating of vertically moving actors (bug #4961) 2019-06-05 21:41:02 +03:00
actorutil.hpp Merge pull request #2878 from Assumeru/mutate-ai 2020-06-03 15:09:40 +02:00
aiactivate.cpp Replace AiPackage virtual methods by options 2020-06-06 12:00:17 +02:00
aiactivate.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aiavoiddoor.cpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aiavoiddoor.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aibreathe.cpp Replace AiPackage virtual methods by options 2020-06-06 12:00:17 +02:00
aibreathe.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aicast.cpp Replace AiPackage virtual methods by options 2020-06-06 12:00:17 +02:00
aicast.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aicombat.cpp Add pathgrid to navmesh as off mesh connection 2020-06-12 21:04:02 +02:00
aicombat.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aicombataction.cpp Separate functions that don't belong to CastSpell class 2020-04-26 22:17:38 +03:00
aicombataction.hpp Replace all NULLs to nullptr 2018-10-09 10:21:12 +04:00
aiescort.cpp Replace AiPackage virtual methods by options 2020-06-06 12:00:17 +02:00
aiescort.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aiface.cpp Replace AiPackage virtual methods by options 2020-06-06 12:00:17 +02:00
aiface.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aifollow.cpp Replace AiPackage virtual methods by options 2020-06-06 12:00:17 +02:00
aifollow.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aipackage.cpp Merge pull request #2913 from akortunov/warnfix 2020-06-17 15:00:57 +02:00
aipackage.hpp Merge branch 'master' into ai_package_type 2020-06-17 01:47:23 +03:00
aipackagetypeid.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aipursue.cpp Replace AiPackage virtual methods by options 2020-06-06 12:00:17 +02:00
aipursue.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aisequence.cpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aisequence.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aistate.hpp Keep an AiWanderStorage when cloning an actor (bug #5267) 2020-03-10 12:22:21 +04:00
aitravel.cpp Replace AiPackage virtual methods by options 2020-06-06 12:00:17 +02:00
aitravel.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
aiwander.cpp Use actor speed to define area cost for pathfinding 2020-06-13 02:24:52 +02:00
aiwander.hpp Store package type id as enum except ESM 2020-06-11 21:02:27 +02:00
alchemy.cpp Store attributes and skills values as floats (bug #4021) 2020-06-03 17:34:15 +04:00
alchemy.hpp Add a filter in the alchemy window. 2020-03-20 06:35:57 +01:00
autocalcspell.cpp Use AppliedOnce flag in more effect duration calculations (#5425) 2020-05-24 18:37:21 +03:00
autocalcspell.hpp Include cleanup 2019-02-19 18:40:33 +03:00
character.cpp Bugfix for "turn to movement direction" 2020-06-26 20:04:02 +00:00
character.hpp Bugfix for "turn to movement direction" 2020-06-26 20:04:02 +00:00
combat.cpp Store attributes and skills values as floats (bug #4021) 2020-06-03 17:34:15 +04:00
combat.hpp Reuse distance functions 2019-10-19 12:51:37 +02:00
creaturestats.cpp Improved strafe movement 2020-06-22 15:22:34 +02:00
creaturestats.hpp Improved strafe movement 2020-06-22 15:22:34 +02:00
difficultyscaling.cpp Remove deprecated GMST get* functions 2018-08-29 18:38:12 +03:00
difficultyscaling.hpp Implement difficulty scaling (Fixes #1505) 2014-07-20 16:38:20 +02:00
disease.hpp Introduce a custom format() function to get rid of boost::format() and hackish replace() 2019-05-20 09:20:01 +04:00
drawstate.hpp Savegame: store most of CreatureStats 2014-05-12 21:37:36 +02:00
enchanting.cpp Separate functions that don't belong to CastSpell class 2020-04-26 22:17:38 +03:00
enchanting.hpp Allow to enchant multiple projectiles at once (feature #3517) 2019-12-31 21:31:49 +04:00
levelledlist.hpp Fix chance none logic for nested levelled lists (bug #5169) 2019-09-21 14:30:38 +03:00
linkedeffects.cpp Simplify some inflict() logic 2020-04-27 12:50:09 +03:00
linkedeffects.hpp Address akortunov's concerns regarding spell refactoring 2020-04-27 12:05:17 +03:00
magiceffects.cpp Remove redundant includes 2019-02-23 08:02:12 +04:00
magiceffects.hpp Fix various MSVC warnings 2015-02-15 20:10:21 -06:00
mechanicsmanagerimp.cpp Increase disposition on marginal Intimidate wins (#5485) 2020-06-25 20:28:55 +03:00
mechanicsmanagerimp.hpp Implement vanilla-style corprus handling (bug #3714, bug #4623) 2020-06-03 12:58:17 +04:00
movement.hpp Improved strafe movement 2020-06-22 15:22:34 +02:00
npcstats.cpp Use meaningful names instead of mSkill1 and mSkill2 2020-06-26 11:47:59 +04:00
npcstats.hpp Do not use dynamic casts when using ObjectState 2020-03-17 15:18:40 +04:00
objects.cpp [Regression] Make sure unloaded objects can be opened 2019-07-20 00:12:05 +03:00
objects.hpp Report frame number, number of actors and objects to stats 2020-05-22 17:39:18 +02:00
obstacle.cpp Use distance to position since last normal state in obstacle checker 2020-02-10 22:29:54 +01:00
obstacle.hpp Use distance to position since last normal state in obstacle checker 2020-02-10 22:29:54 +01:00
pathfinding.cpp Use actor speed to define area cost for pathfinding 2020-06-13 02:24:52 +02:00
pathfinding.hpp Use actor speed to define area cost for pathfinding 2020-06-13 02:24:52 +02:00
pathgrid.cpp Remove unused PathgridGraph::mIsExterior 2020-06-11 21:43:51 +02:00
pathgrid.hpp Remove unused PathgridGraph::mIsExterior 2020-06-11 21:43:51 +02:00
pickpocket.cpp Store attributes and skills values as floats (bug #4021) 2020-06-03 17:34:15 +04:00
pickpocket.hpp Implement pickpocket detection. Play a voiced dialogue entry when detected. 2014-01-07 03:01:33 +01:00
recharge.cpp Recharge items outside of player's inventory (bug #4077) 2019-10-07 22:59:43 +04:00
recharge.hpp Recharge items outside of player's inventory (bug #4077) 2019-10-07 22:59:43 +04:00
repair.cpp Store attributes and skills values as floats (bug #4021) 2020-06-03 17:34:15 +04:00
repair.hpp Added PC repair feature 2013-03-23 08:16:46 +01:00
security.cpp Store attributes and skills values as floats (bug #4021) 2020-06-03 17:34:15 +04:00
security.hpp Cleanup Security class 2013-05-19 23:19:48 +02:00
spellabsorption.cpp Address akortunov's concerns regarding spell refactoring 2020-04-27 12:05:17 +03:00
spellabsorption.hpp Address akortunov's concerns regarding spell refactoring 2020-04-27 12:05:17 +03:00
spellcasting.cpp Update spell effects during death animation (#5403) 2020-05-30 23:24:06 +03:00
spellcasting.hpp Clean up CastSpell 2020-04-26 22:17:38 +03:00
spellpriority.cpp Use AppliedOnce flag in more effect duration calculations (#5425) 2020-05-24 18:37:21 +03:00
spellpriority.hpp Include cleanup 2019-02-19 18:40:33 +03:00
spellresistance.cpp Store attributes and skills values as floats (bug #4021) 2020-06-03 17:34:15 +04:00
spellresistance.hpp Separate spell resistance 2020-04-26 21:13:59 +03:00
spells.cpp Implement vanilla-style corprus handling (bug #3714, bug #4623) 2020-06-03 12:58:17 +04:00
spells.hpp Implement vanilla-style corprus handling (bug #3714, bug #4623) 2020-06-03 12:58:17 +04:00
spellutil.cpp Store attributes and skills values as floats (bug #4021) 2020-06-03 17:34:15 +04:00
spellutil.hpp Separate functions that don't belong to CastSpell class 2020-04-26 22:17:38 +03:00
stat.cpp Store attributes and skills values as floats (bug #4021) 2020-06-03 17:34:15 +04:00
stat.hpp Store attributes and skills values as floats (bug #4021) 2020-06-03 17:34:15 +04:00
steering.cpp Make angular velocity depending on actor speed 2019-08-03 16:06:04 +02:00
steering.hpp Make angular velocity depending on actor speed 2019-08-03 16:06:04 +02:00
summoning.cpp Move isSummoningEffect to summoning 2020-04-26 21:13:59 +03:00
summoning.hpp Move isSummoningEffect to summoning 2020-04-26 21:13:59 +03:00
tickableeffects.cpp Address akortunov's concerns regarding spell refactoring 2020-04-27 12:05:17 +03:00
tickableeffects.hpp Separate functions that don't belong to CastSpell class 2020-04-26 22:17:38 +03:00
trading.cpp Remove deprecated GMST get* functions 2018-08-29 18:38:12 +03:00
trading.hpp Include cleanup 2019-02-19 18:40:33 +03:00
typedaipackage.hpp Replace AiPackage virtual methods by options 2020-06-06 12:00:17 +02:00
weaponpriority.cpp Separate functions that don't belong to CastSpell class 2020-04-26 22:17:38 +03:00
weaponpriority.hpp Refactor weapon types behaviour 2019-08-09 19:40:27 +04:00
weapontype.cpp Refactor weapon types behaviour 2019-08-09 19:40:27 +04:00
weapontype.hpp [Regression] restore ammo inventory sounds 2019-08-16 21:56:14 +04:00