Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ((Config.bThirdperson) || Menu::Window.RageBotTab.AccuracyPositionAdjustment.GetState())
- {
- static bool rekt = false;
- if (!rekt)
- {
- ConVar* sv_cheats = Interfaces::CVar->FindVar("sv_cheats");
- SpoofedConvar* sv_cheats_spoofed = new SpoofedConvar(sv_cheats);
- sv_cheats_spoofed->SetInt(1);
- rekt = true;
- }
- }
- if (Config.bToggleMiscellaneous)
- {
- if (Config.iThirdpersonAngle == 0 && pLocal->IsAlive() && *(bool*)((DWORD)Interfaces::pInput + 0xAD))
- {
- *(Vector*)((DWORD)pLocal + 0x31D8) = LastAngleAA;
- }
- else if (Config.iThirdpersonAngle == 1 && pLocal->IsAlive() && *(bool*)((DWORD)Interfaces::pInput + 0xAD))
- {
- *(Vector*)((DWORD)pLocal + 0x31D8) = vecLastAngleAntiAimReal;
- }
- else if (Config.iThirdpersonAngle == 2 && pLocal->IsAlive() && *(bool*)((DWORD)Interfaces::pInput + 0xAD))
- {
- *(Vector*)((DWORD)pLocal + 0x31D8) = vecLowerBodyYawThirdPersonAngle;
- }
- static bool rekt1 = false;
- if (Config.bThirdperson && pLocal->IsAlive())
- {
- if (Config.iThirdpersonKey)
- {
- *(bool*)((DWORD)Interfaces::pInput + 0xAD) = false;
- *(float*)((DWORD)Interfaces::pInput + 0x31D8) = 0;
- if (GetKeyState(Config.iThirdpersonKey) && pLocal->IsAlive())
- {
- *(bool*)((DWORD)Interfaces::pInput + 0xAD) = true;
- *(float*)((DWORD)Interfaces::pInput + 0x31D8) = Config.fThirdpersonRange;
- }
- }
- }
- }
- if (!Config.bThirdperson || !Config.bToggleMiscellaneous)
- {
- *(bool*)((DWORD)Interfaces::pInput + 0xAD) = false;
- *(float*)((DWORD)Interfaces::pInput + 0x31D8) = 0;
- }
- static bool kek = false;
- if (Config.bThirdperson && pLocal->IsAlive() && Config.bToggleMiscellaneous)
- {
- if (!kek)
- {
- Interfaces::Engine->ClientCmd_Unrestricted("thirdperson");
- kek = true;
- }
- }
- else if (pLocal->IsAlive() == 0)
- {
- kek = false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement