1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
I have function on 100ms timer.
void timer() {
if(GetAsyncKeyState(VK_LEFT)&1) {
// THERE ARE 2 ADDYS FOR CAM, NOT SURE WHICH CHANGES SO I DO BOTH
ReadProcessMemory(hand, (void*)0x4BB2E1AC, &xRock0,4,&bytes);
ReadProcessMemory(hand, (void*)0x4BF3F75C, &xRock1,4,&bytes);
xRock0[4]=xRock0[4]-subRock;
xRock1[4]=xRock1[4]-subRock;
WriteProcessMemory(hand,(void*)0x4BB2E1AC,&xRock0,4,&bytes);
WriteProcessMemory(hand, (void*)0x4BF3F75C, &xRock1,4,&bytes);
}
if(GetAsyncKeyState(VK_RIGHT)&1) {
ReadProcessMemory(hand, (void*)0x4BB2E1AC, &xRock0,4,&bytes);
ReadProcessMemory(hand, (void*)0x4BF3F75C, &xRock1,4,&bytes);
xRock0[4]=xRock0[4]+subRock;
xRock1[4]=xRock1[4]+subRock;
WriteProcessMemory(hand,(void*)0x4BB2E1AC,&xRock0,4,&bytes);
WriteProcessMemory(hand, (void*)0x4BF3F75C, &xRock1,4,&bytes);
} if(GetAsyncKeyState(VK_UP)&1) {
ReadProcessMemory(hand, (void*)0x4BB2E1B0, &yRock0,4,&bytes);
ReadProcessMemory(hand, (void*)0x4BF3F760, &yRock1,4,&bytes);
yRock0[4]=yRock0[4]+subRock;
yRock1[4]=yRock1[4]+subRock;
WriteProcessMemory(hand,(void*)0x4BB2E1B0,&yRock0,4,&bytes);
WriteProcessMemory(hand, (void*)0x4BF3F760, &yRock1,4,&bytes);
} if(GetAsyncKeyState(VK_DOWN)&1) {
ReadProcessMemory(hand, (void*)0x4BB2E1B0, &yRock0,4,&bytes);
ReadProcessMemory(hand, (void*)0x4BF3F760, &yRock1,4,&bytes);
yRock0[4]=yRock0[4]-subRock;
yRock1[4]=yRock1[4]-subRock;
WriteProcessMemory(hand,(void*)0x4BB2E1B0,&yRock0,4,&bytes);
WriteProcessMemory(hand, (void*)0x4BF3F760, &yRock1,4,&bytes);
}
}
|