| View previous topic :: View next topic |
| Author |
Message |
vergilganesh Expert Cheater
Reputation: 0
Joined: 01 Jul 2013 Posts: 134 Location: India
|
Posted: Mon Jul 01, 2013 9:00 am Post subject: ONE HIT KILL HOW TO DO THAT |
|
|
| Can anybody tell me a brief explanation of how to do one hit kill cheat when the health of enemy and player is controlled by the same instruction?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Mon Jul 01, 2013 9:10 am Post subject: |
|
|
Same way as you do a godmode cheat using that instruction
Find out if the object who's health is being decreased belongs to the enemy or player (e.g by comparing if the address is the player health address you get from the rendering of your health status, or just a simple teamid numbers)
and if it is the enemy, set the health to 0, 0.00001, or 1 (depending on how the game deals with health)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
vergilganesh Expert Cheater
Reputation: 0
Joined: 01 Jul 2013 Posts: 134 Location: India
|
Posted: Mon Jul 01, 2013 9:53 am Post subject: |
|
|
| I cant understand
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Jul 01, 2013 1:07 pm Post subject: |
|
|
Look at member Geri's tutorials (in his signature), for dissecting data structures for determining player ID.
You have to separate your health address from the enemy health addresses, so that the code that you write for one-hit kills does not apply to your hero's health. You can do this by using the dissect data structures feature, and finding a unique ID (or value) that only applies to your hero character. When you find it, you can write your script so that if the value at that particular offset is equal to your special ID value, then the script will jump over the one-hit kill code.
|
|
| Back to top |
|
 |
vergilganesh Expert Cheater
Reputation: 0
Joined: 01 Jul 2013 Posts: 134 Location: India
|
Posted: Tue Jul 02, 2013 6:38 am Post subject: |
|
|
yes i read Geri's tutorials., in dissecting data structures how do i find my players id? i got lot of values like in the picture. After grouping what next?
| Description: |
|
| Filesize: |
91.64 KB |
| Viewed: |
7024 Time(s) |

|
| Description: |
|
| Filesize: |
488.67 KB |
| Viewed: |
7024 Time(s) |

|
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Jul 02, 2013 2:48 pm Post subject: |
|
|
You need to inject code at that instruction. From the drop down window in memory viewer, go to 'tools' and click on 'auto assemble'. In the auto assemble window, go to 'template' and select 'cheat table framework code'. Go to 'template' again, and select 'code injection'.
Copy everything from that window, and paste it here in code brackets. I will explain to you what needs to be done in order to perform a compare at this location...based on your structures.
|
|
| Back to top |
|
 |
vergilganesh Expert Cheater
Reputation: 0
Joined: 01 Jul 2013 Posts: 134 Location: India
|
Posted: Wed Jul 03, 2013 3:40 am Post subject: |
|
|
I think i have found the differnce between player and enemy. the offset A0 have the health of all units and A4 have some value which is vary from 5 to 95 for enemy( depends upon the power of enemy ) and player have 100. see the attachment. it is the only difference that doesnt change at all time. now the code should be injected where and how?
| Description: |
|
| Filesize: |
78.84 KB |
| Viewed: |
6960 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Wed Jul 03, 2013 6:37 am Post subject: |
|
|
(you could also check 2c and check if it's 128 or not)
at the code that accesses health (fstp dword [ebp+000000a0] do a code injection
so something like this:
| Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(exit)
newmem:
fstp dword ptr [ebp+000000A0] //fstp is anoying as it pops from tle floating point stack, so just execute it and override it later)
cmp [ebp+a4],(float)100 //check if max health is 100
je exit //if so, it's probably the player, so ignore (alternatively, set current health to max health for godmode)
//still here, so it's an enemy
mov [ebp+a0],(float)0.0001 //write the float value 0.0001 to it's health
exit:
jmp returnhere
"shank2.exe"+EDD01:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"shank2.exe"+EDD01:
fstp dword ptr [ebp+000000A0]
|
note though, that if an enemy has a max health of 100 it won't work
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
vergilganesh Expert Cheater
Reputation: 0
Joined: 01 Jul 2013 Posts: 134 Location: India
|
Posted: Wed Jul 03, 2013 9:38 am Post subject: |
|
|
thanks buddy:-) the code really works for me. i have done it.
|
|
| Back to top |
|
 |
|