View previous topic :: View next topic |
Author |
Message |
oshietekudasai How do I cheat?
Reputation: 0
Joined: 04 Jul 2015 Posts: 7
|
Posted: Thu Sep 17, 2015 10:48 am Post subject: Help with Damage Meter |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Sep 17, 2015 1:49 pm Post subject: |
|
|
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 |
|
 |
vng21092 Grandmaster Cheater
Reputation: 15
Joined: 05 Apr 2013 Posts: 644
|
Posted: Thu Sep 17, 2015 6:55 pm Post subject: |
|
|
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 |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Sep 17, 2015 9:44 pm Post subject: |
|
|
No, damage per second is the total damage divided by the number of seconds that have elapsed.
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 |
|
 |
|