neural cleanup

This commit is contained in:
kepler155c@gmail.com
2019-04-30 23:02:49 -04:00
parent 7549c4e620
commit 0ec0c63ba6
15 changed files with 82 additions and 144 deletions

View File

@@ -8,7 +8,7 @@ if device.neuralInterface and device.wireless_modem then
local pt = GPS.locate(2)
if pt then
return pcall(function()
if false and device.neuralInterface.walk then
if device.neuralInterface.walk then
local gpt = {
x = x - pt.x,
y = 0,
@@ -16,8 +16,8 @@ if device.neuralInterface and device.wireless_modem then
}
gpt.x = math.min(math.max(gpt.x, -15), 15)
gpt.z = math.min(math.max(gpt.z, -15), 15)
return device.neuralInterface.walk(gpt.x, gpt.y, gpt.z)
else
return device.neuralInterface.walk(gpt.x, gpt.y, gpt.z, 2)
elseif ni.launch then
local y, p = ni.yap(pt, { x = x, y = y + 3, z = z })
ni.look(y, 0)
return ni.launch(y, p, 1.5)