Increase gang members health during mission

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Post Reply
Master15
Mugger
Mugger
Posts: 13
Joined: 03 Nov 2017, 20:51
GH nick: Master15

Increase gang members health during mission

Post by Master15 »

Is it possible to increase health for guard that follows the player during missions?

For example mission: Gang Car Bang [redneck]
Last edited by Master15 on 21 Nov 2017, 21:57, edited 1 time in total.
User avatar
elypter
Immortal
Posts: 1120
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: Increase gang members health during mision

Post by elypter »

you can do it the same way as with your other question, just increase the value
yur sa'nok ngeyä
Master15
Mugger
Mugger
Posts: 13
Joined: 03 Nov 2017, 20:51
GH nick: Master15

Re: Increase gang members health during mision

Post 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?
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Increase gang members health during mission

Post 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.
Master15
Mugger
Mugger
Posts: 13
Joined: 03 Nov 2017, 20:51
GH nick: Master15

Re: Increase gang members health during mission

Post 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.
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Increase gang members health during mission

Post 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
Master15
Mugger
Mugger
Posts: 13
Joined: 03 Nov 2017, 20:51
GH nick: Master15

Re: Increase gang members health during mission

Post by Master15 »

Thanks for helping me out [respect]
Master15
Mugger
Mugger
Posts: 13
Joined: 03 Nov 2017, 20:51
GH nick: Master15

Re: Increase gang members health during mission

Post 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.
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Increase gang members health during mission

Post 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
Master15
Mugger
Mugger
Posts: 13
Joined: 03 Nov 2017, 20:51
GH nick: Master15

Re: Increase gang members health during mission

Post 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
User avatar
elypter
Immortal
Posts: 1120
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: Increase gang members health during mission

Post 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
yur sa'nok ngeyä
Post Reply