aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_localplayer.cpp
AgeCommit message (Collapse)Author
2022-05-17Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-01-09Restore pass-through of direction keys (#11924)sfan5
This moves relevant code into the PlayerControl class and gets rid of separate keyPressed variable.
2021-10-01Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)Wuzzy
2021-09-19Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-08-27Joystick sensitivity for player movement (#11262)NeroBurner
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>
2021-08-21HUD: Reject and warn on invalid stat types (#11548)SmallJoker
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
2021-05-30script: Replace calls to depreated luaL_openlibsfan5
2021-05-13Make set_pitch and set_yaw more accurate by not rounding it to integersElias Fleckenstein
2021-05-11Include tile definitions in get_node_def; Client-side minetest.object_refs tableElias Fleckenstein
2021-03-10Update .wielded command to output the entire itemstring; add ↵Elias Fleckenstein
LocalPlayer:get_hotbar_size
2020-11-28Merged MinetestElias Fleckenstein
2020-11-23LocalPlayer:set_physics_override; minetest.register_on_recieve_physics_overrideElias Fleckenstein
2020-11-15lua-api: fix get/set_pitchcorarona
2020-11-04Merge branch 'master' into masterElias Fleckenstein
2020-11-04Revert "Make Lint Happy"Elias Fleckenstein
This reverts commit ad148587dcf5244c2d2011dba339786c765c54c4.
2020-11-04Merge branch 'master' into masterElias Fleckenstein
2020-11-04Make Lint HappyElias Fleckenstein
2020-10-27lua api: add set/get_pitchcorarona
2020-10-21Added Strip, AutoRefill, indexing for InventoryActions and Wield Index ↵Elias Fleckenstein
starts at 1 now
2020-10-18Added the API additions from waspsalivaElias Fleckenstein
2020-10-04The Robot UpdateElias Fleckenstein
2020-08-15Imporoved set_wield_index() to include camera updateElias Fleckenstein
2020-08-15UI Update; Added AutoToolElias Fleckenstein
2020-08-15Allow binding dig, place actions to keys; remove LMB/RMB hardcodingANAND
Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
2020-07-18Update to minetest 5.4.0-devElias Fleckenstein
2020-07-06Initial CommitElias Fleckenstein
2020-06-23testElias Fleckenstein
2020-04-11Various features and fixessfan5
2019-12-07Attachments: Fix interpolation from (0,0,0) after detachSmallJoker
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
2019-09-14Load CSM environment after the restrictions are knownSmallJoker
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
2018-11-28Move client-specific files to 'src/client' (#7902)Quentin Bazin
Update Android.mk Remove 'src/client' from include_directories
2018-01-20[CSM] Add basic HUD manipulation. (#6067)red-001
* [CSM] Add basic HUD manipulation. Workaround for on_connect not working right now.
2017-08-16Cleanup various headers to reduce compilation times (#6255)Loïc Blot
* Cleanup various headers to reduce compilation times
2017-06-19C++11 cleanup on constructors (#6000)Vincent Glize
* C++11 cleanup on constructors dir script
2017-05-05[CSM] Add camera API (#5609)bigfoot547
* [CSM] Add camera API roper rebase & squash * Address nerzhul's review
2017-05-03Sneak: Improve and fix various thingsSmallJoker
Remove useless `got_teleported`. Fix jitter when walking against the sneak limits. Fix damage evading on sneak ladders.
2017-04-11Replace occurrence of luaL_reg in l_localplayer (#5566)t0ny2
Related to commit 41c5483. Replace a final occurrence of luaL_reg in src/script/lua_api/l_localplayer.cpp
2017-04-10Clang-format styles fixes since previous commitLoïc Blot
2017-04-10Clang format: fix LINT on old PR which doesn't have LINT enabledLoic Blot
2017-04-08LocalPlayer api luaVincent Glize