local var_table = {}
local prev_simulation_time = 0
local function time_to_ticks(t)
return math.floor(0.5 + (t / globals.tickinterval()))
end
local diff_sim = 0
function var_table:sim_diff()
local current_simulation_time = time_to_ticks(entity.get_prop(entity.get_local_player(), "m_flSimulationTime"))
local diff = current_simulation_time - prev_simulation_time
prev_simulation_time = current_simulation_time
diff_sim = diff
return diff_sim
end
sim_time_dt = 0
to_draw = "no"
to_up = "no"
to_draw_ticks = 0
go_ = "no"
function defensive_indicator()
if not ui.get(gui.menu.defensive_dt_indicator) then
return
end
X, Y = client.screen_size()
local diff_mmeme = var_table.sim_diff()
if diff_mmeme <= -1 then
to_draw = "yes"
to_up = "yes"
go_ = "yes"
end
end
function defensive_indicator_paint()
if to_draw == "yes" and ui.get(menu_reference.dt[2]) then
draw_art = to_draw_ticks * 100 / 52
renderer.text(X / 2, Y / 2 - 40, 255, 255, 255, 255, "c", 0, "[defensive]")
renderer.rectangle(X / 2 - 27, Y / 2 - 31, 54, 4, 50, 50, 50, 255)
renderer.rectangle(X / 2 - 25, Y / 2 - 30, draw_art, 2, 255, 255, 255, 255)
to_draw_ticks = to_draw_ticks + 1
if to_draw_ticks == 27 then
to_draw_ticks = 0
to_draw = "no"
to_up = "no"
end
end
end
up_abuse = function()
if not ui.get(gui.menu.pitch_up_exploit) then
return
end
ui.set(menu_reference.pitch, "Default")
ui.set(menu_reference.yaw[1], "180")
if to_up == "yes" then
ui.set(menu_reference.pitch, "Up")
ui.set(menu_reference.yaw[1], "Spin")
if not ui.get(menu_reference.dt[1]) or not ui.get(menu_reference.dt[2]) then
to_up = "no"
end
end
end