Source Code CPosition and more...

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

PeRcEpTioN

Newbie
Feb 16, 2015
4
84
0
C++:
//Generated using ReClass 2013 Mod by CypherPresents

class CVec;

class CVec
{
public:
	char Unknown[52]; //0x0000 
	float X; //0x0034 
	float Z; //0x0038 
	float Y; //0x003C 
	float Yaw; //0x0040 
	float Pitch; //0x0044 

	DWORD* Singleton()
	{
		return (DWORD*)(0x34a440);
	}

};//Size=0x0048



CVec* g_pVec = (CVec*)CVec::Singleton();
//or
CVec::Singleton()...
Just did a really little reversal on the Vectors or floats for positions and angles and found out this stuff for my aimbot.
Btw. I removed the name of the author of the ReClass Mod because maybe his name will bring some members to other forums
which is advertising for other gamehacking forums, so just to be sure.
 
Last edited:

PeRcEpTioN

Newbie
Feb 16, 2015
4
84
0
Thanks for sharing :)
Also made a little how-to for people who are currently getting into game hacking / memory editing:

C++:
// dllmain.cpp : Definiert den Einstiegspunkt für die DLL-Anwendung.
#include "stdafx.h"

// first we define our class so the compiler knows the relative offsets to our base pointer.
// and we create a singleton class to initialize instances of our class to use our recently found offsets with reclass or the cheat engine dissect data structures function.
class CVec
{
public:
	char Unknown[52]; //0x0000 
	float X; //0x0034 
	float Z; //0x0038 
	float Y; //0x003C 
	float Yaw; //0x0040 
	float Pitch; //0x0044 

	static CVec* Singleton()
	{
		return *(CVec**)(0x509b74);
	}

};//Size=0x0048


// we are creating a mainthread where we can work independet of our dllmain performance.
bool MainThread()
{
        // here we are declaring and defining an instance of our class and we initialize it with a pointer.
	CVec* g_pVec = (CVec*)CVec::Singleton();
        
        // here we check if the pointer returned by singleton() is not zero, and so not usable
	if (!g_pVec)
	{  
                // "log" our error to know why it doesn't work when the case would appear.
		return false;
		MessageBoxA(NULL, "CVec instance was not properly initialized!", "Error", NULL);
	}

	// testing purposes
        // here we are changing some values of the offsets of our class to test if we reversed right and if everything is working.
	g_pVec->Pitch = (float)90;
	g_pVec->Yaw   = (float)90;
	g_pVec->Y     = (float)20;
}

// this is our dllmain where the windows loader starts(indirect) to execute the asm lines.
BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)MainThread, NULL, NULL, NULL);
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		break;
	}
	return TRUE;
}

EDIT: oops.. I failed the singleton function... however here is the right one:


C++:
	static CVec* Singleton()
	{
		return *(CVec**)(0x509b74);
	}
 
Last edited:
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