Yes it will work, but it will be extremely glitchy and likely to crash after a short amount of time.
Hi, I was wondering if something like this would work. And if it wouldn't, what would prevent it from working:
Thank you in advance.Code:#include <Windows.h> #include <iostream> #include <d3d9.h> #define FlyHack 0x379377B8 #define GameStatus 0x3796392C bool Fly = false; DWORD * GameStatusAddy = (DWORD *) GameStatus; void TheHackLoop(){ while(true){ if(*(BYTE *) GameStatusAddy == 1){ DWORD * P = (DWORD *) FlyHack; // Check for toggle request if(GetAsyncKeyState(VK_CONTROL) && GetAsyncKeyState(0X4D)){ // Control and M Fly = !Fly; if(Fly){ // fly turned on Beep((DWORD) 528, (DWORD)500); Sleep(75); Beep((DWORD) 528, (DWORD)500); }else{ // fly turned off Beep((DWORD) 350, (DWORD)500); *(float *) P = -800.00; } } // check for fly request if(Fly){ // check for up or down long PreviousGravity = (LONG) P; if(Fly && GetAsyncKeyState(VK_ADD)){ // up. Gravity += 50; long NewGravity = PreviousGravity + 50; *(float *) P = (FLOAT) NewGravity; }else if(Fly && GetAsyncKeyState(VK_SUBTRACT)){ // Down. Gravity -= 50; long NewGravity = PreviousGravity - 50; *(float *) P = (FLOAT) NewGravity; } } } Sleep(75); } } void LoadUp(){ while(true){ if(IsGameReady()){ break; } Sleep(150); } TheHackLoop(); } BOOL IsGameReady(){ DWORD YeahOrNah = (DWORD)GetModuleHandleA("cshell.dll"); if(YeahOrNah){ // Loaded return TRUE; }else{ return FALSE; } } INT WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved) { DisableThreadLibraryCalls(hModule); if(dwReason == DLL_PROCESS_ATTACH) { CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)LoadUp,NULL,NULL,NULL); } return 1; }
Obviously the addresses need updated, but I wrote that about a week ago.
The old PTC method required a hooked function because they had a really simple _ReturnAddress() Check in the function to prevent calling from other modules..
This should work without a hook because your cahnging the variable directly
Progress with my game - "Disbanded"
- Fixed FPS lag on spawning entities due to the ent_preload buffer!
- Edit the AI code to get some better pathfinding
- Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
- Added a new silencer for ALL weapons. Also fixed the rotation bugs
- Added a ton of new weapons and the choice to choose a silencer for every weapon
- Created a simple AntiCheat, noobs will cry like hell xD
- The name will be Disbanded, the alpha starts on the 18th august 2014
Some new physics fun (Serversided, works on every client)
My new AI
https://www.youtube.com/watch?v=EMSB1GbBVl8
And for sure my 8 months old gameplay with 2 friends
https://www.youtube.com/watch?v=Na2kUdu4d_k
lilghost8631 (12-22-2013)
First of all I just watched the video you posted of your game so far. That looks pretty awesome.
Second I found some interesting stuff about SkelModelStencil, but I would love some help making sense of it. Would you be able to help by chance?
Anywho, thank you for the clarification.
is that fly hack ??
Anything can PM me. I'm from Malaysia.
Last edited by lilghost8631; 12-22-2013 at 05:56 PM.
@Flengo come on. You out of all people should know this will work. I tested it after reading this and it worked. It was very glitchy and i was instantly teleported way into the sky but it worked.
I Read All Of My PM's & VM'sIf you need help with anything, just let me know.
Staff Administrator Since 10.13.2019
Publicist Since 04.04.2015
Middleman Since 04.14.2014
Global Moderator Since 08.01.2013
Premium Since 05.29.2013
Minion+ Since 04.18.2013
Combat Arms Minion Since 12.26.2012
Contributor Since 11.16.2012
Member Since 05.11.2010
The fly was just a concept. The real goal here is chams which I think I just found the sig scan/pattern for (that was truly a hike). So, since I now (hopefully) have the pointer to the satellite chams, i should be able to just set the value to 1.0 and cham away.
@Skaterforeva1 off topic: since you have bud in your sig, did you ever get any of that trainwreck strain that was making its way through manassas, gainesville and bristow?
Last edited by lilghost8631; 12-22-2013 at 08:24 PM.
It will most likely crash shortely after time, you will need to detour and hook it for it to last a while.
/off topic
Nah I have been smoking some plants that my friend grows locally. I have around two pounds of sour d so I havent been buy any lately. I have been selling a lot though.