Page 1 of 1

Increase gang members health during mission

Posted: 20 Nov 2017, 17:20
by Master15
Is it possible to increase health for guard that follows the player during missions?

For example mission: Gang Car Bang [redneck]

Re: Increase gang members health during mision

Posted: 21 Nov 2017, 08:25
by elypter
you can do it the same way as with your other question, just increase the value

Re: Increase gang members health during mision

Posted: 21 Nov 2017, 21:57
by Master15
elypter wrote:you can do it the same way as with your other question, just increase the value
How do i find value for guards -> cheat engine?

Re: Increase gang members health during mission

Posted: 22 Nov 2017, 00:12
by Sektor
I found the guard ped addresses by writing a gta2 script that changes ped ID to ped address and then I used cheat engine to search that ped address and got some green values.

Guard 1 5D28CC
Guard 2 5D28D0
Guard 3 5D28D4
Guard 4 5D28D8
Guard 5 5D28DC
Guard 6 5D28E0
Guard 7 5D28E4

Read 5D28CC, add 0x216 to that result, read 2 bytes from the new result and then you have the health value for the guards.

I could write GTA2 script for it but since we don't have an easy way to inject script into compiled missions like Residential, it would be easier to write a trainer or use cheat engine. A trainer would be cooler since it will work on all levels without the user having to compile anything.

Re: Increase gang members health during mission

Posted: 22 Nov 2017, 03:20
by Master15
Read 5D28CC, add 0x216 to that result, read 2 bytes from the new result and then you have the health value for the guards.

1. Load cheat engine and find GTA2.exe

2. First go to redneck telephone to summon the guards.

3. Type 5D28CC and scan? 0x216 <- confusing part. Need some assistance.

I like fooling around with guards, like punching down swat police like piece of cake. The issue is the limited health per guard. This definitely fix this.

Btw, thanks for helping me out.

Re: Increase gang members health during mission

Posted: 22 Nov 2017, 04:03
by Sektor
No need to search since I already gave the pointers, you add them manually or even easier, just load this table: http://gtamp.com/GTA2/gta2ganghealth.ct

Image

Re: Increase gang members health during mission

Posted: 22 Nov 2017, 09:08
by Master15
Thanks for helping me out [respect]

Re: Increase gang members health during mission

Posted: 22 Nov 2017, 14:58
by Master15
I set health at 10,000 HP then freeze value, everything work fine except -> minions is subject to explosive damage.

It is possible to make them invulnerable like Claude Speed.

Re: Increase gang members health during mission

Posted: 30 Nov 2017, 11:09
by Sektor
In GTA2 script, you'd do SET_CHAR_INVINCIBLE (minion,ON).

In Cheat Engine, you have to read 5D28CC for Guard 1, add hex 208 and set that to 9999 decimal for untimed invulnerability.

I updated the Cheat Engine table with invulnerability for the guards. Push i to make them invulnerable*.

http://gtamp.com/GTA2/gta2ganghealth.ct

Re: Increase gang members health during mission

Posted: 30 Nov 2017, 13:17
by Master15
Many thanks again Sektor :)

Another funny request in combination with gang members -> Is it possible to increase number cops pursuing the player`?

Multiply number of cops to 2x or 3x and if possible increase number of SWAT vans to 2 instead of 1.

Imagine 20 or 30 policemen chasing the player with invulnerable guards :D

Re: Increase gang members health during mission

Posted: 30 Nov 2017, 14:26
by elypter
you could add bots that act like cops. i did that in tyty army with pseudo wanted levels that are higher than regular army. there is a vehicle with flamethrower people chasing you and an explosive truck