Fix bow having weird hand placements while hitting and loading

This commit is contained in:
epCode 2021-02-16 20:13:12 +00:00
parent 98b00898a5
commit 24c14e7f15

View File

@ -29,7 +29,7 @@ minetest.register_globalstep(function(dtime)
local node_in_feet = minetest.registered_nodes[mcl_playerinfo[name].node_feet]
-- controls right and left arms pitch when shooting a bow or punching
if string.find(player:get_wielded_item():get_name(), "mcl_bows:bow") and controls.RMB and not controls.up and not controls.down and not controls.left and not controls.right then
if string.find(player:get_wielded_item():get_name(), "mcl_bows:bow") and controls.RMB and not controls.LMB and not controls.up and not controls.down and not controls.left and not controls.right then
player:set_bone_position("Arm_Right_Pitch_Control", vector.new(-3,5.785,0), vector.new(pitch+90,-30,pitch * -1 * .35))
player:set_bone_position("Arm_Left_Pitch_Control", vector.new(3.5,5.785,0), vector.new(pitch+90,43,pitch * .35))
elseif controls.LMB then