summaryrefslogtreecommitdiff
path: root/src/client/localplayer.cpp
Commit message (Collapse)AuthorAge
* Fix footsteps for players whose collision box min y != 0 (#12110)Gregor Parzefall2022-03-14
|
* Restore pass-through of direction keys (#11924)sfan52022-01-09
| | | 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-01
|
* Joystick sensitivity for player movement (#11262)NeroBurner2021-08-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Darwin platform build fix (#10376)David CARLIER2020-09-09
| | | | 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.
* Reset touching_ground when in free_movesfan52020-06-07
| | | | This corrects local player animation after enabling fly while standing on ground.
* Add disable_jump check for the player's feetMoNTE482020-05-29
|
* Attachments: Fix interpolation from (0,0,0) after detachSmallJoker2019-12-07
| | | | | | 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
* LocalPlayer: Fix code-styleANAND2019-09-14
|
* Fix LocalPlayer::isDead always returning false if player is immortalANAND2019-09-14
|
* Disable autoforward if player is deadANAND2019-08-20
|
* Merge pull request #8776 from osjc/FixGetNodeJozef Behran2019-08-10
| | | Finish getNode cleanup
* Implement adding velocity to player from Luasfan52019-08-10
| | | | The intended usecase is knockback, but there's potential for more.
* Add disable_jump to liquids and ladders (#7688)SmallJoker2019-06-10
| | | | | Remove second nodedef check by improving the colliding node detection Also remove the 2nd check in old_move, correct standing node a bit
* Make autoforward simulate the 'up' key (#8249)DS2019-05-21
|
* Slippery: Do not apply when swimming (#8198)SmallJoker2019-02-10
|
* Autojump: Disable in fly mode, support continuous forward (#8200)SmallJoker2019-02-09
| | | | | Correctly disable in fly mode (issue #8199) Also autojump in continuous forward mode (issue #8201)
* Extend pitch fly mode to swimming (#7943)random-geek2018-12-31
|
* Added pitch fly mode (#7817)Gaƫl C2018-12-01
| | | | | 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)
* Move client-specific files to 'src/client' (#7902)Quentin Bazin2018-11-28
Update Android.mk Remove 'src/client' from include_directories