Hi everyone
First of all I hope this isn't double posting, because I posted the same question somewhere else before but didn't get any replies let alone an answer to my question
I admit that I didn't wait very long ( 1.5 days) before posting this the reason for that is that I'm stuck in the process of making my hack and I really, really, really want to move on
So here it goes:
I have an addy which I want to use for testing and developing further hacks
0x377502E8 << Credits go to: vingadormaster, for finding this addy (I think, at least he posted it first)
So now I Made a test dll, to see if it injects properly, which it did
then I made the part that changed the value:
Code:
#define ADR_KILLCAMCAEU 0x377502E8
BOOL t = 0;
void patch(){
HANDLE ca = GetCurrentProcess();
if(GetAsyncKeyState(VK_INSERT)) {
Sleep(500);
t = !t;
int s = sizeof(t);
if( WriteProcessMemory(ca, (LPVOID*)(DWORD) ADR_KILLCAMCAEU ,(void*) t, s, NULL) == 0)
Sleep(500);
}
I have tested this, and it stil inects properly but nothing happens, (this code should turn the killcam on or off on my computer)
What am I doing wrong? similar code worked on an other game with no protection or whatsoever so do I need a bypas or something like that or is my code just wrong?
if it is, can somone please show me my mistakes and point me in the right derection?
-SCHiM