Hey guys,
I have some experience in java and I'm trying to understand c++.
But there are some basic things that I don't understand yet, and I'm hoping you guys could help me out here.
the * is a pointer, so what I understand a addresses in warrock (0x0000000) is the address for a value, right?
So what the hacks do is change some values in warrock through accessing the pointer addresses.
Code:
#define Adr_PlayerPTR 0x00000000 // This is just the address value
DWORD dwPlayerPtr = *(DWORD*)Adr_PlayerPTR; // Now we made it a actual pointer
Now, what I don't understand what does *(DWORD*) mean?
What I understand how you create a pointer is like:
Code:
DWORD *dwPlayerPtr = Adr_PlayerPTR; // dwPlayerPtr is now pointing to the location of the value
Does this the same or am I totally doing it wrong?
Now something else, I've seen people using:
Code:
*(float*)(dwPlayerPtr + Ofs_Z) = 1000;
This is superjump?
Once again, the *(DWORD*) but now as a float. ..Basically why?