aboutsummaryrefslogtreecommitdiff
path: root/src/client/localplayer.cpp
AgeCommit message (Collapse)Author
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>
2020-09-09Darwin platform build fix (#10376)David CARLIER
the event header seemingly being generic with libevent thus renaming it. openal and opengl are deprecated on newer mac os releases thus suppressing the build warnings.
2020-06-07Reset touching_ground when in free_movesfan5
This corrects local player animation after enabling fly while standing on ground.
2020-05-29Add disable_jump check for the player's feetMoNTE48
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-14LocalPlayer: Fix code-styleANAND
2019-09-14Fix LocalPlayer::isDead always returning false if player is immortalANAND
2019-08-20Disable autoforward if player is deadANAND
2019-08-10Merge pull request #8776 from osjc/FixGetNodeJozef Behran
Finish getNode cleanup
2019-08-10Implement adding velocity to player from Luasfan5
The intended usecase is knockback, but there's potential for more.
2019-06-10Add disable_jump to liquids and ladders (#7688)SmallJoker
Remove second nodedef check by improving the colliding node detection Also remove the 2nd check in old_move, correct standing node a bit
2019-05-21Make autoforward simulate the 'up' key (#8249)DS
2019-02-10Slippery: Do not apply when swimming (#8198)SmallJoker
2019-02-09Autojump: Disable in fly mode, support continuous forward (#8200)SmallJoker
Correctly disable in fly mode (issue #8199) Also autojump in continuous forward mode (issue #8201)
2018-12-31Extend pitch fly mode to swimming (#7943)random-geek
2018-12-01Added pitch fly mode (#7817)Gaƫl C
In pitch fly mode, you fly to the exact direction you are pointing at, using the forward key. Other move directions are also pitched accordingly. It allows smoother and more complex movements. Can be enabled/disabled by L key by default (set keymap_pitchfly in minetest.conf)
2018-11-28Move client-specific files to 'src/client' (#7902)Quentin Bazin
Update Android.mk Remove 'src/client' from include_directories