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

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
simbim
Newbie cheater
Reputation: 0

Joined: 14 Jun 2016
Posts: 21

PostPosted: Tue Jun 14, 2016 9:46 pm    Post subject: One hit kill Reply with quote

Hello!
Starting my first question trying to make a one hit kill.
First I did a find out what adress this instruction access at
Code:
fstp dword ptr [edi+00000154]


I got two player and lots of enemies health.
All of the pointers using same offset 0154.

See picture

Now My question is how to do so that the player have god mode and enemies has 1 health.



offsets.jpg
 Description:
 Filesize:  326.7 KB
 Viewed:  18715 Time(s)

offsets.jpg


Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Wed Jun 15, 2016 3:13 am    Post subject: Reply with quote

Find a valid identifiert between human players and AI/enemy players. With default dissect data settings you should look for purple lines.

And if you don't understand what you're supposed to do or how to work with the results you may find, do the last step of CE's tutorial. It's basically the same.
Back to top
View user's profile Send private message
simbim
Newbie cheater
Reputation: 0

Joined: 14 Jun 2016
Posts: 21

PostPosted: Wed Jun 15, 2016 10:58 am    Post subject: Reply with quote

Thanks!
I have checked every offset and I only find one which should be the right one if Im not wrong. But it also gives the enemy god mod too. Mabey something is missing in my code

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [edi+000000D0],00010100
jne originalcode
fadd dword ptr [edi+00000154]
jmp exit

originalcode:
fstp dword ptr [edi+00000154]

exit:
jmp returnhere

2F1D944A:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
2F1D944A:
fstp dword ptr [edi+00000154]
//Alt: db D9 9F 54 01 00 00



offsets.jpg
 Description:
 Filesize:  478.38 KB
 Viewed:  18657 Time(s)

offsets.jpg


Back to top
View user's profile Send private message
Matze500
Expert Cheater
Reputation: 8

Joined: 25 Jan 2012
Posts: 241
Location: Germany

PostPosted: Wed Jun 15, 2016 11:03 am    Post subject: Reply with quote

Hi

Is edi 3DEBC660 or is edi+154 3DEBC660 ?

if the first is true you need to use

Code:
cmp [edi+224],00010100


Greets Matze

_________________
Back to top
View user's profile Send private message
simbim
Newbie cheater
Reputation: 0

Joined: 14 Jun 2016
Posts: 21

PostPosted: Wed Jun 15, 2016 11:17 am    Post subject: Reply with quote

Thanks Matze500 That one did not have an effect. I found one at offset 214. Now I have godmod and enemy take damage but I still miss one hit kill. Whats missing in my code?
Back to top
View user's profile Send private message
Matze500
Expert Cheater
Reputation: 8

Joined: 25 Jan 2012
Posts: 241
Location: Germany

PostPosted: Wed Jun 15, 2016 12:13 pm    Post subject: Reply with quote

Hi, you need to decrease the enemys health to zero instead of calling the originalcode.


If the function is called on hit:
Code:

mov [edi+154],(float)0
fstp dword ptr [edi+00000154]


If the function is called permanently
Code:
enemy:
cmp [edi+154],(float)1
je originalcode
mov [edi+154],(float)1


Greets Matze

_________________
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Wed Jun 15, 2016 12:47 pm    Post subject: Reply with quote

I typically set the enemy HP to 1 in games just in case there is a boss battle that you are supposed to lose or storyline triggers at certain HP markers, etc.

Code:
Enemy:
  cmp dword ptr [EnemyHP], (float)1
  jg SettoOne
  //run the default code
  jmp return
SettoOne:
  mov [EnemyHP], (float)1
  jmp return


This is entirely a personal preference to prevent breaking the game (after possibly not saving in the last 8 hours).
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Thu Jun 16, 2016 3:04 am    Post subject: Reply with quote

Also personally I'd take only one byte at "edi+224" as the identifier, which would then be "00" for you (human players) and "01" for AI players.
Back to top
View user's profile Send private message
simbim
Newbie cheater
Reputation: 0

Joined: 14 Jun 2016
Posts: 21

PostPosted: Sat Jun 18, 2016 7:04 pm    Post subject: Reply with quote

Thank you guys. What ever I tried to do with that bas adress eaither it made the enemy one hit kill and me godmod or opposite. Ijust did what access and found another instruction so I created godmode in that one and its working perfect now.

Next thing I want to learn is how to make movement speed but Ill make a new thread. Just wanted to say thanks for guiding me Smile
Back to top
View user's profile Send private message
finnegan waking up
How do I cheat?
Reputation: 13

Joined: 05 Aug 2014
Posts: 0

PostPosted: Mon Jun 20, 2016 6:15 pm    Post subject: Reply with quote

speed hack would be great if you could apply it to routines in processes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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