1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00
OpenMW/apps/openmw/mwscript
fredzio 68f4c336ce Rework again SetPos command to make more mods work.
Previous version skipped collision the frame immediately after a call to SetPos. It worked for one-off calls (teleports for instance) and continuous call along a pre-defined path (scenic travel). However, in the case of mod which uses SetPos to simulate a player-controlled movement, it is equivalent to using tcl.
Solution:
1/ skip update of mPosition and  mPreviousPosition to avoid janky interpolation
2/ use back plain moveObject() instead of moveObjectBy() since we don't want physics simulation
3/ rework a little bit waterwalking influence on coordinate because of 1/
2021-10-29 23:20:17 +02:00
..
docs Console command "reload lua" 2021-07-09 20:24:56 +02:00
aiextensions.cpp Make GetCurrentAIPackage return -1 for non-actors and dead actors 2021-09-26 22:15:43 +02:00
aiextensions.hpp
animationextensions.cpp
animationextensions.hpp
cellextensions.cpp
cellextensions.hpp
compilercontext.cpp Remove dead code 2021-10-28 22:16:43 +02:00
compilercontext.hpp Remove dead code 2021-10-28 22:16:43 +02:00
consoleextensions.cpp
consoleextensions.hpp
containerextensions.cpp improves MWClass mapping (#3166) 2021-10-11 13:46:21 +02:00
containerextensions.hpp
controlextensions.cpp
controlextensions.hpp
dialogueextensions.cpp
dialogueextensions.hpp
extensions.cpp
extensions.hpp
globalscripts.cpp
globalscripts.hpp
guiextensions.cpp
guiextensions.hpp
interpretercontext.cpp
interpretercontext.hpp
locals.cpp
locals.hpp
miscextensions.cpp improves MWClass mapping (#3166) 2021-10-11 13:46:21 +02:00
miscextensions.hpp
ref.cpp
ref.hpp
scriptmanagerimp.cpp Merge branch 'local_crache' into 'master' 2021-07-08 22:16:15 +00:00
scriptmanagerimp.hpp
skyextensions.cpp
skyextensions.hpp
soundextensions.cpp
soundextensions.hpp
statsextensions.cpp Overhaul magic effects to work with onApply and onEnd events 2021-09-29 19:25:10 +02:00
statsextensions.hpp
transformationextensions.cpp Rework again SetPos command to make more mods work. 2021-10-29 23:20:17 +02:00
transformationextensions.hpp
userextensions.cpp
userextensions.hpp