aboutsummaryrefslogtreecommitdiff
path: root/assets/wagong_fancy.blend
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-10-10 23:31:12 +0200
committerorwell96 <orwell@bleipb.de>2018-10-10 23:31:12 +0200
commit11fe530e18248b14c40edb6b56e9e3f47af3461c (patch)
treec403c8c9f2a87d7bde055da9804f2341c777b5f6 /assets/wagong_fancy.blend
parent9db52bcd32b49d6b98644dcb7edcf14987850fa5 (diff)
downloadadvtrains-11fe530e18248b14c40edb6b56e9e3f47af3461c.tar.gz
advtrains-11fe530e18248b14c40edb6b56e9e3f47af3461c.tar.bz2
advtrains-11fe530e18248b14c40edb6b56e9e3f47af3461c.zip
Properly handle speed restrictions
Diffstat (limited to 'assets/wagong_fancy.blend')
0 files changed, 0 insertions, 0 deletions
a">for y=-1,1 do for z=-1,1 do minetest.remove_node(vector.add(pointed_thing.under, {x=x, y=y, z=z})) end end end end end, } ) minetest.register_chatcommand("atyaw", { params = "angledeg conn1 conn2", description = "", func = function(name, param) local angledegs, conn1s, conn2s = string.match(param, "^(%S+)%s(%S+)%s(%S+)$") if angledegs and conn1s and conn2s then local angledeg, conn1, conn2 = angledegs+0,conn1s+0,conn2s+0 local yaw = angledeg*math.pi/180 local yaw1 = advtrains.dir_to_angle(conn1) local yaw2 = advtrains.dir_to_angle(conn2) local adiff1 = advtrains.minAngleDiffRad(yaw, yaw1) local adiff2 = advtrains.minAngleDiffRad(yaw, yaw2) atdebug("yaw1",atfloor(yaw1*180/math.pi)) atdebug("yaw2",atfloor(yaw2*180/math.pi)) atdebug("dif1",atfloor(adiff1*180/math.pi)) atdebug("dif2",atfloor(adiff2*180/math.pi)) minetest.chat_send_all(advtrains.yawToAnyDir(yaw)) return true, advtrains.yawToDirection(yaw, conn1, conn2) end end, })