Prediction
Prediction
Prediction
--PREDICTION LUA V2
local checkhitbox = {0,11,12,13,14}
local username = Cheat.GetCheatUserName()
local ideal_yaw
local right_side
local left_side
local dt_charging
print("" .. username .. " 22-09-2021")
print("" .. username .. " Auth System and new API was fixed by Nepo")
print("" .. username .. " Marc#0404 on Discord (lua dev for neverlose)")
local version = "1645"
ffi.cdef[[
void* CreateFileA(
const char* lpFileName,
unsigned long dwDesiredAccess,
unsigned long dwShareMode,
unsigned long lpSecurityAttributes,
unsigned long dwCreationDisposition,
unsigned long dwFlagsAndAttributes,
void* hTemplateFile
);
bool ReadFile(
void* hFile,
char* lpBuffer,
unsigned long nNumberOfBytesToRead,
unsigned long* lpNumberOfBytesRead,
int lpOverlapped
);
bool WriteFile(
void* hFile,
char* lpBuffer,
unsigned long nNumberOfBytesToWrite,
unsigned long* lpNumberOfBytesWritten,
int lpOverlapped
);
Cheat.RegisterCallback("destroy", function()
ffi.C.CloseHandle(pfile)
--ffi.C.CloseHandle(cfile)
end)
local ok = ""
if version == vers then ok = "Version: UP 2 DATE!" else ok = "Version: Outdated!"
end
if ok then
Menu.Text("STATUS", ok)
else
Menu.Text("STATUS", "ERROR")
end
ffi.cdef[[
typedef uintptr_t (__thiscall* GetClientEntity_4242425_t)(void*, int);
typedef void (__thiscall* UpdateCSA_t)(void*);
typedef struct { float id; } poses_t;
typedef struct
{
float x;
float y;
float z;
} Vector_t;
typedef struct
{
float flAnimationTime; //0x00
float flFadeOut; //0x04
void* pStudioHdr; //0x08
int nDispatchedSrc; //0x0C
int nDispatchedDst; //0x10
int iOrder; //0x14
int nSequence; //0x18
float flPrevCycle; //0x1C
float flWeight; //0x20
float flWeightDeltaRate; //0x24
float flPlaybackRate; //0x28
float flCycle; //0x2C
void* pOwner; //0x30
int nInvalidatePhysicsBits; //0x34
} animlayer_t;
typedef struct
{
void* pThis;
char pad2[91];
void* pBaseEntity; //0x60
void* pActiveWeapon; //0x64
void* pLastActiveWeapon; //0x68
float m_flLastClientSideAnimationUpdateTime; //0x6C
int m_iLastClientSideAnimationUpdateFramecount; //0x70
float m_flEyePitch; //0x74
float m_flEyeYaw; //0x78
float m_flPitch; //0x7C
float m_flGoalFeetYaw; //0x80
float m_flCurrentFeetYaw; //0x84
float m_flCurrentTorsoYaw; //0x88
float m_flUnknownVelocityLean; //0x8C //changes when
moving/jumping/hitting ground
float m_flLeanAmount; //0x90
char pad4[4]; //NaN
float m_flFeetCycle; //0x98 0 to 1
float m_flFeetYawRate; //0x9C 0 to 1
float m_fUnknown2;
float m_fDuckAmount; //0xA4
float m_fLandingDuckAdditiveSomething; //0xA8
float m_fUnknown3; //0xAC
Vector_t m_vOrigin; //0xB0, 0xB4, 0xB8
Vector_t m_vLastOrigin; //0xBC, 0xC0, 0xC4
float m_vVelocityX; //0xC8
float m_vVelocityY; //0xCC
char pad5[4];
float m_flUnknownFloat1; //0xD4 Affected by movement and direction
char pad6[8];
float m_flUnknownFloat2; //0xE0 //from -1 to 1 when moving and affected
by direction
float m_flUnknownFloat3; //0xE4 //from -1 to 1 when moving and affected
by direction
float m_unknown; //0xE8
float speed_2d; //0xEC
float flUpVelocity; //0xF0
float m_flSpeedNormalized; //0xF4 //from 0 to 1
float m_flFeetSpeedForwardsOrSideWays; //0xF8 //from 0 to 2. something
is 1 when walking, 2.something when running, 0.653 when crouch walking
float m_flFeetSpeedUnknownForwardOrSideways; //0xFC //from 0 to 3.
something
float m_flTimeSinceStartedMoving; //0x100
float m_flTimeSinceStoppedMoving; //0x104
unsigned char m_bOnGround; //0x108
unsigned char m_bInHitGroundAnimation; //0x109
char pad7[10];
float m_flLastOriginZ; //0x114
float m_flHeadHeightOrOffsetFromHittingGroundAnimation; //0x118 from 0
to 1, is 1 when standing
float m_flStopToFullRunningFraction; //0x11C from 0 to 1, doesnt change
when walking or crouching, only running
char pad8[4]; //NaN
float m_flUnknownFraction; //0x124 affected while jumping and running,
or when just jumping, 0 to 1
char pad9[4]; //NaN
float m_flUnknown3;
char pad10[528];
} CCSGOPlayerAnimationState_534535_t;
]]
local hitboxes = {
"Head",
"Upper Chest",
"Chest",
"Body",
"Stomach",
"Pelvis",
"Legs & Feet",
"Arms"
}
local types = {
"2D Filled Circle",
"2D Circle"
}
--VARS
local miss_counter = 0
local menu_invert_side = Menu.FindVar("Aimbot", "Anti Aim", "Fake Angle",
"Inverter")
local menu_left_limit = Menu.FindVar("Aimbot", "Anti Aim", "Fake Angle", "Left
Limit")
local menu_fake_options = Menu.FindVar("Aimbot", "Anti Aim", "Fake Angle", "LBY
Mode")
local menu_right_limit = Menu.FindVar("Aimbot", "Anti Aim", "Fake Angle", "Right
Limit")
local menu_leg_movement = Menu.FindVar("Aimbot", "Anti Aim", "Misc", "Leg
Movement")
local menu_fakelag_limit = Menu.FindVar("Aimbot", "Anti Aim", "Fake Lag", "Limit")
local menu_fakelag_enable = Menu.FindVar("Aimbot", "Anti Aim", "Fake Lag", "Enable
Fake Lag")
--local menu_fakelag_triggers = Menu.FindVar("Aimbot", "Anti Aim", "Fake Lag",
"Triggers")
--VARS END--
--LUA MENU
Menu.Text("Anti-Aim", "Anti Bruteforce Customization")
local c_menu_anti_brute = Menu.Switch("Anti-Aim", "Anti Brute", false, "Will enable
Lua Script Anti-BruteForce!")
local c_menu_anti_brute_fov_slider = Menu.SliderFloat("Anti-Aim", "Anti Brute FOV",
175.0, 50.0, 250.0, "Limit FOV between bullet and your modelll (Recomended Default
Value)")
Menu.Text("Misc", "Miscellaneous")
local c_menu_kill_say = Menu.Switch("Misc", "Custom Kill Say", false, "Says
something on the chat once you kill someone (Words can be edited on the textbox
below!)!")
local c_menu_kill_say_words = Menu.TextBox("Misc", "Kill Say Words", 64, "Say
something...", "Says something on the chat once you kill someone (If Kill Say
checkbox is enabled!)!")
local c_menu_hurt_say = Menu.Switch("Misc", "Custom Hurt Say", false, "Says
something on the chat once you hurt someone (Words can be edited on the textbox
below!)!")
local c_menu_hurt_say_words = Menu.TextBox("Misc", "Hurt Say Words", 64, "Say
something...", "Says something on the chat once you hurt someone (If Hurt Say
checkbox is enabled!)!")
--LUA MENU
if (c_menu_anti_aim_helpers:GetBool()) then
if (c_menu_anti_aim_helpers_types:GetInt() == 0) then --Peek fake
menu_freestand_desync:SetInt(1)
else if (c_menu_anti_aim_helpers_types:GetInt() == 1) then --Peek real
menu_freestand_desync:SetInt(2)
end
end
end
end
if (c_menu_anti_aim_helpers_desync_mod:GetInt() == 2) then --Multiple
menu_fake_option:SetInt(Utils.RandomInt(2, 3))
menu_fake_options:SetInt(Utils.RandomInt(1, 2))
menu_left_limit:SetInt(Utils.RandomInt(35, 60))
menu_right_limit:SetInt(Utils.RandomInt(35, 60))
end
if (c_menu_anti_aim_helpers_desync_mod:GetInt() == 1) then --prefer low
delta
menu_fake_option:SetInt(1)
menu_freestand_desync:SetInt(2)
AntiAim.OverrideLimit(math.random(15, 15))
menu_left_limit:SetInt(math.random(15, 35))
menu_right_limit:SetInt(math.random(15, 35))
end
end
end
--AIMBOT
local safety_hitboxes = {}
local best_hitbox = {}
local best_damage = {}
local predict_ticks = 7
local force_off = false
local force_off_tick = 0
if true then
for i = 1, 64 do
best_hitbox[i] = -1
best_damage[i] = 0
end
end
end
end)
local lines = {}
local results = {}
function C_BaseEntity:m_iHealth()
return self:GetProp("DT_BasePlayer", "m_iHealth")
end
function C_BaseEntity:m_vecVelocity()
return self:GetProp("DT_BasePlayer", "m_vecVelocity")
end
local ffi_helpers = {
get_animstate_offset = function()
return 14612
end,
get_entity_address = function(entity_index)
local addr = GET_CLIENT_ENTITY_FN(ENTITY_LIST_POINTER, entity_index)
return addr
end
}
local original_goal_feet_yaw = {}
safety_hitboxes = {}
for i = 0,10 do
if c_menu_safepoint_hitboxes:GetBool(i) then
if i == 0 then table.insert( safety_hitboxes, 0 )
elseif i == 1 then table.insert( safety_hitboxes, 6 )
elseif i == 2 then table.insert( safety_hitboxes, 5 )
elseif i == 3 then table.insert( safety_hitboxes, 4 )
elseif i == 4 then table.insert( safety_hitboxes, 3 )
elseif i == 5 then table.insert( safety_hitboxes, 2 )
elseif i == 6 then
for i = 7,12 do
table.insert( safety_hitboxes, i )
end
elseif i == 7 then
for i = 13,18 do
table.insert( safety_hitboxes, i )
end
end
end
end
for i = 1,64 do
--UpdateClientSideAnims(ffi.cast("void***",
ffi_helpers.get_entity_address(entity:EntIndex())))
for k,v in pairs(safety_hitboxes) do
RageBot.ForceHitboxSafety(entity:EntIndex(), v)
end
local biggestdamage = 0
local health = entity:GetPlayer():m_iHealth()
local besthitboxfound = -1
for k,v in pairs(hitboxesused) do
local damage = Cheat.FireBullet(localplayer,
localplayer:GetEyePosition(), entity:GetPlayer():GetHitboxCenter(v))
if damage > biggestdamage then
biggestdamage = damage
besthitboxfound = v
end
best_hitbox[entity:EntIndex()] = besthitboxfound
best_damage[entity:EntIndex()] = biggestdamage
for i = 1, 18 do
RageBot.SetHitboxPriority(entity:EntIndex(), i, 1)
end
--peeking:handle()
end
function toint(n)
local s = tostring(n)
local i, j = s:find('%.')
if i then
return tonumber(s:sub(1, i-1))
else
return n
end
end
for i = 1,64 do
local entity = EntityList.GetClientEntity(i)
local nentity = entity
if entity then
entity = entity:GetPlayer()
end
if entity and entity:m_iHealth() > 0 and not entity:IsTeamMate() and not
entity:IsDormant() then
for k,v in pairs(hitboxesused) do
local color = Color.new(1,0,0,1)
local red = false
if best_hitbox[nentity:EntIndex()] == v then
color = c_menu_draw_only_priority_hitboxe:GetColor()
else
color = c_menu_hitboxes_color:GetColor()
red = true
end
if c_menu_draw_only_priority_hitboxe:GetBool() and not red then
if c_menu_circle_customization:GetInt() == 1 then
Render.Circle(Render.ScreenPosition(Vector.new(entity:GetHitboxCenter(v).x,
entity:GetHitboxCenter(v).y, entity:GetHitboxCenter(v).z)),
toint(7*c_menu_scale_circle:GetFloat()),
toint(58*c_menu_scale_circle:GetFloat()/4), color)
elseif c_menu_circle_customization:GetInt() == 0 then
Render.CircleFilled(Render.ScreenPosition(Vector.new(entity:GetHitboxCenter(v).x,
entity:GetHitboxCenter(v).y, entity:GetHitboxCenter(v).z)),
toint(7*c_menu_scale_circle:GetFloat()),
toint(58*c_menu_scale_circle:GetFloat()/4), color)
end
elseif not c_menu_draw_only_priority_hitboxe:GetBool() then
if c_menu_circle_customization:GetInt() == 1 then
Render.Circle(Render.ScreenPosition(Vector.new(entity:GetHitboxCenter(v).x,
entity:GetHitboxCenter(v).y, entity:GetHitboxCenter(v).z)),
toint(7*c_menu_scale_circle:GetFloat()),
toint(58*c_menu_scale_circle:GetFloat()/4), color)
elseif c_menu_circle_customization:GetInt() == 0 then
Render.CircleFilled(Render.ScreenPosition(Vector.new(entity:GetHitboxCenter(v).x,
entity:GetHitboxCenter(v).y, entity:GetHitboxCenter(v).z)),
toint(7*c_menu_scale_circle:GetFloat()),
toint(58*c_menu_scale_circle:GetFloat()/4), color)
end
end
end
end
end
end
--AIMBOT
if (c_menu_custom_body_lean:GetBool()) then
if (menu_invert_side:GetBool()) then
AntiAim.OverrideYawOffset(r_right)
else
AntiAim.OverrideYawOffset(r_left)
end
end
end
--PREDICTION CALLBACK FUNCTIONS
--EXPLOITS
local function instant_recharge()
if (c_menu_doubletap_instant_recharge:GetBool()) then
Exploits.ForceCharge()
end
end
if (c_menu_doubletap_clockcr:GetBool()) then
CVar.FindVar("cl_clock_correction"):SetInt(0)
CVar.FindVar("cl_clock_correction_adjustment_max_amount"):SetInt(450)
end
if (c_menu_doubletap_debug_mode:GetBool()) then
print("[DOUBLETAP] TICKS: MAX | PRESERVE: INSECURE | CORRECTION:
DISABLED ")
end
if (c_menu_doubletap_debug_mode:GetBool()) then
print("[DOUBLETAP] TICKS: MAX | PRESERVE: SECURE | CORRECTION: DISABLED ")
end
if (c_menu_doubletap_debug_mode:GetBool()) then
print("[DOUBLETAP] TICKS: 13 | PRESERVE: SAFETY | CORRECTION: ENABLED ")
end
else if (c_menu_doubletap_modes:GetInt() == 3) then --Sonic mode
local localplayer =
EntityList.GetClientEntity(EngineClient.GetLocalPlayer())
local getplayer = localplayer:GetPlayer()
local active_weapon = getplayer:GetActiveWeapon()
Exploits.OverrideDoubleTapSpeed(14)
CVar.FindVar("cl_clock_correction"):SetInt(0)
CVar.FindVar("cl_clock_correction_adjustment_max_amount"):SetInt(450)
if active_weapon:GetProp("DT_BaseAttributableItem",
"m_iItemDefinitionIndex") == 38 or active_weapon:GetProp("DT_BaseAttributableItem",
"m_iItemDefinitionIndex") == 11 then
if Menu.FindVar("Aimbot", "Ragebot", "Exploits", "Double
Tap"):GetBool() then Menu.FindVar("Aimbot", "Anti Aim", "Fake Lag", "Enable Fake
Lag"):SetBool(false) else Menu.FindVar("Aimbot", "Anti Aim", "Fake Lag", "Enable
Fake Lag"):SetBool(true) end
else
Menu.FindVar("Aimbot", "Anti Aim", "Fake Lag", "Enable Fake
Lag"):SetBool(true)
end
if (c_menu_doubletap_debug_mode:GetBool()) then
print("[DOUBLETAP] TICKS: SONIC | PRESERVE: -1 | CORRECTION: DISABLED ")
end
else
Menu.FindVar("Aimbot", "Anti Aim", "Fake Lag", "Enable Fake
Lag"):SetBool(true)
end
end
end
end
end
end
--EXPLOITS
--FAKELAG
adaptive_ticks = adaptive_ticks + 5;
wish_ticks = wish_ticks + 5;
local random1 = 0
local random2 = 0
local used = false
if used then
random1 = math.random(1, c_menu_fakelag_fluctuate_timing:GetFloat())
used = false
else
random1 = math.random(1, c_menu_fakelag_fluctuate_timing:GetFloat())
used = true
end
if random1 == 1 then
menu_fakelag_limit:SetInt(0)
else
menu_fakelag_limit:SetInt(15)
end
end
local last = 0
local state = true
local function leg_fucker()
local cur = GlobalVars.curtime
local local_player = EntityList.GetClientEntity(EngineClient.GetLocalPlayer())
local player = local_player:GetPlayer()
if (c_menu_exploits_legs:GetBool()) then
menu_leg_movement:SetInt(Utils.RandomInt(1, 2))
end
end
--VISUALS
if (menu_invert_side:GetBool()) then
Render.PolyFilled(c_menu_arrow_color:GetColor(), FPRxx, FPRyy, FPRzz)
end
if (not menu_invert_side:GetBool()) then
Render.PolyFilled(c_menu_arrow_color:GetColor(), FPLxx, FPLyy, FPLzz)
end
if menu_antiaim_manual:GetInt()==1 then
Render.PolyFilled(c_menu_arrow_color:GetColor(), BPx, BPy, BPz) --
backwards
elseif menu_antiaim_manual:GetInt()==2 then
Render.PolyFilled(c_menu_arrow_color:GetColor(), RPx, RPy, RPz) -- right
end
end
if (c_menu_arrows_type:GetInt() == 3 and c_menu_arrows:GetBool()) then
if (menu_invert_side:GetBool()) then
Render.CirclePart(Vector2.new(960.0, 541), 20.0, 58,
c_menu_arrow_color:GetColor(), math.rad(810.3), math.rad(630.3), 5.0)
end
if (not menu_invert_side:GetBool()) then
Render.CirclePart(Vector2.new(960.0, 541), 20.0, 58,
c_menu_arrow_color:GetColor(), math.rad(90), math.rad(270), 5.0)
end
end
cur_pos = pos_start
cur_pos1 = pos_start1
if (c_menu_arrows_type:GetInt() == 0) then
if c_menu_arrows:GetBool() and menu_invert_side:GetBool() then
arrow(")", c_menu_arrows:GetBool() )
end
if c_menu_arrows:GetBool() and not menu_invert_side:GetBool() then
arrow2("(", c_menu_arrows:GetBool() )
end
end
if (c_menu_arrows_type:GetInt() == 1) then
if c_menu_arrows:GetBool() and menu_invert_side:GetBool() then
arrow(">", c_menu_arrows:GetBool() )
end
if c_menu_arrows:GetBool() and not menu_invert_side:GetBool() then
arrow2("<", c_menu_arrows:GetBool() )
end
end
end
--VISUALS
--MISC
--MISC
--ANTIAIM
local function vec_distance(vec_one, vec_two)
end
return best_enemy
end
menu_left_limit:SetInt(c_menu_anti_brute_1stshot:GetInt())
menu_invert_side:SetBool(true)
left_side = true
if (c_menu_anti_brute_debug_mode:GetBool()) then
print("[ANTI-BRUTE] Angle overrided to (" ..
c_menu_anti_brute_1stshot:GetInt() .. ") [INFO: PASST 3RD SIDE | NEXT ANGLE = (" ..
c_menu_anti_brute_2ndshot:GetInt() ..") INVERTER:TRUE]" )
end
else if (miss_counter % 3 == 1) then --Logic 2
menu_right_limit:SetInt(c_menu_anti_brute_2ndshot:GetInt())
menu_invert_side:SetBool(false)
right_side = true
if (c_menu_anti_brute_debug_mode:GetBool()) then
print("[ANTI-BRUTE] Angle overrided to (" ..
c_menu_anti_brute_2ndshot:GetInt() .. ") [INFO: PASST 1ST SIDE | NEXT ANGLE = (" ..
c_menu_anti_brute_3rdshot:GetInt() ..") INVERTER:FALSE]" )
end
ideal_yaw = true
if (c_menu_anti_brute_debug_mode:GetBool()) then
print("[ANTI-BRUTE] Angle overrided to (" ..
c_menu_anti_brute_3rdshot:GetInt() .. ") [INFO: PASST 2ND SIDE | NEXT ANGLE = (" ..
c_menu_anti_brute_1stshot:GetInt() ..") INVERTER:TRUE]" )
end
end
end
end
end
end
end
end
--ANTIAIM
--IND
-------------------------------------------------------------FAKEDUCK
local function GetColorFromBool(val)
return val and clr_green or clr_red
end
-------------------------------------------------------------DOUBLETAP
local function dtchargeind(str, r,g,b)
Render.Text(str, cur_pos, Color.new(r,g,b),text_size, true)
cur_pos = cur_pos - pos_add
end
-------------------------------------------------------------------------------
if c_menu_text_indicators:GetBool() then
if Exploits.GetCharge() ~= 1 then
dt_charging = false
dtchargeind("DT", 255, 0,0)
else
dt_charging = true
dtchargeind("DT", 146 / 255, 255 / 255, 36 / 255, 0.9)
end
prefersafe("PREDICTION")
--IND
end
--CALLBACKS
local function draw()
local localplayer = EntityList.GetClientEntity(EngineClient.GetLocalPlayer())
if localplayer then
localplayer = localplayer:GetPlayer()
else
return
end
if (EngineClient.IsConnected()) then
if (c_menu_watermarker:GetBool()) then
watermarker()
end
end
if localplayer:m_iHealth() > 0 then
aimbot_draw()
indicators_visuals()
text_indicators()
if (c_menu_custom_impacts:GetBool()) then
draw_impacts()
end
end
end
local function pre_prediction(cmd)
air_stuck(cmd)
--aimbot(cmd)
instant_recharge()
fake_lag()
end
local function prediction()
body_lean()
end
local function createmove()
antiaim_helpers()
exploits_func()
leg_fucker()
end
local function events(e)
kill_say_function(e)
AA_Anti_Brute_Force(e)
impacts_events(e)
end
Cheat.RegisterCallback("draw", draw)
Cheat.RegisterCallback("pre_prediction", pre_prediction)
Cheat.RegisterCallback("prediction", prediction)
Cheat.RegisterCallback("createmove", createmove)
Cheat.RegisterCallback("events", events)
end
initlua()
--CALLBACKS