Solved Infinite health on multiple objects

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

KISKE

Game Developer
Meme Tier VIP
Fleep Tier Donator
Jul 27, 2016
168
3,938
16
Hi everyone,
I'm trying to set infinite health on all my units in Age of Empires II.

The problem is that every unit has his own health address.
So, what is the best approach in this scenario when I have too many units (75+) and I want to all of them have infinite health.


Thanks in advance.
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,149
78,998
2,395
Does every unit have a different health offset? Or all the same health offset?

If they have the same health offset you would:
find the "Entity list" aka all the unit objects in the game via, and this would give you the address of all the units, then you would add the offset and set it to 9999 or whatever continuously.

You could also find the instruction that reduces their health and NOP it or modify it someway.
https://guidedhacking.com/showthrea...How-To-Hack-Any-Game-1-10-Difficulty-Part-1-2

You could also hook this instruction/function and make it NOT reduce the health only when the unit is from your faction/team
https://guidedhacking.com/showthread.php?7930-C-Detour-Hooking-Function-Tutorial-for-Game-Hacking

You could also, a bit more complicated is probably hook the virtual function that decreases health if all the objects with health are derived from the same class

If all the units have different health offsets then you have a bit more work to do
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Similar threads

Community Mods