Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


ONE HIT KILL HOW TO DO THAT

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
vergilganesh
Expert Cheater
Reputation: 0

Joined: 01 Jul 2013
Posts: 134
Location: India

PostPosted: Mon Jul 01, 2013 9:00 am    Post subject: ONE HIT KILL HOW TO DO THAT Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25831
Location: The netherlands

PostPosted: Mon Jul 01, 2013 9:10 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
vergilganesh
Expert Cheater
Reputation: 0

Joined: 01 Jul 2013
Posts: 134
Location: India

PostPosted: Mon Jul 01, 2013 9:53 am    Post subject: Reply with quote

I cant understand
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Jul 01, 2013 1:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
vergilganesh
Expert Cheater
Reputation: 0

Joined: 01 Jul 2013
Posts: 134
Location: India

PostPosted: Tue Jul 02, 2013 6:38 am    Post subject: Reply with quote

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?


PHOTO2.jpg
 Description:
 Filesize:  91.64 KB
 Viewed:  7031 Time(s)

PHOTO2.jpg



PHOTO1.jpg
 Description:
 Filesize:  488.67 KB
 Viewed:  7031 Time(s)

PHOTO1.jpg


Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Jul 02, 2013 2:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
vergilganesh
Expert Cheater
Reputation: 0

Joined: 01 Jul 2013
Posts: 134
Location: India

PostPosted: Wed Jul 03, 2013 3:40 am    Post subject: Reply with quote

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?


PHOTO3.jpg
 Description:
 Filesize:  78.84 KB
 Viewed:  6967 Time(s)

PHOTO3.jpg


Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25831
Location: The netherlands

PostPosted: Wed Jul 03, 2013 6:37 am    Post subject: Reply with quote

(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
View user's profile Send private message MSN Messenger
vergilganesh
Expert Cheater
Reputation: 0

Joined: 01 Jul 2013
Posts: 134
Location: India

PostPosted: Wed Jul 03, 2013 9:38 am    Post subject: Reply with quote

thanks buddy:-) the code really works for me. i have done it. Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites