I am trying to remove the GLA Stinger Site's ability to detect stealth. I don't feel as though it's realistic that some guys under camo netting can spot stealth aircraft, so I much prefer to have them need a radar van instead. I understand it was done for balancing, but I have been tweaking my game files to make them how I want them, as I mostly just play solo vs AI anyway. Eventually I want to make my own scenarios/missions. As of now though, I just play Skirmish.
I didn't see anything in Worldbuilder that allowed you to change abilities, so I started looking through FactionBuilding.ini. I extracted it with FinalBig and opened it in Notepad. In there, there are some lines about StealthDetector. I figured this must the line of code that gives buildings the ability to detect stealth. I removed the code from the file and placed it in "C:\Program Files (x86)\Origin Games\Command and Conquer Generals Zero Hour\Command and Conquer Generals Zero Hour\Data\INI\Object". However, in game it was still detecting stealthed units. So, either I have to change the code itself, or there is another INI file that controls this as well.
EDIT: I also tried changing the detection range to 0. Did not work.
Any thoughts? Below is the code from the file that I was referring to. Any help would be greatly appreciated.
Quote:;------------------------------------------------------------------------------
Object GLAStingerSite
...
Behavior = StealthDetectorUpdate ModuleTag_18
DetectionRate = 1000 ; how often to rescan for stealthed things in my sight (msec)
DetectionRange = 225 ;Dustin, enable this for independant balancing!
ExtraRequiredKindOf = AIRCRAFT
CanDetectWhileGarrisoned = No ;Garrisoned means being in a structure that you units can shoot out of.
CanDetectWhileContained = No ;Contained means being in a transport or tunnel network.
End
Behavior = StealthDetectorUpdate ModuleTag_19
DetectionRate = 1000 ; how often to rescan for stealthed things in my sight (msec)
DetectionRange = 135 ;Dustin, enable this for independant balancing!
;ExtraForbiddenKindOf = AIRCRAFT
CanDetectWhileGarrisoned = No ;Garrisoned means being in a structure that you units can shoot out of.
CanDetectWhileContained = No ;Contained means being in a transport or tunnel network.
End
...
Edited by user Monday, February 17, 2020 5:58:43 PM(UTC)
| Reason: Not specified