neural cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user