atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Wed Jun 26, 2019 11:18 am Post subject: |
|
|
Yes, stuff like this is entirely possible. You need to find a few pieces of data and functions in the game as well as the ability to tell things apart if the functions for things like taking damage/dying are shared between the player and other entities.
You'll need to find:
- Your player information. (Health, Max Health, id of some sort or similar.)
- The function used to take damage to track when things die. (Or a similar function if the game uses something to specifically mark something as dead from being killed.)
Once you have that data you can create a code cave in the function that handles the damage/death stuff. Check if the person dying is you or not, if it's not you, then in the cave add 1 to your players max health address.
_________________
- Retired. |
|