From 92f5583a2d007fce0d66a9d4f4a913f7cbf8533b Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 13 May 2015 11:16:02 -0700 Subject: [PATCH] gotta go fast --- Lua/cheat menu.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Lua/cheat menu.lua b/Lua/cheat menu.lua index 1726ba3..defc9cc 100755 --- a/Lua/cheat menu.lua +++ b/Lua/cheat menu.lua @@ -26,6 +26,18 @@ function levitate:hold() addrs.link_actor.y_vel(10) end +local supersonic = Passive() +function supersonic:tick() + if self.state then + if bit.band(addrs.buttons(), 0x8000) > 0 then + self:hold() + end + end +end +function supersonic:hold() + addrs.link_actor.lin_vel(20) +end + local everything = Callbacks() function everything:on() dofile("oneshot.lua") @@ -40,6 +52,7 @@ local main_menu = Menu{ Screen{ Text("hey"), Toggle("L to Levitate", levitate), + Toggle("A to Run Fast", supersonic), Hold("Levitate", levitate), Oneshot("100%", everything), Back(),