-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVerusSimple.lua
More file actions
58 lines (56 loc) · 1.76 KB
/
Copy pathVerusSimple.lua
File metadata and controls
58 lines (56 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
local ticks = 0
local lticks = 0
local autism = false
local damaged = false
local function moving()
local input = player:get_input()
return not (input.x == 0 and input.y == 0)
end
local module = {
on_move = function(event)
if moving() and damaged and ticks <= 26 then
player:set_speed(event, modules:get_setting("VerusSimple", "Speed"))
end
if not damaged then
player:set_speed(event, 0)
end
if moving() and damaged and ticks >= 27 then
player:set_motion_y(0)
player:set_speed(event, player:get_base_move_speed() * 1.40042069)--four twenty 6ix 9ine
end
end,
on_tick = function()
if damaged then
ticks = ticks + 1
end
if damaged and ticks >= 1 and ticks <= 27 then
if ticks - lticks == 2 then
lticks = ticks
player:jump()
end
end
end,
on_packet_receive = function(event)
if event.packet_id == 0x12 then
if event.entity_id ~= player:get_id() then -- thank u oad
return
end
if damaged and player:is_on_ground() and ticks >= 2 then
modules:toggle("VerusSimple", false)
end
damaged = true
if damaged and not autism then --autism was for smth else ignore
player:jump()
player:set_motion_y(2)
end
end
end,
on_enable = function(ctx)
ticks = 0
damaged = false
lticks = 2
end
}
-- Register
modules:register("VerusSimple", "Verus Longjump", module)
modules:create_float_setting("VerusSimple", "Speed", "Boost Speed", 8, 0.4, 8, 0.1)