From 2411a9d43320bb7a85310c7248cc680733965ac1 Mon Sep 17 00:00:00 2001 From: Andrea Plati Date: Tue, 13 Oct 2015 22:04:14 +0200 Subject: [PATCH] alpha2 --- functions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.lua b/functions.lua index 44fb103..c134b23 100644 --- a/functions.lua +++ b/functions.lua @@ -3,9 +3,9 @@ function spears_shot (itemstack, player) local playerpos = player:getpos() local obj = minetest.add_entity({x=playerpos.x,y=playerpos.y+1.5,z=playerpos.z}, spear) local dir = player:get_look_dir() - local sp = .14 - local dr = 0-- .2 - local gravity = 0--9.8 + local sp = 14 + local dr = .3 + local gravity = 9.8 obj:setvelocity({x=dir.x*sp, y=dir.y*sp, z=dir.z*sp}) obj:setacceleration({x=-dir.x*dr, y=-gravity, z=-dir.z*dr}) obj:setyaw(player:get_look_yaw()+math.pi)