From 94eb0b19e6d8a9596d474b3fbfc55b9ac55a0705 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 21 Feb 2017 15:43:04 +0100 Subject: [PATCH] Only 30% sprint speed, no higher sprint jump --- mods/PLAYER/mcl_sprint/esprint.lua | 4 ++-- mods/PLAYER/mcl_sprint/init.lua | 5 +---- mods/PLAYER/mcl_sprint/wsprint.lua | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/mods/PLAYER/mcl_sprint/esprint.lua b/mods/PLAYER/mcl_sprint/esprint.lua index aada8d982..c7752d425 100644 --- a/mods/PLAYER/mcl_sprint/esprint.lua +++ b/mods/PLAYER/mcl_sprint/esprint.lua @@ -83,9 +83,9 @@ function setSprinting(playerName, sprinting) --Sets the state of a player (0=sto -- Don't overwrite physics when standing on soul sand if playerplus[playerName].nod_stand ~= "mcl_nether:soul_sand" then if sprinting == true then - player:set_physics_override({speed=SPRINT_SPEED,jump=SPRINT_JUMP}) + player:set_physics_override({speed=SPRINT_SPEED}) elseif sprinting == false then - player:set_physics_override({speed=1.0,jump=1.0}) + player:set_physics_override({speed=1.0}) end return true end diff --git a/mods/PLAYER/mcl_sprint/init.lua b/mods/PLAYER/mcl_sprint/init.lua index 891261a7f..c6f5d3485 100644 --- a/mods/PLAYER/mcl_sprint/init.lua +++ b/mods/PLAYER/mcl_sprint/init.lua @@ -9,11 +9,8 @@ distributed without any warranty. --Configuration variables, these are all explained in README.md SPRINT_METHOD = 1 -SPRINT_SPEED = 1.8 -SPRINT_JUMP = 1.1 -SPRINT_STAMINA = 20 +SPRINT_SPEED = 1.3 SPRINT_TIMEOUT = 0.5 --Only used if SPRINT_METHOD = 0 -SPRINT_HUDBARS_USED = false if SPRINT_METHOD == 0 then dofile(minetest.get_modpath("mcl_sprint") .. "/wsprint.lua") diff --git a/mods/PLAYER/mcl_sprint/wsprint.lua b/mods/PLAYER/mcl_sprint/wsprint.lua index c604f8e2b..3f958f28a 100644 --- a/mods/PLAYER/mcl_sprint/wsprint.lua +++ b/mods/PLAYER/mcl_sprint/wsprint.lua @@ -94,11 +94,11 @@ function setState(playerName, state) --Sets the state of a player (0=stopped, 1= -- Don't overwrite physics when standing on soul sand if playerplus[playerName].nod_stand ~= "mcl_nether:soul_sand" then if state == 0 then--Stopped - player:set_physics_override({speed=1.0,jump=1.0}) + player:set_physics_override({speed=1.0}) elseif state == 2 then --Primed players[playerName]["timeOut"] = gameTime elseif state == 3 then --Sprinting - player:set_physics_override({speed=SPRINT_SPEED,jump=SPRINT_JUMP}) + player:set_physics_override({speed=SPRINT_SPEED}) end return true end