SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
how can i make it so GLA terrorists have twice the amount of health?

thanks in advance
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

Sponsor
NewNightmare
13 years ago
Do you want them in a specific map, in general or just a single unit?
To change the settings for whole game, use FinalBig to open INIZH.big, and extract find GLAInfantry.ini, DemoGeneral.ini, StealthGeneral.ini, GC_Chem_GLAUnits.ini from Data/INI/Object folder, to the exact same path in zero hour folder (I.E Zero Hour/Data/INI/Object)
Then in each of the files find the terrorist code (simply seatch for 'terrorist', and keep jumping till you hit something around Object GLAInfantryTerrorist), and find the 'Body' Module, search helps here as well.
Here's the original code from GLA terrorist

Body = ActiveBody ModuleTag_02
MaxHealth = 120.0
InitialHealth = 120.0
End

Change these values to 240, save a voila, twice the health.
For the Map-specific code, use this tutorial  to replace modules using your map.ini file in map's folder (in my documents/zero hour/maps/mapname) - replace behavior with body ofc, also, i never used it, so im not sure it works :))
To change it for a specific unit in a map, simply go here:


UserPostedImage
SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
sorry, i forgot to mention it was for 1 map. This is what i have so far:

Object GLAInfantryTerrorist

ReplaceModule ModuleTag_XX_Override
Body = YYY ActiveBody ModuleTag_02
MaxHealth = 120.0
InitialHealth = 120.0
End
End

now keep in mind that this is the first time i am doing something related to modding.

all i need to know is what to do with the YYY and XX and if i have the layout right.
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

Annihilationzh
13 years ago
Object GLAInfantryTerrorist
 ReplaceModule ModuleTag_02_Override
  Body = ActiveBody ModuleTag_02
    MaxHealth       = 120.0
    InitialHealth   = 120.0
  End
 End
End

If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
the game crashed when i tried to load it, idk how.
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

NewNightmare
13 years ago
Check annihi's code, make sure to have 3 ends:
1 for module, 1 for override, 1 for object
Post whole map.ini so we can see them errors 🙂
SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago

Check annihi's code, make sure to have 3 ends:
1 for module, 1 for override, 1 for object

Originally Posted by: newnightmare 



Check.

here you go:   ini file.zip (1kb) downloaded 24 time(s).
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

Annihilationzh
13 years ago
Well that's proof that I'm human and I make mistakes.

But I'm not sure what I did wrong. Gonna have to review this.

EDIT: I can find no apparent reason why that doesn't work. However, this is tried, tested and it works:

Object GLAInfantryTerrorist
RemoveModule ModuleTag_02
 AddModule ModuleTag_02
  Body = ActiveBody ModuleTag_02_Override
    MaxHealth       = 2400.0
    InitialHealth   = 2400.0
  End
 End
End

If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
thanks! it works perfectly! that will definetly make the best Aod map a lot more challenging!
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

NewNightmare
13 years ago
Well then I guess we have a new rule?
Dont replace Body modules, remove and re-add them! 🙂