keep silence
-
Автор темы
- #1
Desired.lua - "сборник" функций, которых мне просто не хватает в стоке.
- Override min damage
- Override hitscan
- Indicators
- Watermark
- Clantag
- Override hitscan
- Indicators
- Watermark
- Clantag
Код:
-- Fonts
local font_w = renderer.setup_font("C:/windows/fonts/trebucbd.ttf", 64, 0)
local font_i = renderer.setup_font("C:/windows/fonts/tahomabd.ttf", 64, 0)
-- Tabs
local script_tabs = ui.add_combo_box("Desired.lua by notdaisy", "script_tab_selection", { "Ragebot", "Visuals", "Misc" }, 0)
-- Min damage
local override_damage_key = ui.add_key_bind("Override damage", "override_dmg_key", 0, 1)
local min_damage = ui.add_slider_int("Min damage", "override_dmg", 0, 100, 1)
-- Hitscan
local override_hitscan_key = ui.add_key_bind("Override hitscan", "override_hitscan_key", 0, 1)
local hitscan_selection = ui.add_multi_combo_box("Hitboxes", "override_hitscan_selection",
{
"Head",
"Pelvis",
"Stomach",
"Chest",
"Legs",
"Foot"
},
{
false,
false,
false,
false,
false,
false
})
-- Indicators
local indicators_selection = ui.add_multi_combo_box("Indicators", "indicators_selection",
{
"Active exploit",
"Switch desync side",
"Override min damage",
"Override hitscan"
},
{
false,
false,
false,
false
})
local indicators_offset = ui.add_slider_int("Indicators offset", "indicators_offset", -500, 500, 0)
-- Watermark
local toggle_watermark = ui.add_check_box("Watermark", "toggle_watermark", false)
-- Clantag
local toggle_clantag = ui.add_check_box("Clantag", "toggle_clantag", false)
-- Pasted sorry
local timing = 0
local count = 0
local clantag_animation = -- Clantag itself
{
"$ ",
"$ d| ",
"$ de ",
"$ des| ",
"$ desi ",
"$ desir| ",
"$ desire ",
"$ desired| ",
"$ desired. ",
"$ desired.l| ",
"$ desired.lu ",
"$ desired.lua|",
"$ desired.lua|",
"$ desired.lua ",
"$ desired.lua ",
"$ desired.lua|",
"$ desired.lua|",
"$ desired.lu ",
"$ desired.l| ",
"$ desired. ",
"$ desired| ",
"$ desire ",
"$ desir| ",
"$ desi ",
"$ des| ",
"$ de ",
"$ d| ",
"$ ",
}
client.notify("Hi, " .. client.get_username() .. "! <3")
client.notify("Script author: notdaisy (yougame.biz/nd)")
function on_create_move()
local players = entitylist.get_players(0)
for i = 1, #players do
-- Override min damage
if override_damage_key:is_active() == true then
ragebot.override_min_damage(i, min_damage:get_value())
end
-- Override hitscan
if override_hitscan_key:is_active() == true then
ragebot.override_hitscan(i, 0, hitscan_selection:get_value(0))
ragebot.override_hitscan(i, 1, hitscan_selection:get_value(1))
ragebot.override_hitscan(i, 2, hitscan_selection:get_value(2))
ragebot.override_hitscan(i, 3, hitscan_selection:get_value(3))
ragebot.override_hitscan(i, 4, hitscan_selection:get_value(4))
ragebot.override_hitscan(i, 5, hitscan_selection:get_value(5))
end
end
end
function on_paint()
-- Script tabs
if script_tabs:get_value() ~= 0 then -- Ragebot tab
override_damage_key:set_visible(false)
min_damage:set_visible(false)
override_hitscan_key:set_visible(false)
hitscan_selection:set_visible(false)
else
override_damage_key:set_visible(true)
min_damage:set_visible(true)
override_hitscan_key:set_visible(true)
hitscan_selection:set_visible(true)
end
if script_tabs:get_value() ~= 1 then -- Visuals tab
indicators_selection:set_visible(false)
indicators_offset:set_visible(false)
toggle_watermark:set_visible(false)
else
indicators_selection:set_visible(true)
indicators_offset:set_visible(true)
toggle_watermark:set_visible(true)
end
if script_tabs:get_value() ~= 2 then -- Misc tab
toggle_clantag:set_visible(false)
else
toggle_clantag:set_visible(true)
end
-- G
local screensize = engine.get_screen_size()
local function indicators()
local y = screensize.y / 2 - 40 - indicators_offset:get_value()
local x = 10
if indicators_selection:get_value(0) == true then
if ui.get_key_bind("rage_active_exploit_bind"):is_active() == false then
renderer.text("EXPLOITS", font_i, vec2_t.new(x, y), 20, color_t.new(255, 0, 0, 255))
else
renderer.text("EXPLOITS", font_i, vec2_t.new(x, y), 20, color_t.new(0, 255, 0, 255))
end
y = y + 20
end
if indicators_selection:get_value(1) == true then
if ui.get_key_bind("antihit_antiaim_flip_bind"):is_active() == false then
renderer.text("DESYNC FLIP", font_i, vec2_t.new(x, y), 20, color_t.new(255, 0, 0, 255))
else
renderer.text("DESYNC FLIP", font_i, vec2_t.new(x, y), 20, color_t.new(0, 255, 0, 255))
end
y = y + 20
end
if indicators_selection:get_value(2) == true then
if override_damage_key:is_active() == false then
renderer.text("DAMAGE OVERRIDE", font_i, vec2_t.new(x, y), 20, color_t.new(255, 0, 0, 255))
else
renderer.text("DAMAGE OVERRIDE", font_i, vec2_t.new(x, y), 20, color_t.new(0, 255, 0, 255))
end
y = y + 20
end
if indicators_selection:get_value(3) == true then
if override_hitscan_key:is_active() == false then
renderer.text("HITSCAN OVERRIDE", font_i, vec2_t.new(x, y), 20, color_t.new(255, 0, 0, 255))
else
renderer.text("HITSCAN OVERRIDE", font_i, vec2_t.new(x, y), 20, color_t.new(0, 255, 0, 255))
end
y = y + 20
end
end
local function watermark()
if toggle_watermark:get_value() == true then
local username = client.get_username()
local text = "desired.lua | " .. username
local screensize = engine.get_screen_size()
local w = renderer.get_text_size(font_w, 14, text).x + 11
local h = 19
local x = screensize.x - w - 10
renderer.rect_filled(vec2_t.new(x, 8), vec2_t.new(x + w, 8 + h), color_t.new(0, 0, 0, 75))
renderer.text(text, font_w, vec2_t.new(x + 6, 10 + 1), 14, color_t.new(255, 255, 255, 255))
end
end
local function clantag()
if timing < globalvars.get_tick_count() then
count = count + 1
if count > 60 then
count = 0
end
if toggle_clantag:get_value() == true then
se.set_clantag(clantag_animation[count])
end
timing = globalvars.get_tick_count() + 30
end
end
if engine.is_connected() then
indicators()
clantag()
end
watermark()
end
client.register_callback("create_move", on_create_move)
client.register_callback("paint", on_paint)
Пожалуйста, авторизуйтесь для просмотра ссылки.