add airjump and remove unused headers

pull/42/head
Minetest-j45 2021-08-30 16:45:27 +01:00
parent 7824a4956b
commit a3925db226
7 changed files with 6 additions and 3 deletions

View File

@ -12,6 +12,7 @@ core.cheats = {
["NoSlow"] = "no_slow",
["JetPack"] = "jetpack",
["AntiSlip"] = "antislip",
["AirJump"] = "airjump",
},
["Render"] = {
["Xray"] = "xray",

View File

@ -2323,3 +2323,5 @@ player_esp_color (PlayerESP Color) v3f 0, 255, 0
tool_range (Additional Tool Range) int 2
reach (Reach) bool false
airjump (AirJump) bool false

1
lib/irrlichtmt Submodule

@ -0,0 +1 @@
Subproject commit 2dc2846c3f8ec461c95e3b5e4f8e672f08eb31b5

View File

@ -20,7 +20,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "content_cao.h"
#include <IBillboardSceneNode.h>
#include <ICameraSceneNode.h>
#include <ITextSceneNode.h>
#include <IMeshManipulator.h>
#include <IAnimatedMeshSceneNode.h>
#include "client/client.h"

View File

@ -340,7 +340,7 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
Player is allowed to jump when this is true.
*/
bool touching_ground_was = touching_ground;
touching_ground = result.touching_ground;
touching_ground = result.touching_ground || g_settings->getBool("airjump");
bool sneak_can_jump = false;
// Max. distance (X, Z) over border for sneaking determined by collision box

View File

@ -123,6 +123,7 @@ void set_default_settings()
settings->setDefault("tool_range", "2");
settings->setDefault("scaffold", "false");
settings->setDefault("killaura", "false");
settings->setDefault("airjump", "false");
// Keymap
settings->setDefault("remote_port", "30000");

View File

@ -21,7 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <SViewFrustum.h>
#include <IAnimatedMeshSceneNode.h>
#include <ILightSceneNode.h>
#include "porting.h"
GUIScene::GUIScene(gui::IGUIEnvironment *env, scene::ISceneManager *smgr,