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 


Help with Damage Meter

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
oshietekudasai
How do I cheat?
Reputation: 0

Joined: 04 Jul 2015
Posts: 7

PostPosted: Thu Sep 17, 2015 10:48 am    Post subject: Help with Damage Meter Reply with quote

I'm trying to create a meter in a co-op game to see how much damage per second each of us are doing. Unfortunately, I just can't wrap my head around how to achieve this. I've found a function that updates the health of every unit in the map, but this function constantly writes to every health address--not just when something changes. This is all I have gotten so far, so I could use some advice on how to approach something like this. I'm hoping to be able to trace back the source of the damage, but I'm quite lost.

Thank you very much!
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Sep 17, 2015 1:49 pm    Post subject: Reply with quote

Some options you have:

1. Continue with the function you have found. If you go this route you are going to have to record every address being written to with an id of some sort to determine differences in health. So each time it is written to, you can check back to a stored value, compare them, and find out if there is a change and handle it accordingly.

2. Look for another function. Such as the damage function rather then the update health function. If the damage function is shared, you could have the ability to determine who caused the damage and who it is being caused to. Which should help determine specifically who did that damage.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
vng21092
Grandmaster Cheater
Reputation: 15

Joined: 05 Apr 2013
Posts: 644

PostPosted: Thu Sep 17, 2015 6:55 pm    Post subject: Reply with quote

Wait... what do you mean damage PER second? I mean, you find out how much damage you deal in ONE shot, and then figure out how many times you can strike in a second, and just multiply the two no? I mean if the game has splash damage then the number wouldn't be constant anyway.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Sep 17, 2015 9:44 pm    Post subject: Reply with quote

No, damage per second is the total damage divided by the number of seconds that have elapsed. Smile

I would choose option 2 from atm0s.
Use the current instruction you have to get a monster's health address.
Then find out what writes to that address when they take damage.
Hopefully this new instruction is not used when the monster is healing.
That same instruction should effect all monsters (maybe even players).
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 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