PDA

View Full Version : cut off selfhealing for elite/heroic units?


Madfeld
07-14-2007, 07:38 AM
Hello there, I'm just trying to mod a little for some singleplayer-missions I am working on. Now I stuck by a problem: I do not want any unit to "self heal" if it is veteran, elite or heroic. I want to force the player to use repair-bays or hospitals for example. Can this self healing be cut off? - Or is it hard coded? :uhh: (searched all inis I know but found no clue to that) Thx for any help! Madfeld

Me Myself & Pi
07-14-2007, 08:32 AM
Well, I think it could be in the "GameData.ini" But I wasn't succesful in modifing it. I think what your looking for is almost to the bottum of the file. Or you can search "Heal", you'll find a bunch of places where "Heal" is. This is what I tryied to modify, but wasn't succesful:

; you cannot set this; it always has a value of 100%.
; HealthBonus_Regular = 100%
HealthBonus_Veteran = 120%
HealthBonus_Elite = 130%
HealthBonus_Heroic = 150%

Yayo01
07-14-2007, 12:16 PM
Well, I think it could be in the "GameData.ini" But I wasn't succesful in modifing it. I think what your looking for is almost to the bottum of the file. Or you can search "Heal", you'll find a bunch of places where "Heal" is. This is what I tryied to modify, but wasn't succesful:

; you cannot set this; it always has a value of 100%.
; HealthBonus_Regular = 100%
HealthBonus_Veteran = 120%
HealthBonus_Elite = 130%
HealthBonus_Heroic = 150%

Those parameters you posted controls how much a unit gains extra health when in a certain rank, That parameter doesn't control the auto-healing.

The actual module that controls the auto-heal ability when in a certain rank can actually be found in Object.ini found in the Default Folder.

Open it and search for this:

InheritableModule
Behavior = AutoHealBehavior ModuleTag_DefaultAutoHealBehavior
HealingAmount = 10
HealingDelay = 1000
TriggeredBy = Upgrade_Veterancy_ELITE Upgrade_Veterancy_HEROIC
StartHealingDelay = 5000
End
End

After that, Either comment it out using ; OR Delete it entirely. :)

Me Myself & Pi
07-14-2007, 02:47 PM
Nice going Yayo01. I got it working too! All you have to do is change the Healing amout to zero.

Madfeld
07-15-2007, 06:44 AM
Thanks a lot Yayo01! Thats what I've missed!
I also thougt it would have been in the gamedata.ini, but never found it.
Well I'll try to put his into a map.ini - so the changings should be only for the singleplayer mission I am working on.

Thanks a lot and have a nice weekend!
Madfeld