|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Smanettone83 Expert Cheater Reputation: 3
Joined: 21 Feb 2011 Posts: 146 Location: Italia
|
Posted: Fri Mar 30, 2012 9:03 am Post subject: Question about God Mode and One Hit Kill |
|
|
hi i've found an ID player in shared health routine...
i've write this code for make God Mode
Code: |
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [ebp+10],#10 //if it is my player ID
jne originalcode // if not jmp to originalcode
mov [ebp+00000624],(float)999 //set my health to 999
originalcode:
movss xmm0,[ebp+00000624]
|
for one hit kill this code:
Code: |
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [ebp+10],#10 // if my player ID...
je originalcode // jmp if is equal to originalcode
mov [ebp+00000624],(float)0 // set health of enemy to 0
originalcode:
movss xmm0,[ebp+00000624]
|
i can't active it togheter because there is a conflict between the two codes.... How can i active these codes without problem? I hope you understand. _________________
|
|
Back to top |
|
|
jimmylarry How do I cheat? Reputation: 0
Joined: 30 Mar 2012 Posts: 1
|
Posted: Fri Mar 30, 2012 9:12 am Post subject: |
|
|
No doubt your site is amazing and I really like it. Nice writing, you are doing great effort, your way of writing is unique. Love this site. |
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8517 Location: 127.0.0.1
|
Posted: Fri Mar 30, 2012 12:43 pm Post subject: |
|
|
Something like this:
Code: |
newmem:
cmp [ebp+10], #10
jne enemy
mov [ebp+0624], (float)999
jmp originalcode
enemy:
mov [ebp+0624], (float)0
originalcode:
movss xmm0, [ebp+0624]
|
_________________
- Retired. |
|
Back to top |
|
|
Smanettone83 Expert Cheater Reputation: 3
Joined: 21 Feb 2011 Posts: 146 Location: Italia
|
Posted: Fri Mar 30, 2012 1:38 pm Post subject: |
|
|
Wiccaan wrote: | Something like this:
Code: |
newmem:
cmp [ebp+10], #10
jne enemy
mov [ebp+0624], (float)999
jmp originalcode
enemy:
mov [ebp+0624], (float)0
originalcode:
movss xmm0, [ebp+0624]
|
|
Thanks. Yes it work... but i mean how can i use the two cheats in two different hotkey (like F1 and F2) without creating conflicts...
example
F1 = God Mode: my player is invincible but enemies not.
F2 = One Hit Kill: my player isn't invincible but enemies die with one hit
F1 + F2 = My player is invincible and enemies die with one hit.
I hope you understand _________________
|
|
Back to top |
|
|
Corruptor Advanced Cheater Reputation: 3
Joined: 10 Aug 2011 Posts: 82
|
Posted: Sat Mar 31, 2012 11:05 am Post subject: |
|
|
it may be not exactly want you want since you need some kind of "mastercode", but you could try using globalalloc and threads to do that, like this:
God mode cheat setup:
Code: | [ENABLE]
fullaccess(00400500,4)
alloc(mycode,2048)
CreateThread(mycode) //a new thread that will be executed
GLOBALALLOC(gamemodes, 40) //alloc some memory (we surely gonna get way more anyways)
mycode:
mov byte ptr [gamemodes], 1 //writes a 1 into it that will be looked at in the main script
ret
dealloc(mycode)
[DISABLE]
fullaccess(00400500,4)
alloc(mycode,2048)
CreateThread(mycode)
GLOBALALLOC(gamemodes, 40)
mycode:
mov byte ptr [gamemodes],0 //writes 0 into it again
ret
dealloc(mycode) |
one hit cheat setup:
Code: | [ENABLE]
fullaccess(00400500,4)
alloc(mycode,2048)
CreateThread(mycode)
GLOBALALLOC(gamemodes, 40)
mycode:
mov byte ptr [gamemodes+1],1 //same, just one byte behind
ret
dealloc(mycode)
[DISABLE]
fullaccess(00400500,4)
alloc(mycode,2048)
CreateThread(mycode)
GLOBALALLOC(gamemodes, 40)
mycode:
mov byte ptr [gamemodes+1],0
ret
dealloc(mycode) |
Those two "cheats" will write a 1 into a memory if their activated and 0 if their disabled
and the main script that has to be activated all the time:
Code: | newmem:
cmp byte ptr [gamemodes],0 //look into the global memory
je skipgodmode //if its 0, godmode is off, thus we skip it
godmode:
cmp [ebp+10],#10
jne skipgodmode //another way to skip godmode: its not your player id
mov [ebp+00000624],(float)999
skipgodmode:
cmp byte ptr [gamemodes+1],0 //this time at +1 asking for the 1hitkill
je originialcode //skip if 0
onehitkill:
cmp [ebp+10],#10
je originalcode //this time we skip if it IS your player id since we dont want you to die
mov [ebp+00000624],(float)0
originalcode:
movss xmm0,[ebp+00000624] |
Of corse, on this way you have to enable the "main script" all the time, but if you do so, activating and deactivating the other 2 scripts should exactly do what you want. (also note that there may be some mistakes in those scripts, i just wrote them down outa my mind) |
|
Back to top |
|
|
Smanettone83 Expert Cheater Reputation: 3
Joined: 21 Feb 2011 Posts: 146 Location: Italia
|
Posted: Mon Apr 02, 2012 8:36 am Post subject: |
|
|
Thanks now i'm tryng it =) _________________
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
'attach'][$_attach_i]['cat_swf'][$_cat_swf_i]['HEIGHT'] : '') , '">
';
echo '
';
echo '
';
echo '
';
echo '
';
echo '
';
echo '
';
echo '
';
echo '
';
echo '
';
echo '
';
echo ' |
';
echo '
';
echo '