mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-10 19:55:05 +00:00
Use sneak speed when using bow
This commit is contained in:
parent
fc9b57950f
commit
254a12b8af
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue