Video Tutorial Assault Cube Fly Hack

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Rake

I'm not your friend
Administrator
Jan 21, 2014
12,497
78,998
2,417
How long you been coding/hacking?
4 Years
Coding Language
C++
Someone requested a tutorial so I made one up real quick:




Basically your new coordinates are calculated based on your movement input and gravity/velocity calculations. There is an IF statement that checks if you're in spectator mode and if TRUE, it doesn't apply gravity/velocity calculations to your new coordinates. Normally the game code creates this bool on the stack "bIsSpectator" and later it assigns the default value of false to it. This hack changes that false to true, so your player moves like a spectator camera.


C++:
if (GetAsyncKeyState(VK_F7))
{

    DWORD old_protect;
    aBot.bFlyHackStatus = !aBot.bFlyHackStatus;
    if (aBot.bFlyHackStatus)
    {
        VirtualProtect((void*)0x45ADD8, 1, PAGE_EXECUTE_READWRITE, &old_protect);
        memcpy((void*)0x45ADD8, (PBYTE)("\x01"), 1);
        VirtualProtect((void*)0x45ADD8, 1, old_protect, &old_protect);
        menu.updateMenu(menu.sFlyHackStatus, "ON");
    }

    else
    {
        //restore
        VirtualProtect((void*)0x45ADD8, 1, PAGE_EXECUTE_READWRITE, &old_protect);
        memcpy((void*)0x45ADD8, (PBYTE)("\x00"), 1);
        VirtualProtect((void*)0x45ADD8, 1, old_protect, &old_protect);
        menu.updateMenu(menu.sFlyHackStatus, "OFF");
    }
}
I ended up making a video about it:
 
Last edited:

averyhugemen

Newbie
Dank Tier Donator
Full Member
Aug 16, 2016
8
2,158
0
Also you can change iPlayerState (offset 0x338 in Player class) to 5
C++:
enum { CS_ALIVE = 0, CS_DEAD, CS_SPAWNING, CS_LAGGED, CS_EDITING, CS_SPECTATE };
 
  • Like
Reactions: Rake

Rake

I'm not your friend
Administrator
Jan 21, 2014
12,497
78,998
2,417
Also you can change iPlayerState (offset 0x338 in Player class) to 5
C++:
enum { CS_ALIVE = 0, CS_DEAD, CS_SPAWNING, CS_LAGGED, CS_EDITING, CS_SPECTATE };
can you shoot guns if you do this tho?
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods