Autojump As A Setting

User avatar
TheReaperKing
Member
 
Posts: 531
Joined: Sun Nov 22, 2015 21:36

Autojump As A Setting

by TheReaperKing » Tue Feb 27, 2018 00:52

In another post I saw how to add code to make it so that autojump can work in the PC version just like the Android version. I was wondering if it isn't too hard to do, would it be possible to add it as a setting in Minetest?

By autojump I'm referring to if land is only one block high in front of you, instead of having to jump, your character automatically and smoothly moves up it.

Thanks for all of your great work!
-Mike
Resources on happiness and life management - http://MikesHappyPlace.com
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com
Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com
Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids
 

User avatar
Mr. Xenon
Member
 
Posts: 38
Joined: Thu Feb 08, 2018 16:37

Re: Autojump As A Setting

by Mr. Xenon » Tue Feb 27, 2018 01:13

The autojump I think will be present in 0.5.0 because they want it in many. A simple but extremely useful and functional feature for both PC and Android. I hope it is present in the next release because press space bar I find it a useless and inconvenient thing to jump a block.

viewtopic.php?t=10404&p=159486 I found this old post where this features was proposed. I await the developers' response to confirm.
 

User avatar
paramat
Developer
 
Posts: 3443
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: Autojump As A Setting

by paramat » Thu Mar 01, 2018 07:59

We're tackling this issue right now in the engine. Android autojump is essentially just a custom 'stepheight' for the player, and is hardcoded for Android only, which is bad and will be changed. We could make it a server setting for all players, but autojump is a strong personal preference, so it's best server-controlled but the server (if it wishes) can give players the abiity to choose. A higher stepheight gives players slight and unexpected movement advantages, so some servers may need to restrict it or disallow it, or apply it to all playes equally.

It is already possible in 0.4.16 stable to alter 'stepheight' per-player using player object properties, so you can write a mod to do this.
 

User avatar
TheReaperKing
Member
 
Posts: 531
Joined: Sun Nov 22, 2015 21:36

Re: Autojump As A Setting

by TheReaperKing » Thu Mar 01, 2018 14:14

Awesome, thank you so much for the info! You rock!
Resources on happiness and life management - http://MikesHappyPlace.com
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com
Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com
Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids
 

User avatar
ANAND
Member
 
Posts: 326
Joined: Sun Jan 28, 2018 12:54
Location: India
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD [A-Za-z0-9-_]Tomato

Re: Autojump As A Setting

by ANAND » Fri Mar 02, 2018 10:00

Just a FYI: I was on Android one fine day, and observed that the auto-jump, and the 'jump' button together makes the player jump 2 blocks high.

When you manually jump (1-block high only) in front of a 2-block high obstacle, auto-jump recognizes a one-block high obstacle and kicks in, taking you to the top of a 2-block high obstacle, just like the infamous sneak-jump.
Last edited by ANAND on Sun Mar 11, 2018 01:42, edited 1 time in total.
 

User avatar
texmex
Member
 
Posts: 1588
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: Autojump As A Setting

by texmex » Sat Mar 10, 2018 22:37

I can’t find any documentation on stepheight, paramat. Alter it how?

Edit: Found out:

Code: Select all
player:set_properties({stepheight = 1.05})
 

User avatar
runs
Member
 
Posts: 885
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy
 

User avatar
texmex
Member
 
Posts: 1588
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: Autojump As A Setting

by texmex » Sat Nov 17, 2018 20:18

Try this small mod. It may only work in 5.0.0-dev, but I haven't checked.
Attachments
player_stepheight.zip
(1.2 KiB) Downloaded 17 times
 

User avatar
TumeniNodes
Member
 
Posts: 2827
Joined: Fri Feb 26, 2016 19:49
Location: in the dark recesses of the mind
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes

Re: Autojump As A Setting

by TumeniNodes » Sat Nov 17, 2018 22:05

It should be a toggled/keyed feature the same as H, J, and K
Having it set full time would be annoying, and having to go into settings to turn it on/off would be equally annoying.
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am
 

User avatar
runs
Member
 
Posts: 885
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Autojump As A Setting

by runs » Sun Nov 18, 2018 01:11

This is for 5 version. But I'm going to save it for when releasing.
 

User avatar
texmex
Member
 
Posts: 1588
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex
 

User avatar
paramat
Developer
 
Posts: 3443
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: Autojump As A Setting

by paramat » Thu Nov 22, 2018 03:14

The PR for this is about to be merged.
 

User avatar
runs
Member
 
Posts: 885
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Autojump As A Setting

by runs » Thu Nov 22, 2018 22:48

paramat wrote:The PR for this is about to be merged.


Cool, it is one of those silly features but that it makes the trick.
 

User avatar
paramat
Developer
 
Posts: 3443
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: Autojump As A Setting

by paramat » Fri Nov 23, 2018 01:41

Merged. it's available as a client setting for PC and Android users. Default is on for Android, off for PC. Switchable in-game in key change menu.
 

User avatar
TumeniNodes
Member
 
Posts: 2827
Joined: Fri Feb 26, 2016 19:49
Location: in the dark recesses of the mind
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes

Re: Autojump As A Setting

by TumeniNodes » Fri Nov 23, 2018 02:24

so glad that it can be keyed.
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am
 


Return to Feature Discussion



Who is online

Users browsing this forum: No registered users and 2 guests