Autojump As A Setting

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

Autojump As A Setting

by TheReaperKing » Post

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
Become A Real Life Superhero - http://SuperheroHill.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

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

Re: Autojump As A Setting

by Mr. Xenon » Post

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: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: Autojump As A Setting

by paramat » Post

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
Contact:

Re: Autojump As A Setting

by TheReaperKing » Post

Awesome, thank you so much for the info! You rock!
Become A Real Life Superhero - http://SuperheroHill.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: 335
Joined: Sun Jan 28, 2018 12:54
GitHub: magnetar47
IRC: MAGNETAR ANAND
In-game: ANAND and all names with Tomato
Location: India
Contact:

Re: Autojump As A Setting

by ANAND » Post

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.
My Mods

cdb_NXKPOcRlgUGdMyf8uLoUQvnMGIfuaHmp

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

Re: Autojump As A Setting

by texmex » Post

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: 3225
Joined: Sat Oct 27, 2018 08:32

Re: Autojump As A Setting

by runs » Post

I would love this feature being ready.

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

Re: Autojump As A Setting

by texmex » Post

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 61 times

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

Re: Autojump As A Setting

by TumeniNodes » Post

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.
A Wonderful World

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: Autojump As A Setting

by runs » Post

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

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

Re: Autojump As A Setting

by texmex » Post

Yes, I can't make it work in 0.4.17.1, sorry!

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

Re: Autojump As A Setting

by paramat » Post

The PR for this is about to be merged.

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: Autojump As A Setting

by runs » Post

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: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: Autojump As A Setting

by paramat » Post

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: 2941
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: Autojump As A Setting

by TumeniNodes » Post

so glad that it can be keyed.
A Wonderful World

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests