ЧВК EB_LAN
Эксперт
-
Автор темы
- #1
Сливаю потому что не буду больше оплачивать данный хак, и дорабатывать мне совсем лень её.
Опять же здесь только билдер ну и вроде есть копеечные индикаторы, но вроде как больше билдера чем у меня на примордиал не имеется.
Опять же здесь только билдер ну и вроде есть копеечные индикаторы, но вроде как больше билдера чем у меня на примордиал не имеется.
code_language.lua:
-- @Note: My favorite API style.
local Get = menu.find
local AddCheckbox = menu.add_checkbox
local AddSlider = menu.add_slider
local AddCombo = menu.add_selection
local Cheat = {
Ragebot = {
FakePing = Get("aimbot", "general", "fake ping", "enable"),
BaimScar = Get("aimbot", "auto", "target overrides", "hitbox"),
BaimScout = Get("aimbot", "scout", "target overrides", "hitbox"),
BaimAwp = Get("aimbot", "awp", "target overrides", "hitbox"),
BaimDeagle = Get("aimbot", "deagle", "target overrides", "hitbox"),
BaimRevolver = Get("aimbot", "revolver", "target overrides", "hitbox"),
BaimPistols = Get("aimbot", "pistols", "target overrides", "hitbox"),
BaimGeneral = Get("aimbot", "other", "target overrides", "hitbox"),
SafepointScar = Get("aimbot", "auto", "target overrides", "safepoint"),
SafepointScout = Get("aimbot", "scout", "target overrides", "safepoint"),
SafepointAwp = Get("aimbot", "awp", "target overrides", "safepoint"),
SafepointDeagle = Get("aimbot", "deagle", "target overrides", "safepoint"),
SafepointRevolver = Get("aimbot", "revolver", "target overrides", "safepoint"),
SafepointPistols = Get("aimbot", "pistols", "target overrides", "safepoint"),
SafepointGeneral = Get("aimbot", "other", "target overrides", "safepoint"),
MindamageScar = Get("aimbot", "auto", "target overrides", "min. damage"),
MindamageScout = Get("aimbot", "scout", "target overrides", "min. damage"),
MindamageAwp = Get("aimbot", "awp", "target overrides", "min. damage"),
MindamageDeagle = Get("aimbot", "deagle", "target overrides", "min. damage"),
MindamageRevolver = Get("aimbot", "revolver", "target overrides", "min. damage"),
MindamagePistols = Get("aimbot", "pistols", "target overrides", "min. damage"),
MindamageGeneral = Get("aimbot", "other", "target overrides", "min. damage"),
MindamageScarAmount = unpack(Get("aimbot", "auto", "target overrides", "min. damage")),
MindamageScoutAmount = unpack(Get("aimbot", "scout", "target overrides", "min. damage")),
MindamageAwpAmount = unpack(Get("aimbot", "awp", "target overrides", "min. damage")),
MindamageDeagleAmount = unpack(Get("aimbot", "deagle", "target overrides", "min. damage")),
MindamageRevolverAmount = unpack(Get("aimbot", "revolver", "target overrides", "min. damage")),
MindamagePistolsAmount = unpack(Get("aimbot", "pistols", "target overrides", "min. damage")),
MindamageGeneralAmount = unpack(Get("aimbot", "other", "target overrides", "min. damage")),
DormantAimbot = Get("aimbot", "general", "dormant aimbot", "enable"),
RollResolver = Get("aimbot", "general", "aimbot", "body lean resolver")
},
Exploits = {
Doubletap = Get("aimbot", "general", "exploits", "doubletap", "enable"),
Hideshots = Get("aimbot", "general", "exploits", "hideshots", "enable")
},
Antiaim = {
Freestand = Get("antiaim", "main", "auto direction", "enable"),
Fakeduck = Get("antiaim", "main", "general", "fakeduck")
},
Fakelag = {
Amount = Get("antiaim", "main", "fakelag", "amount")
},
Misc = {
Autopeek = Get("aimbot", "general", "misc", "autopeek")
}
}
local function GetLocalWeapon()
local LocalPlayer = entity_list.get_local_player()
local WeaponName = nil
if LocalPlayer:get_prop("m_iHealth") > 0 then
local ActiveWeapon = LocalPlayer:get_active_weapon()
if ActiveWeapon == nil then
return
end
WeaponName = ActiveWeapon:get_name()
end
if WeaponName == "scar20" then
return "scar20"
elseif WeaponName == "g3sg1" then
return "g3sg1"
elseif WeaponName == "ssg08" then
return "ssg08"
elseif WeaponName == "awp" then
return "awp"
elseif WeaponName == "deagle" then
return "deagle"
elseif WeaponName == "revolver" then
return "revolver"
elseif WeaponName == "glock" then
return "glock"
elseif WeaponName == "p250" then
return "p250"
elseif WeaponName == "cz75a" then
return "cz75a"
elseif WeaponName == "usp-s" then
return "usp-s"
elseif WeaponName == "tec9" then
return "tec9"
elseif WeaponName == "p2000" then
return "p2000"
elseif WeaponName == "fiveseven" then
return "fiveseven"
elseif WeaponName == "elite" then
return "elite"
end
end
-- @Note: Just reference for conditions.
local AntiaimConditions = {"Configs", "Standing", "Walking", "Running", "Crouching", "In air", "Crouching in air", "Deffensive"}
-- @Note: Config reference.
local Config = {
Antiaim = {
Conditions = nil
}
}
-- @Note: Create combo to make conditions selectable.
Config.Antiaim.Conditions = AddCombo("Antiaim [Builder]", "Conditions", AntiaimConditions)
local AntiaimBuilder = {}
local OverrideAntiaimConditions = {}
for i = 2, #AntiaimConditions do
OverrideAntiaimConditions[i] = AddCheckbox("Antiaim [Builder]", "[" .. AntiaimConditions[i] .. "] - Override general")
end
for i = 1, #AntiaimConditions do
AntiaimBuilder[i] = {
AddSlider("Antiaim [Builder]", "[" .. AntiaimConditions[i] .. "] - Yaw", -180, 180),
AddCombo("Antiaim [Builder]", "[" .. AntiaimConditions[i] .. "] - Pitch", {"None", "Down", "Up", "Zero", "Random"}),
AddCheckbox("Antiaim [Builder]", "[" .. AntiaimConditions[i] .. "] - Override jitter"),
AddCombo("Antiaim [Builder]", "[" .. AntiaimConditions[i] .. "] - Jitter mode", {"None", "Static", "Center", "Random", "Ways"}),
AddSlider("Antiaim [Builder]", "[" .. AntiaimConditions[i] .. "] - Jitter amount", -180, 180),
AddSlider("Antiaim [Builder]", "[" .. AntiaimConditions[i] .. "] - Jitter speed", 0, 10),
AddCheckbox("Antiaim [Builder]", "[" .. AntiaimConditions[i] .. "] - Override desync"),
AddCombo("Antiaim [Builder]", "[" .. AntiaimConditions[i] .. "] - desync mode", {"None", "Left", "Right", "Jitter", "Random"}),
AddSlider("Antiaim [Builder]", "[" .. AntiaimConditions[i] .. "] - desync amount", 0, 90)
}
end
local ExportSettings = menu.add_button("Antiaim [Builder]", "Export settings", function() configs.export() end)
local ImportSettings = menu.add_button("Antiaim [Builder]", "Import settings", function() configs.import() end)
local DefaultSettings = menu.add_button("Antiaim [Builder]", "Default settings", function() configs.default() end)
-- @Note: Calculate angle.
function CalculateAngle(src, dst)
local angles = vec3_t(0, 0, 0)
local delta = src - dst
local hyp = delta:length2d()
angles.y = math.atan(delta.y / delta.x) * 57.2957795131
angles.x = math.atan(-delta.z / hyp) * -57.2957795131
angles.z = 0.0
if delta.x >= 0.0 then
angles.y = angles.y + 180.0
end
return angles
end
-- @Note: Normalize yaw.
function NormalizeYaw(yaw)
while yaw > 180 do yaw = yaw - 360 end
while yaw < -180 do yaw = yaw + 360 end
return yaw
end
-- @Note: Clamp min and max values.
function Clamp(value, min, max)
return math.min(math.max(value, min), max)
end
-- @Note: From world to screen translator.
function WorldToScreen(xdelta, ydelta)
if xdelta == 0 and ydelta == 0 then return 0 end
return math.deg(math.atan2(ydelta, xdelta))
end
-- @Note: Check for alive player.
function IsAlive(Entity)
if Entity == nil then return false end
return Entity:get_prop("m_iHealth") > 0
end
-- @Note: Proper check velocity.
local function GetEntityVelocity(Entity)
local VelocityX = Entity:get_prop("m_vecVelocity[0]")
local VelocityY = Entity:get_prop("m_vecVelocity[1]")
local VelocityZ = Entity:get_prop("m_vecVelocity[2]")
local Velocity = vec3_t(VelocityX, VelocityY, VelocityZ)
if math.ceil(Velocity:length2d()) < 5 then
return 0
else
return math.ceil(Velocity:length2d())
end
end
-- @Note: Сheck to update correctly antiaims.
function CanUpdateAntiaim()
return engine.get_choked_commands() <= 2
end
-- @Note: Check for difference while last and previous simulation time.
local Tickbase = {
LastTickcount = 0,
Ticks = 64,
Difference = 0,
Deffensive = false,
PreviousSimulationTime = 0,
DifferenceOfSimulation = 0
}
function SimulationDifference(entity)
local CurrentSimulationTime = client.time_to_ticks(entity:get_prop("m_flSimulationTime"))
local Difference = CurrentSimulationTime - Tickbase.PreviousSimulationTime
Tickbase.PreviousSimulationTime = CurrentSimulationTime
Tickbase.DifferenceOfSimulation = Difference
return Tickbase.DifferenceOfSimulation
end
-- @Note: Check for deffensive.
local Accept = false
local CheatHideshots = Get("aimbot", "general", "exploits", "hideshots", "enable")
local Deffensive = false
function InDeffensive()
local LocalPlayer = entity_list.get_local_player()
if LocalPlayer == nil then
return 0
end
if --[[ Ui.Lua.Antiaim.Builder.Deffensive.BreakLCInAir:get(true) and]] input.is_key_held(e_keys.KEY_SPACE) then
exploits.force_anti_exploit_shift(true)
end
if (SimulationDifference(LocalPlayer) <= -1) and exploits.get_charge() > 6 and not CheatHideshots[2]:get() then
Deffensive = true
end
local DeffensiveTicks = 0
if Deffensive then
DeffensiveTicks = client.time_to_ticks(globals.real_time() / 2) % 13
if DeffensiveTicks < 12 then
Accept = true
else
Accept = false
Deffensive = false
end
end
return Accept
end
-- @Note: Get antiaim condition state.
local CheatDoubletap = Get("aimbot", "general", "exploits", "doubletap", "enable")
local function CAntiaimCondition()
local LocalPlayer = entity_list.get_local_player()
local AntiaimCondition = 0
if InDeffensive() and CheatDoubletap[2]:get() then
AntiaimCondition = 8
else
if GetEntityVelocity(LocalPlayer) == 0 then
AntiaimCondition = 2
end
if GetEntityVelocity(LocalPlayer) > 0 and LocalPlayer:has_player_flag(e_player_flags.ON_GROUND) then
AntiaimCondition = 3
end
if GetEntityVelocity(LocalPlayer) > 100 and LocalPlayer:has_player_flag(e_player_flags.ON_GROUND) then
AntiaimCondition = 4
end
if LocalPlayer:has_player_flag(e_player_flags.DUCKING) and LocalPlayer:has_player_flag(e_player_flags.ON_GROUND) then
AntiaimCondition = 5
end
if not LocalPlayer:has_player_flag(e_player_flags.ON_GROUND) then
AntiaimCondition = 6
end
if not LocalPlayer:has_player_flag(e_player_flags.ON_GROUND) and LocalPlayer:has_player_flag(e_player_flags.DUCKING) then
AntiaimCondition = 7
end
end
return AntiaimCondition
end
-- @Note: Get closest enemy.
function GetClosetEnemy(type)
local player = entity_list.get_local_player()
if (player == nil or not player:is_alive()) then
return
end
local players = entity_list.get_players(true)
if (players == nil and #players < 1) then
return
end
if (type == nil) then
type = 2
end
local target = nil
if (type == 2) then
local fov = 180
local eye_pos = player:get_eye_position()
local view_angles = engine.get_view_angles()
for key, enemy in pairs(players) do
local origin = enemy:get_render_origin()
local current_fov = math.abs(NormalizeYaw(WorldToScreen(eye_pos.x - origin.x, eye_pos.y - origin.y) - view_angles.y + 180))
if (current_fov < fov) then
fov = current_fov
target = enemy
end
end
end
return target
end
-- @Note: I can`t use tickcount or command_nuber cuz primordial doesn`t give it to me.
function DelayedSwitcherYaw()
local JitterSide = 0
local SwapTimer = 0
SwapTimer = math.ceil(globals.cur_time() * (AntiaimBuilder[CAntiaimCondition()][6]:get() * 10)) % 5
Clamp(SwapTimer, 0, 4)
JitterSide = SwapTimer > 2 and 1 or -1
return JitterSide
end
function Switcher()
local JitterSide = 0
local SwapTimer = 0
SwapTimer = math.ceil(globals.cur_time() * 100) % 5
Clamp(SwapTimer, 0, 4)
JitterSide = SwapTimer > 2 and 1 or -1
return JitterSide
end
function ThreeWayTimer()
local Ways = math.ceil(globals.cur_time() / 2 * (AntiaimBuilder[CAntiaimCondition()][6]:get() * 10)) % 6
return Clamp(Ways, 1, 5)
end
-- @Note: Build yaw.
function CBuildedYaw()
local LocalPlayer = entity_list.get_local_player()
local TargetedEntity = GetClosetEnemy()
local AtTargetYaw = CalculateAngle(LocalPlayer:get_render_origin(), TargetedEntity:get_render_origin()).y
local CurrentYaw = AtTargetYaw + AntiaimBuilder[CAntiaimCondition()][1]:get() - 180
local Invert = DelayedSwitcherYaw() == 1 and true or false
if AntiaimBuilder[CAntiaimCondition()][3]:get() then
if AntiaimBuilder[CAntiaimCondition()][4]:get() == 1 then
CurrentYaw = CurrentYaw
elseif AntiaimBuilder[CAntiaimCondition()][4]:get() == 2 then
CurrentYaw = CurrentYaw + (Invert and 0 or AntiaimBuilder[CAntiaimCondition()][5]:get())
elseif AntiaimBuilder[CAntiaimCondition()][4]:get() == 3 then
CurrentYaw = CurrentYaw + (Invert and -AntiaimBuilder[CAntiaimCondition()][5]:get() or AntiaimBuilder[CAntiaimCondition()][5]:get())
elseif AntiaimBuilder[CAntiaimCondition()][4]:get() == 4 then
CurrentYaw = CurrentYaw + client.random_int(-AntiaimBuilder[CAntiaimCondition()][5]:get(), AntiaimBuilder[CAntiaimCondition()][5]:get())
elseif AntiaimBuilder[CAntiaimCondition()][4]:get() == 5 then
if ThreeWayTimer() == 1 then
CurrentYaw = CurrentYaw
elseif ThreeWayTimer() == 2 then
CurrentYaw = CurrentYaw + AntiaimBuilder[CAntiaimCondition()][5]:get()
elseif ThreeWayTimer() == 3 then
CurrentYaw = CurrentYaw - AntiaimBuilder[CAntiaimCondition()][5]:get()
elseif ThreeWayTimer() == 4 then
CurrentYaw = CurrentYaw + (AntiaimBuilder[CAntiaimCondition()][5]:get() / 2)
elseif ThreeWayTimer() == 5 then
CurrentYaw = CurrentYaw - (AntiaimBuilder[CAntiaimCondition()][5]:get() / 2)
end
end
end
if antiaim.get_manual_override() == 0 then
CurrentYaw = CurrentYaw
elseif antiaim.get_manual_override() == 1 then
CurrentYaw = CurrentYaw - 110
elseif antiaim.get_manual_override() == 2 then
CurrentYaw = CurrentYaw
elseif antiaim.get_manual_override() == 3 then
CurrentYaw = CurrentYaw + 110
end
return CurrentYaw
end
-- @Note: Build pitch.
function CBuildedPitch()
local Pitch = 0
if AntiaimBuilder[CAntiaimCondition()][2]:get() == 1 then
Pitch = 0
elseif AntiaimBuilder[CAntiaimCondition()][2]:get() == 2 then
Pitch = 89
elseif AntiaimBuilder[CAntiaimCondition()][2]:get() == 3 then
Pitch = -89
elseif AntiaimBuilder[CAntiaimCondition()][2]:get() == 4 then
Pitch = 0
elseif AntiaimBuilder[CAntiaimCondition()][2]:get() == 5 then
Pitch = client.random_int(-89, 89)
end
return Pitch
end
-- @Note: Build desync.
function CBuildedDesync()
local DesyncAmount = 0
local MultipliedDesyncAmount = AntiaimBuilder[CAntiaimCondition()][9]:get() / 100
if AntiaimBuilder[CAntiaimCondition()][7]:get() then
if AntiaimBuilder[CAntiaimCondition()][8]:get() == 1 then
DesyncAmount = 0
elseif AntiaimBuilder[CAntiaimCondition()][8]:get() == 2 then
DesyncAmount = -MultipliedDesyncAmount
elseif AntiaimBuilder[CAntiaimCondition()][8]:get() == 3 then
DesyncAmount = MultipliedDesyncAmount
elseif AntiaimBuilder[CAntiaimCondition()][8]:get() == 4 then
DesyncAmount = MultipliedDesyncAmount * Switcher()
elseif AntiaimBuilder[CAntiaimCondition()][8]:get() == 5 then
DesyncAmount = client.random_float(-MultipliedDesyncAmount, MultipliedDesyncAmount)
end
end
return DesyncAmount
end
-- @Note: Build antiaims.
local function CAntiaimBuilder(Cheat)
if GetClosetEnemy() ~= nil then
Cheat:set_yaw(CBuildedYaw())
Cheat:set_pitch(CBuildedPitch())
Cheat:set_desync(CBuildedDesync())
end
end
-- @Note: Make function to correct tabs and elements.
local function CAntiaimBuilderElements()
for i = 1, #AntiaimConditions do
for k = 1, #AntiaimBuilder[i] do
if i > 1 then
ExportSettings:set_visible(Config.Antiaim.Conditions:get() == 1)
ImportSettings:set_visible(Config.Antiaim.Conditions:get() == 1)
DefaultSettings:set_visible(Config.Antiaim.Conditions:get() == 1)
OverrideAntiaimConditions[i]:set_visible(Config.Antiaim.Conditions:get() == i)
AntiaimBuilder[i][k]:set_visible(Config.Antiaim.Conditions:get() == i and OverrideAntiaimConditions[i]:get())
else
AntiaimBuilder[i][k]:set_visible(false)
end
end
end
end
local Screen = {
Size = render.get_screen_size(),
X = render.get_screen_size().x,
Y = render.get_screen_size().y,
CenterX = render.get_screen_size().x / 2,
CenterY = render.get_screen_size().y / 2
}
local Font = {
Inter = render.create_font("Inter", 16, 600, e_font_flags.ANTIALIAS),
InterSmall = render.create_font("Inter", 13, 600, e_font_flags.ANTIALIAS),
Verdana = render.create_font("Verdana", 16, 650, e_font_flags.ANTIALIAS),
VerdanaSmall = render.create_font("Verdana", 13, 650, e_font_flags.ANTIALIAS)
}
local Indicators = {
Center = AddCheckbox("Visuals", "Center indicator"),
Discord = AddCheckbox("Visuals", "Discord watermark"),
Watermark = AddCheckbox("Visuals", "Lua watermark"),
Keybinds = AddCheckbox("Visuals", "Keybinds")
}
local CenterIndicatorColor = Indicators.Center:add_color_picker("Center indicator color")
local WatermarkColor = Indicators.Watermark:add_color_picker("Watermark color")
local KeybindsColor = Indicators.Keybinds:add_color_picker("Watermark color")
local function Animate(check, name, value, speed)
if check then
return name + (value - name) * globals.frame_time() * speed / 1.5
else
return name - (value + name) * globals.frame_time() * speed / 1.5
end
end
local function CVisualElements()
Indicators.Center:set_visible(true)
end
local CenterIndicatorOffset = 0
local function CVisuals()
local LocalPlayer = entity_list.get_local_player()
local IsScoped = LocalPlayer:get_prop("m_bIsScoped")
local InScope = IsScoped == 1 and true or false
local LuaNameSize = render.get_text_size(Font.Inter, "carnage")
local LuaNameSizeFull = render.get_text_size(Font.Inter, "carnage.ua")
CenterIndicatorOffset = Animate(InScope, CenterIndicatorOffset, InScope and 55 or -2, 16)
if Indicators.Center:get() then
render.text(Font.Inter, "carnage", vec2_t(Screen.CenterX - 37 + CenterIndicatorOffset, Screen.CenterY + 13), color_t(255, 255, 255, 255))
render.text(Font.Inter, ".ua", vec2_t(Screen.CenterX - 37 + LuaNameSize.x + CenterIndicatorOffset, Screen.CenterY + 13), color_t(CenterIndicatorColor:get().r, CenterIndicatorColor:get().g, CenterIndicatorColor:get().b, 255))
--[[ if InScope then
if CAntiaimCondition() == 2 then
render.text(Font.InterSmall, "standing", vec2_t(Screen.CenterX - 37 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 3 then
render.text(Font.InterSmall, "walking", vec2_t(Screen.CenterX - 37 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 4 then
render.text(Font.InterSmall, "running", vec2_t(Screen.CenterX - 37 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 5 then
render.text(Font.InterSmall, "crouching", vec2_t(Screen.CenterX - 37 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 6 then
render.text(Font.InterSmall, "in air", vec2_t(Screen.CenterX - 37 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 7 then
render.text(Font.InterSmall, "in air+", vec2_t(Screen.CenterX - 37 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 8 then
render.text(Font.InterSmall, "defensive", vec2_t(Screen.CenterX - 37 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
end
else
if CAntiaimCondition() == 2 then
render.text(Font.InterSmall, "standing", vec2_t(Screen.CenterX - 24 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 3 then
render.text(Font.InterSmall, "walking", vec2_t(Screen.CenterX - 22 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 4 then
render.text(Font.InterSmall, "running", vec2_t(Screen.CenterX - 20 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 5 then
render.text(Font.InterSmall, "crouching", vec2_t(Screen.CenterX - 28 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 6 then
render.text(Font.InterSmall, "in air", vec2_t(Screen.CenterX - 13 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 7 then
render.text(Font.InterSmall, "in air+", vec2_t(Screen.CenterX - 15 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
elseif CAntiaimCondition() == 8 then
render.text(Font.InterSmall, "defensive", vec2_t(Screen.CenterX - 28 + CenterIndicatorOffset, Screen.CenterY + (LuaNameSizeFull.y * 1.80)), color_t(255, 255, 255, 255))
end
end]]
end
local DiscordNameSizeFull = render.get_text_size(Font.Inter, "discord.gg/")
local DiscordNameSize = render.get_text_size(Font.Inter, "HSrR54UVr")
if Indicators.Discord:get() then
render.text(Font.Inter, "discord.gg/", vec2_t(Screen.X - (DiscordNameSize.x + DiscordNameSize.x) - 5, 5), color_t(255, 255, 255, 255))
render.text(Font.Inter, "HSrR54UVr", vec2_t(Screen.X - DiscordNameSize.x - 5, 5), color_t(15, 255, 25, 255))
end
local WatermarkText = "primordial | carnage.ua | fps:" .. client.get_fps() .. " | tickrate: " .. client.get_tickrate()
local WatermarkTextSize = render.get_text_size(Font.Verdana, WatermarkText)
if Indicators.Watermark:get() then
render.rect_filled(vec2_t(Screen.X - WatermarkTextSize.x - 15, 6), vec2_t(WatermarkTextSize.x + 10, WatermarkTextSize.y + 10), color_t(0, 0, 0, WatermarkColor:get().a))
render.rect_filled(vec2_t(Screen.X - WatermarkTextSize.x - 15, 6), vec2_t(WatermarkTextSize.x + 10, 2), color_t(WatermarkColor:get().r, WatermarkColor:get().g, WatermarkColor:get().b))
render.text(Font.Verdana, WatermarkText, vec2_t(Screen.X - WatermarkTextSize.x - 10, WatermarkTextSize.y - 5), color_t(255, 255, 255, 255))
end
if Indicators.Keybinds:get() then
local keybindspos = vec2_t(500, 500)
local MousePosition = vec2_t(input.get_mouse_pos().x, input.get_mouse_pos().y)
if input.is_key_held(e_keys.MOUSE_LEFT) and menu.is_open() then
keybindspos.x = MousePositionX - 100
keybindspos.y = MousePositionY - 20
end
if menu.find("aimbot", "general", "exploits", "doubletap", "enable")[2]:get() then
table.insert(Table, {text = "Doubletap", color = color_t(255,255,255,200)})
end
if menu.find("antiaim","main","general","fake duck") then
table.insert(Table, {text = "Fakeduck", color = color_t(255,255,255,200)})
end
if menu.find("aimbot", GetLocalWeapon(), "target overrides", "force min. damage") then
table.insert(Table, {text = "Damage override", color = color_t(255,255,255,200)})
end
if menu.find("aimbot", GetLocalWeapon(), "target overrides", "safepoint") then
table.insert(Table, {text = "Force safepoint", color = color_t(255,255,255,200)})
end
if menu.find("aimbot", GetLocalWeapon(), "target overrides", "hitbox") then
table.insert(Table, {text = "Hitbox override", color = color_t(255,255,255,200)})
end
if menu.find("aimbot", "general", "aimbot", "body lean resolver")[2]:get() then
table.insert(Table, {text = "Roll resolver", color = color_t(255,255,255,200)})
end
if menu.find("aimbot", "general", "dormant aimbot", "enable")[2]:get() then
table.insert(Table, {text = "Dormant aimbot", color = color_t(255,255,255,200)})
end
if menu.find("aimbot", "general", "exploits", "hideshots", "enable")[2]:get() then
table.insert(Table, {text = "Hideshots", color = color_t(255,255,255,200)})
end
if menu.find("aimbot", "general", "misc", "autopeek")[2]:get() then
table.insert(Table, {text = "Peek assist", color = color_t(255,255,255,200)})
end
if menu.find("antiaim", "main", "manual", "left")[2]:get() then
table.insert(Table, {text = "Manual override", color = color_t(255,255,255,200)})
end
if menu.find("antiaim", "main", "manual", "right")[2]:get() then
table.insert(Table, {text = "Manual override", color = color_t(255,255,255,200)})
end
if menu.find("antiaim", "main", "manual", "back")[2]:get() then
table.insert(Table, {text = "Manual override", color = color_t(255,255,255,200)})
end
if menu.find("antiaim", "main", "auto direction", "enable")[2]:get() then
table.insert(Table, {text = "Freestand", color = color_t(255,255,255,200)})
end
if menu.find("aimbot", "general", "fake ping", "enable")[2]:get() then
table.insert(Table, {text = "Ping spike", color = color_t(255,255,255,200)})
end
local text_size = 175
local render1 = false
for idx = 1, #Table do
local Table = Table[idx]
render1 = true
render.text(Font.Verdana, Table.text, vec2_t(keybindspos.x + 1, keybindspos.y + 18 + (idx * 16)), Table.color)
render.text(Font.Verdana, "[enabled]", vec2_t(keybindspos.x + 120, keybindspos.y + 18 + (idx * 16)), Table.color)
end
end
end
-- @Note: Make C functions via winapi.
ffi.cdef [[
typedef int(__thiscall* get_clipboard_text_count)(void*);
typedef void(__thiscall* set_clipboard_text)(void*, const char*, int);
typedef void(__thiscall* get_clipboard_text)(void*, int, const char*, int);
]]
-- @Note: Cast VGUI interface.
local vgui = ffi.cast(ffi.typeof("void***"), memory.create_interface("vgui2.dll", "VGUI_System010"))
local get_clipboard_text_count = ffi.cast("get_clipboard_text_count", vgui[ 0 ][ 7 ])
local set_clipboard_text = ffi.cast("set_clipboard_text", vgui[ 0 ][ 9 ])
local get_clipboard_text = ffi.cast("get_clipboard_text", vgui[ 0 ][ 11 ])
clipboard_import = function()
local clipboard_text_length = get_clipboard_text_count(vgui)
if clipboard_text_length > 0 then
local buffer = ffi.new("char[?]", clipboard_text_length)
local size = clipboard_text_length * ffi.sizeof("char[?]", clipboard_text_length)
get_clipboard_text(vgui, 0, buffer, size )
return ffi.string( buffer, clipboard_text_length-1)
end
return ""
end
local function clipboard_export(string)
if string then set_clipboard_text(vgui, string, string:len()) end
end
local function str_to_sub(text, sep)
local t = {}
for str in string.gmatch(text, "([^"..sep.."]+)") do
t[#t + 1] = string.gsub(str, "\n", " ")
end
return t
end
local function to_boolean(str)
if str == "true" or str == "false" then return (str == "true") else return str end
end
configs = {}
configs.import = function(input)
local protected = function()
local clipboard = input == nil and clipboard_import() or input
local tbl = str_to_sub(clipboard, "|")
OverrideAntiaimConditions[2]:set(to_boolean(tbl[1]))
AntiaimBuilder[2][1]:set(tonumber(tbl[2]))
AntiaimBuilder[2][2]:set(tonumber(tbl[3]))
AntiaimBuilder[2][3]:set(to_boolean(tbl[4]))
AntiaimBuilder[2][4]:set(tonumber(tbl[5]))
AntiaimBuilder[2][5]:set(tonumber(tbl[6]))
AntiaimBuilder[2][6]:set(tonumber(tbl[7]))
AntiaimBuilder[2][7]:set(to_boolean(tbl[8]))
AntiaimBuilder[2][8]:set(tonumber(tbl[9]))
AntiaimBuilder[2][9]:set(tonumber(tbl[10]))
AntiaimBuilder[3][1]:set(tonumber(tbl[11]))
AntiaimBuilder[3][2]:set(tonumber(tbl[12]))
AntiaimBuilder[3][3]:set(to_boolean(tbl[13]))
AntiaimBuilder[3][4]:set(tonumber(tbl[14]))
AntiaimBuilder[3][5]:set(tonumber(tbl[15]))
AntiaimBuilder[3][6]:set(tonumber(tbl[16]))
AntiaimBuilder[3][7]:set(to_boolean(tbl[17]))
AntiaimBuilder[3][8]:set(tonumber(tbl[18]))
AntiaimBuilder[3][9]:set(tonumber(tbl[19]))
AntiaimBuilder[4][1]:set(tonumber(tbl[20]))
AntiaimBuilder[4][2]:set(tonumber(tbl[21]))
AntiaimBuilder[4][3]:set(to_boolean(tbl[22]))
AntiaimBuilder[4][4]:set(tonumber(tbl[23]))
AntiaimBuilder[4][5]:set(tonumber(tbl[24]))
AntiaimBuilder[4][6]:set(tonumber(tbl[25]))
AntiaimBuilder[4][7]:set(to_boolean(tbl[26]))
AntiaimBuilder[4][8]:set(tonumber(tbl[27]))
AntiaimBuilder[4][9]:set(tonumber(tbl[28]))
AntiaimBuilder[5][1]:set(tonumber(tbl[29]))
AntiaimBuilder[5][2]:set(tonumber(tbl[30]))
AntiaimBuilder[5][3]:set(to_boolean(tbl[31]))
AntiaimBuilder[5][4]:set(tonumber(tbl[32]))
AntiaimBuilder[5][5]:set(tonumber(tbl[33]))
AntiaimBuilder[5][6]:set(tonumber(tbl[34]))
AntiaimBuilder[5][7]:set(to_boolean(tbl[35]))
AntiaimBuilder[5][8]:set(tonumber(tbl[36]))
AntiaimBuilder[5][9]:set(tonumber(tbl[37]))
AntiaimBuilder[6][1]:set(tonumber(tbl[38]))
AntiaimBuilder[6][2]:set(tonumber(tbl[39]))
AntiaimBuilder[6][3]:set(to_boolean(tbl[40]))
AntiaimBuilder[6][4]:set(tonumber(tbl[41]))
AntiaimBuilder[6][5]:set(tonumber(tbl[42]))
AntiaimBuilder[6][6]:set(tonumber(tbl[43]))
AntiaimBuilder[6][7]:set(to_boolean(tbl[44]))
AntiaimBuilder[6][8]:set(tonumber(tbl[45]))
AntiaimBuilder[6][9]:set(tonumber(tbl[46]))
AntiaimBuilder[7][1]:set(tonumber(tbl[47]))
AntiaimBuilder[7][2]:set(tonumber(tbl[48]))
AntiaimBuilder[7][3]:set(to_boolean(tbl[49]))
AntiaimBuilder[7][4]:set(tonumber(tbl[50]))
AntiaimBuilder[7][5]:set(tonumber(tbl[51]))
AntiaimBuilder[7][6]:set(tonumber(tbl[52]))
AntiaimBuilder[7][7]:set(to_boolean(tbl[53]))
AntiaimBuilder[7][8]:set(tonumber(tbl[54]))
AntiaimBuilder[7][9]:set(tonumber(tbl[55]))
AntiaimBuilder[8][1]:set(tonumber(tbl[56]))
AntiaimBuilder[8][2]:set(tonumber(tbl[57]))
AntiaimBuilder[8][3]:set(to_boolean(tbl[58]))
AntiaimBuilder[8][4]:set(tonumber(tbl[59]))
AntiaimBuilder[8][5]:set(tonumber(tbl[60]))
AntiaimBuilder[8][6]:set(tonumber(tbl[61]))
AntiaimBuilder[8][7]:set(to_boolean(tbl[62]))
AntiaimBuilder[8][8]:set(tonumber(tbl[63]))
AntiaimBuilder[8][9]:set(tonumber(tbl[64]))
client.log_screen("Config Sucessfully", color_t(255, 255, 255, 255) ," Loaded!")
end
local status, message = pcall(protected)
if not status then
client.log_screen("Failed to ", color_t(255, 255, 255, 255) ,"Load Config")
return
end
end
configs.export = function()
local str = {}
local str = tostring(OverrideAntiaimConditions[2]:get()) .. "|"
.. tostring(AntiaimBuilder[2][1]:get()) .. "|"
.. tostring(AntiaimBuilder[2][2]:get()) .. "|"
.. tostring(AntiaimBuilder[2][3]:get()) .. "|"
.. tostring(AntiaimBuilder[2][4]:get()) .. "|"
.. tostring(AntiaimBuilder[2][5]:get()) .. "|"
.. tostring(AntiaimBuilder[2][6]:get()) .. "|"
.. tostring(AntiaimBuilder[2][7]:get()) .. "|"
.. tostring(AntiaimBuilder[2][8]:get()) .. "|"
.. tostring(AntiaimBuilder[2][9]:get()) .. "|"
.. tostring(AntiaimBuilder[3][1]:get()) .. "|"
.. tostring(AntiaimBuilder[3][2]:get()) .. "|"
.. tostring(AntiaimBuilder[3][3]:get()) .. "|"
.. tostring(AntiaimBuilder[3][4]:get()) .. "|"
.. tostring(AntiaimBuilder[3][5]:get()) .. "|"
.. tostring(AntiaimBuilder[3][6]:get()) .. "|"
.. tostring(AntiaimBuilder[3][7]:get()) .. "|"
.. tostring(AntiaimBuilder[3][8]:get()) .. "|"
.. tostring(AntiaimBuilder[3][9]:get()) .. "|"
.. tostring(AntiaimBuilder[4][1]:get()) .. "|"
.. tostring(AntiaimBuilder[4][2]:get()) .. "|"
.. tostring(AntiaimBuilder[4][3]:get()) .. "|"
.. tostring(AntiaimBuilder[4][4]:get()) .. "|"
.. tostring(AntiaimBuilder[4][5]:get()) .. "|"
.. tostring(AntiaimBuilder[4][6]:get()) .. "|"
.. tostring(AntiaimBuilder[4][7]:get()) .. "|"
.. tostring(AntiaimBuilder[4][8]:get()) .. "|"
.. tostring(AntiaimBuilder[4][9]:get()) .. "|"
.. tostring(AntiaimBuilder[5][1]:get()) .. "|"
.. tostring(AntiaimBuilder[5][2]:get()) .. "|"
.. tostring(AntiaimBuilder[5][3]:get()) .. "|"
.. tostring(AntiaimBuilder[5][4]:get()) .. "|"
.. tostring(AntiaimBuilder[5][5]:get()) .. "|"
.. tostring(AntiaimBuilder[5][6]:get()) .. "|"
.. tostring(AntiaimBuilder[5][7]:get()) .. "|"
.. tostring(AntiaimBuilder[5][8]:get()) .. "|"
.. tostring(AntiaimBuilder[5][9]:get()) .. "|"
.. tostring(AntiaimBuilder[6][1]:get()) .. "|"
.. tostring(AntiaimBuilder[6][2]:get()) .. "|"
.. tostring(AntiaimBuilder[6][3]:get()) .. "|"
.. tostring(AntiaimBuilder[6][4]:get()) .. "|"
.. tostring(AntiaimBuilder[6][5]:get()) .. "|"
.. tostring(AntiaimBuilder[6][6]:get()) .. "|"
.. tostring(AntiaimBuilder[6][7]:get()) .. "|"
.. tostring(AntiaimBuilder[6][8]:get()) .. "|"
.. tostring(AntiaimBuilder[6][9]:get()) .. "|"
.. tostring(AntiaimBuilder[7][1]:get()) .. "|"
.. tostring(AntiaimBuilder[7][2]:get()) .. "|"
.. tostring(AntiaimBuilder[7][3]:get()) .. "|"
.. tostring(AntiaimBuilder[7][4]:get()) .. "|"
.. tostring(AntiaimBuilder[7][5]:get()) .. "|"
.. tostring(AntiaimBuilder[7][6]:get()) .. "|"
.. tostring(AntiaimBuilder[7][7]:get()) .. "|"
.. tostring(AntiaimBuilder[7][8]:get()) .. "|"
.. tostring(AntiaimBuilder[7][9]:get()) .. "|"
.. tostring(AntiaimBuilder[8][1]:get()) .. "|"
.. tostring(AntiaimBuilder[8][2]:get()) .. "|"
.. tostring(AntiaimBuilder[8][3]:get()) .. "|"
.. tostring(AntiaimBuilder[8][4]:get()) .. "|"
.. tostring(AntiaimBuilder[8][5]:get()) .. "|"
.. tostring(AntiaimBuilder[8][6]:get()) .. "|"
.. tostring(AntiaimBuilder[8][7]:get()) .. "|"
.. tostring(AntiaimBuilder[8][8]:get()) .. "|"
.. tostring(AntiaimBuilder[8][9]:get()) .. "|"
client.log_screen("Config Sucessfully", color_t(255, 255, 255, 255) ," Exported")
clipboard_export(str)
end
configs.default = function()
local data = "true|25|2|true|2|-15|10|true|3|90|25|2|true|5|-15|10|true|3|90|25|2|true|2|-15|10|true|3|90|25|2|true|5|-15|10|true|3|90|25|2|true|2|-15|10|true|3|90|25|2|true|2|-15|10|true|3|90|0|5|true|5|80|10|true|5|90|"
configs.import(data)
end
function CanHook()
return engine.is_connected() and engine.is_in_game() and IsAlive(entity_list.get_local_player())
end
local function HookedAntiaim(Cheat)
if CanHook() then
CAntiaimBuilder(Cheat)
end
end
local function HookedRender()
CAntiaimBuilderElements()
CVisualElements()
if CanHook() then
CAntiaimCondition()
CVisuals()
end
end
callbacks.add(e_callbacks.ANTIAIM, HookedAntiaim)
callbacks.add(e_callbacks.PAINT, HookedRender)