From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Thu, 9 Apr 2020 20:09:25 +0000 (-0400) Subject: Adjust timer for bunnyhopping to avoid overlap X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=aff4e768cdd99fd11ca154ca1522cdcd5a4b134a;hp=238a27b59f8ff1a4ecca01646b5ddcc33899d5c9;p=crafter_client.git Adjust timer for bunnyhopping to avoid overlap --- diff --git a/init.lua b/init.lua index c1a4c55..2c07ade 100644 --- a/init.lua +++ b/init.lua @@ -80,18 +80,18 @@ minetest.register_globalstep(function(dtime) sneak = true end + --count down bunny hop state if bunny_hop_timer > 0 then bunny_hop_timer = bunny_hop_timer - dtime if bunny_hop_timer <= 0 then bunny_hop_timer = 0 end - print(bunny_hop_timer) end --check if need to tell server to bunnyhop if running == true and vel > 0 and bunny_hop_timer == 0 then send_server_movement_state("2") - bunny_hop_timer = 0.6 + bunny_hop_timer = 0.3 elseif bunny_hop_timer == 0 then bunny_hopping = false if running == true then