Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "SkinChanger.h"
- #include "Resolver.h"
- #include "HookIncludes.h"
- #include "GloveChanger.h"
- #include "LagComp.h"
- typedef void(__stdcall *fsn_t)(ClientFrameStage_t);
- void __stdcall hkFrameStageNotify(ClientFrameStage_t curStage)
- {
- static auto ofunc = hooks::client.get_original<fsn_t>(36);
- if (g_Engine->IsConnected() && g_Engine->IsInGame())
- {
- if (curStage == FRAME_RENDER_START)
- {
- auto pLocal = g_EntityList->GetClientEntity(g_Engine->GetLocalPlayer());
- auto dwDeadFlag = NetVarManager->GetOffset("DT_CSPlayer", "deadflag"); // int
- if ((Menu::Window.MiscTab.OtherAimbotDebug.GetState()))
- {
- static bool debug = false;
- if (!debug)
- {
- ConVar* sv_cheats = g_CVar->FindVar("sv_cheats");
- SpoofedConvar* sv_cheats_spoofed = new SpoofedConvar(sv_cheats);
- sv_cheats_spoofed->SetInt(1);
- debug = true;
- }
- }
- static bool debug = false;
- if (Menu::Window.MiscTab.OtherAimbotDebug.GetState() && pLocal->IsAlive())
- {
- if (!debug)
- {
- g_Engine->ClientCmd_Unrestricted("net_fakeloss 3");
- g_Engine->ClientCmd_Unrestricted("net_fakelag 123");
- g_Engine->ClientCmd_Unrestricted("net_fakejitter 53535353");
- debug = true;
- }
- }
- else if (!Menu::Window.MiscTab.OtherAimbotDebug.GetState() && pLocal->IsAlive())
- {
- debug = false;
- }
- static bool debug1 = false;
- if (!Menu::Window.MiscTab.OtherAimbotDebug.GetState() && pLocal->IsAlive())
- {
- if (!debug1)
- {
- g_Engine->ClientCmd_Unrestricted("net_fakeloss 0");
- g_Engine->ClientCmd_Unrestricted("net_fakelag 0");
- g_Engine->ClientCmd_Unrestricted("net_fakejitter 0");
- debug1 = true;
- }
- }
- else if (Menu::Window.MiscTab.OtherAimbotDebug.GetState())
- {
- debug1 = false;
- }
- if (pLocal)
- {
- if (pLocal->IsAlive() && g_Input->m_fCameraInThirdPerson)
- {
- *reinterpret_cast<Vector*>(reinterpret_cast<DWORD>(pLocal) + dwDeadFlag + 4) = qLastTickAngles;
- }
- }
- }
- }
- ofunc(curStage);
- if (curStage == FRAME_NET_UPDATE_POSTDATAUPDATE_START) {
- if(g_Options.Ragebot.Resolver) Resolver3();
- if (g_Options.Skinchanger.Enabled)
- {
- GloveChanger();
- SkinChanger();
- }
- backtracking->Update(g_Globals->tickcount);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement