From 254a12b8afa165db5b84fda68a1f293da3df8a7d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 7 May 2018 20:37:45 +0200 Subject: [PATCH] Use sneak speed when using bow --- mods/ITEMS/mcl_throwing/bow.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_throwing/bow.lua b/mods/ITEMS/mcl_throwing/bow.lua index fe63c62c..6c503b0a 100644 --- a/mods/ITEMS/mcl_throwing/bow.lua +++ b/mods/ITEMS/mcl_throwing/bow.lua @@ -12,7 +12,8 @@ local BOW_CHARGE_TIME_HALF = 500000 -- bow level 1 local BOW_CHARGE_TIME_FULL = 1000000 -- bow level 2 (full charge) -- Factor to multiply with player speed while player uses bow -local PLAYER_USE_BOW_SPEED = 0.30232558 -- = sneak speed / walking speed from Minecraft Wiki +-- This emulates the sneak speed. +local PLAYER_USE_BOW_SPEED = tonumber(minetest.settings:get("movement_speed_crouch")) / tonumber(minetest.settings:get("movement_speed_walk")) -- TODO: Use Minecraft speed (ca. 53 m/s) -- Currently nerfed because at full speed the arrow would easily get out of the range of the loaded map. -- 2.11.4.GIT