aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_localplayer.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Restore pass-through of direction keys (#11924)sfan52022-01-091-6/+8
| | | This moves relevant code into the PlayerControl class and gets rid of separate keyPressed variable.
* Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)Wuzzy2021-10-011-3/+4
|
* Joystick sensitivity for player movement (#11262)NeroBurner2021-08-271-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit deprecates the forward, backward, left, and right binary inputs currently used for player movement in the PlayerControl struct. In their place, it adds the movement_speed and movement_direction values, which represents the player movement is a polar coordinate system. movement_speed is a scalar from 0.0 to 1.0. movement_direction is an angle from 0 to +-Pi: FWD 0 _ LFT / \ RGT -Pi/2 | | +Pi/2 \_/ +-Pi BCK Boolean movement bits will still be set for server telegrams and Lua script invocations to provide full backward compatibility. When generating these values from an analog input, a direction is considered active when it is 22.5 degrees away from either orthogonal axis. Co-authored-by: Markus Koch <markus@notsyncing.net> Co-authored-by: sfan5 <sfan5@live.de>
* HUD: Reject and warn on invalid stat types (#11548)SmallJoker2021-08-211-2/+3
| | | | This comes into play on older servers which do not know the "stat" type. Warnings are only logged once to avoid spam within globalstep callbacks
* script: Replace calls to depreated luaL_openlibsfan52021-05-301-1/+1
|
* Allow binding dig, place actions to keys; remove LMB/RMB hardcodingANAND2020-08-151-2/+2
| | | | Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
* Various features and fixessfan52020-04-111-11/+63
|
* Attachments: Fix interpolation from (0,0,0) after detachSmallJoker2019-12-071-2/+2
| | | | | | GenericCAO::getPosition() did not take the camera offset into account LocalPlayer attachment cleanup: Use sane getParent() function Make that getPosition() (GenericCAO and LocalPlayer) always return the absolute position
* Load CSM environment after the restrictions are knownSmallJoker2019-09-141-9/+13
| | | | | | | Safety-guards for CSM callbacks to abort on a bad implementation Only run callbacks when the mods are loaded (and with it: builtin) Duplication checks inside constructors
* Move client-specific files to 'src/client' (#7902)Quentin Bazin2018-11-281-1/+1
| | | | | Update Android.mk Remove 'src/client' from include_directories
* [CSM] Add basic HUD manipulation. (#6067)red-0012018-01-201-0/+73
| | | | | | * [CSM] Add basic HUD manipulation. Workaround for on_connect not working right now.
* Cleanup various headers to reduce compilation times (#6255)Loïc Blot2017-08-161-0/+1
| | | | * Cleanup various headers to reduce compilation times
* C++11 cleanup on constructors (#6000)Vincent Glize2017-06-191-2/+1
| | | | * C++11 cleanup on constructors dir script
* [CSM] Add camera API (#5609)bigfoot5472017-05-051-49/+0
| | | | | | | * [CSM] Add camera API roper rebase & squash * Address nerzhul's review
* Sneak: Improve and fix various thingsSmallJoker2017-05-031-9/+0
| | | | | | Remove useless `got_teleported`. Fix jitter when walking against the sneak limits. Fix damage evading on sneak ladders.
* Replace occurrence of luaL_reg in l_localplayer (#5566)t0ny22017-04-111-1/+1
| | | | Related to commit 41c5483. Replace a final occurrence of luaL_reg in src/script/lua_api/l_localplayer.cpp
* Clang-format styles fixes since previous commitLoïc Blot2017-04-101-5/+14
|
* Clang format: fix LINT on old PR which doesn't have LINT enabledLoic Blot2017-04-101-19/+10
|
* LocalPlayer api luaVincent Glize2017-04-081-0/+416