Increase initial raycast offset

This commit is contained in:
stujones11 2019-04-04 18:14:48 +01:00
parent 48cfe6b6ca
commit 8c85ca00c5

View file

@ -376,7 +376,7 @@ local function fire_weapon(player, itemstack, spec, extended)
return
end
pos.y = pos.y + player:get_properties().eye_height
spec.origin = v3d.add(pos, dir)
spec.origin = v3d.add(pos, v3d.multiply(dir, 1.5))
local interval = spec.tool_caps.full_punch_interval
shots[spec.user] = minetest.get_us_time() / 1000000 + interval
local sound = spec.sounds.shot or "shooter_pistol"