-
Автор темы
- #1
C++:
--by lozzya1337
local render = fatality.render
local config = fatality.config
local menu = fatality.menu
local input = fatality.input
local callbacks = fatality.callbacks
local global_vars = csgo.interface_handler:get_global_vars()
local cvar = csgo.interface_handler:get_cvar()
local engine = csgo.interface_handler:get_engine_client()
local screen_size = render:screen_size()
--menu add
local metamodbutton = menu:add_button("metamod keybinds", "VISUALS", "MISC", "Various")
local keybinds_item = config:add_item("keybinds_item", 0)
local keybinds_checkbox = menu:add_checkbox("keybinds", "VISUALS", "MISC", "Various", keybinds_item)
local binds_x = config:add_item("binds_x", 0)
local binds_y = config:add_item("binds_y", 0)
local posx = menu:add_slider("Pos X", "VISUALS", "MISC", "Various", binds_x, 0, screen_size.x, 1)
local posy = menu:add_slider("Pos Y", "VISUALS", "MISC", "Various", binds_y, 0, screen_size.y, 1)
local kci1 = config:add_item("keybindswatermark_slider_1", 0)
local kci2 = config:add_item("keybindswatermark_slider_2", 0)
local kci3 = config:add_item("keybindswatermark_slider_3", 0)
local kci4 = config:add_item("keybindswatermark_slider_4", 0)
local kc1 = menu:add_slider("Color R", "VISUALS", "MISC", "Various", kci1, 0, 255, 1)
local kc2 = menu:add_slider("Color G", "VISUALS", "MISC", "Various", kci2, 0, 255, 1)
local kc3 = menu:add_slider("Color B", "VISUALS", "MISC", "Various", kci3, 0, 255, 1)
local kc4 = menu:add_slider("Color A", "VISUALS", "MISC", "Various", kci4, 0, 255, 1)
--font
local font_mode_item = config:add_item("font_mode", 0)
local font_mode = menu:add_combo("font mode", "VISUALS", "MISC", "Various", font_mode_item)
font_mode:add_item("verdana", font_mode_item)
font_mode:add_item("corbel", font_mode_item)
--fonts
local corbelfont = render:create_font("Corbel", 15, 100, true)
local verdanafont = render:create_font("Verdana", 12, 100, true)
local references =
{
slowwalk = menu:get_reference("MISC", "MISC", "Movement", "Slide");
fakeduck = menu:get_reference("MISC", "MISC", "Movement", "Fake duck");
autopeek = menu:get_reference("MISC", "MISC", "Movement", "Peek Assist");
hideshot = menu:get_reference("RAGE", "AIMBOT", "Aimbot", "Hide shot");
doubletap = menu:get_reference("RAGE", "AIMBOT", "Aimbot", "Double tap");
forcesafepoint = menu:get_reference("RAGE", "AIMBOT", "Aimbot", "Force safepoint");
onlyhs = menu:get_reference("RAGE", "AIMBOT", "Aimbot", "Headshot only");
freestand = menu:get_reference("RAGE", "ANTI-AIM", "General", "Freestand");
left = menu:get_reference("RAGE", "ANTI-AIM", "General", "Left");
right = menu:get_reference("RAGE", "ANTI-AIM", "General", "Right");
back = menu:get_reference("RAGE", "ANTI-AIM", "General", "Back");
}
local alphamain1 = 0
local alphamain2 = 0
local swalpha = 0
local swon = false
local fdalpha = 0
local fdon = false
local apalpha = 0
local apon = false
local hsalpha = 0
local hson = false
local dtalpha = 0
local dton = false
local fsalpha = 0
local fson = false
local hoalpha = 0
local hoon = false
local fralpha = 0
local fron = false
local balpha = 0
local bon = false
local lalpha = 0
local lon = false
local ralpha = 0
local ron = false
function metamodk()
local currentfont = verdanafont
local add_y = 23
local text_y = 3
local currentbinds = 10
if (font_mode_item:get_int() == 0) then
currentfont = verdanafont
text_y = 5
end
if (font_mode_item:get_int() == 1) then
currentfont = corbelfont
text_y = 3
end
if (keybinds_item:get_bool()) then
render:rect_filled(binds_x:get_int(), binds_y:get_int(),150, 21, csgo.color(0,0,0,alphamain1))
render:rect_filled(binds_x:get_int(), binds_y:get_int(),150, 2, csgo.color(kci1:get_int(),kci2:get_int(),kci3:get_int(),alphamain2))
render:text(currentfont, binds_x:get_int()+50, binds_y:get_int()+text_y, "keybinds", csgo.color(255,255,255,alphamain2))
if apon == true then
add_y = add_y + 15
render:text(currentfont, binds_x:get_int()+2, binds_y:get_int()+add_y-15, "auto peek", csgo.color(255,255,255,apalpha))
render:text(currentfont, binds_x:get_int()+118, binds_y:get_int()+add_y-15, "[hold]", csgo.color(255,255,255,apalpha))
end
if dton == true then
add_y = add_y + 15
render:text(currentfont, binds_x:get_int()+2, binds_y:get_int()+add_y-15, "double tap", csgo.color(255,255,255,dtalpha))
render:text(currentfont, binds_x:get_int()+102, binds_y:get_int()+add_y-15, "[toggled]", csgo.color(255,255,255,dtalpha))
end
if fdon == true then
add_y = add_y + 15
render:text(currentfont, binds_x:get_int()+2, binds_y:get_int()+add_y-15, "fake duck", csgo.color(255,255,255,fdalpha))
render:text(currentfont, binds_x:get_int()+118, binds_y:get_int()+add_y-15, "[hold]", csgo.color(255,255,255,fdalpha))
end
if fson == true then
add_y = add_y + 15
render:text(currentfont, binds_x:get_int()+2, binds_y:get_int()+add_y-15, "force safepoint", csgo.color(255,255,255,fsalpha))
render:text(currentfont, binds_x:get_int()+102, binds_y:get_int()+add_y-15, "[toggled]", csgo.color(255,255,255,fsalpha))
end
if hoon == true then
add_y = add_y + 15
render:text(currentfont, binds_x:get_int()+2, binds_y:get_int()+add_y-15, "force hitscan", csgo.color(255,255,255,hoalpha))
render:text(currentfont, binds_x:get_int()+102, binds_y:get_int()+add_y-15, "[toggled]", csgo.color(255,255,255,hoalpha))
end
if fron == true then
add_y = add_y + 15
render:text(currentfont, binds_x:get_int()+2, binds_y:get_int()+add_y-15, "freestanding", csgo.color(255,255,255,fralpha))
render:text(currentfont, binds_x:get_int()+118, binds_y:get_int()+add_y-15, "[hold]", csgo.color(255,255,255,fralpha))
end
if hson == true then
add_y = add_y + 15
render:text(currentfont, binds_x:get_int()+2, binds_y:get_int()+add_y-15, "hide shot", csgo.color(255,255,255,hsalpha))
render:text(currentfont, binds_x:get_int()+102, binds_y:get_int()+add_y-15, "[toggled]", csgo.color(255,255,255,hsalpha))
end
if swon == true then
add_y = add_y + 15
render:text(currentfont, binds_x:get_int()+2, binds_y:get_int()+add_y-15, "slow walk", csgo.color(255,255,255,swalpha))
render:text(currentfont, binds_x:get_int()+118, binds_y:get_int()+add_y-15, "[hold]", csgo.color(255,255,255,swalpha))
end
if lon == true then
add_y = add_y + 15
render:text(currentfont, binds_x:get_int()+2, binds_y:get_int()+add_y-15, "manual yaw", csgo.color(255,255,255,lalpha))
render:text(currentfont, binds_x:get_int()+123, binds_y:get_int()+add_y-15, "[left]", csgo.color(255,255,255,lalpha))
end
if ron == true then
add_y = add_y + 15
render:text(currentfont, binds_x:get_int()+2, binds_y:get_int()+add_y-15, "manual yaw", csgo.color(255,255,255,ralpha))
render:text(currentfont, binds_x:get_int()+116, binds_y:get_int()+add_y-15, "[right]", csgo.color(255,255,255,ralpha))
end
if bon == true then
add_y = add_y + 15
render:text(currentfont, binds_x:get_int()+2, binds_y:get_int()+add_y-15, "manual yaw", csgo.color(255,255,255,balpha))
render:text(currentfont, binds_x:get_int()+115, binds_y:get_int()+add_y-15, "[back]", csgo.color(255,255,255,balpha))
end
end
if references.autopeek:get_bool() then
apon = true
currentbinds = currentbinds + 1
apalpha = apalpha + 16
if apalpha >= 255 then
apalpha = 255
end
else
apalpha = apalpha - 23;
if apalpha <= 0 then
apalpha = 0
apon = false
currentbinds = currentbinds - 1
end
end
if references.doubletap:get_bool() then
dton = true
currentbinds = currentbinds + 1
dtalpha = dtalpha + 16
if dtalpha >= 255 then
dtalpha = 255
end
else
dtalpha = dtalpha - 23;
if dtalpha <= 0 then
dtalpha = 0
dton = false
currentbinds = currentbinds - 1
end
end
if references.fakeduck:get_bool() then
fdon = true
currentbinds = currentbinds + 1
fdalpha = fdalpha + 16
if fdalpha >= 255 then
fdalpha = 255
end
else
fdalpha = fdalpha - 23;
if fdalpha <= 0 then
fdalpha = 0
fdon = false
currentbinds = currentbinds - 1
end
end
if references.forcesafepoint:get_bool() then
fson = true
currentbinds = currentbinds + 1
fsalpha = fsalpha + 16
if fsalpha >= 255 then
fsalpha = 255
end
else
fsalpha = fsalpha - 23;
if fsalpha <= 0 then
fsalpha = 0
fson = false
currentbinds = currentbinds - 1
end
end
if references.onlyhs:get_bool() then
hoon = true
currentbinds = currentbinds + 1
hoalpha = hoalpha + 16
if hoalpha >= 255 then
hoalpha = 255
end
else
hoalpha = hoalpha - 23;
if hoalpha <= 0 then
hoalpha = 0
hoon = false
currentbinds = currentbinds - 1
end
end
if references.freestand:get_bool() then
fron = true
currentbinds = currentbinds + 1
fralpha = fralpha + 16
if fralpha >= 255 then
fralpha = 255
end
else
fralpha = fralpha - 23;
if fralpha <= 0 then
fralpha = 0
fron = false
currentbinds = currentbinds - 1
end
end
if references.hideshot:get_bool() then
hson = true
currentbinds = currentbinds + 1
hsalpha = hsalpha + 16
if hsalpha >= 255 then
hsalpha = 255
end
else
hsalpha = hsalpha - 23;
if hsalpha <= 0 then
hsalpha = 0
hson = false
currentbinds = currentbinds - 1
end
end
if references.slowwalk:get_bool() then
swon = true
currentbinds = currentbinds + 1
swalpha = swalpha + 16
if swalpha >= 255 then
swalpha = 255
end
else
swalpha = swalpha - 23;
if swalpha <= 0 then
swalpha = 0
swon = false
currentbinds = currentbinds - 1
end
end
if references.left:get_bool() then
lon = true
currentbinds = currentbinds + 1
lalpha = lalpha + 16
if lalpha >= 255 then
lalpha = 255
end
else
lalpha = lalpha - 23;
if lalpha <= 0 then
lalpha = 0
lon = false
currentbinds = currentbinds - 1
end
end
if references.right:get_bool() then
ron = true
currentbinds = currentbinds + 1
ralpha = ralpha + 16
if ralpha >= 255 then
ralpha = 255
end
else
ralpha = ralpha - 23;
if ralpha <= 0 then
ralpha = 0
ron = false
currentbinds = currentbinds - 1
end
end
if references.back:get_bool() then
bon = true
currentbinds = currentbinds + 1
balpha = balpha + 16
if balpha >= 255 then
balpha = 255
end
else
balpha = balpha - 23;
if balpha <= 0 then
balpha = 0
bon = false
currentbinds = currentbinds - 1
end
end
if currentbinds >= 1 then
alphamain1 = alphamain1 + 23
alphamain2 = alphamain2 + 23
if alphamain1 >= kci4:get_int() then
alphamain1 = kci4:get_int()
end
if alphamain2 >= 255 then
alphamain2 = 255
end
else
alphamain1 = alphamain1 - 23
alphamain2 = alphamain2 - 23
if alphamain1 <= 0 then
alphamain1 = 0
end
if alphamain2 <= 0 then
alphamain2 = 0
end
end
end
callbacks:add("paint", metamodk)
Последнее редактирование: