This tutorial will show you how to enable the Terror Cell superweapon in Generals.
First of all open the file FactionBuilding.ini located in Data\INI\Object. Find this bit of
Code:
DisplayName = OBJECT:CommandCenter
Side = GLA
Under that entry find this line:
Code:
; *** ENGINEERING Parameters ***
This defines the special parameters for this building. Under this section add this
Code:
Behavior = OCLSpecialPower ModuleTag_18
SpecialPowerTemplate = SuperweaponTerrorCell
OCL = SUPERWEAPON_TerrorCell
CreateLocation = CREATE_AT_LOCATION
End
Behavior = CommandSetUpgrade ModuleTag_21
CommandSet = GLACommandCenterTerrorCellCommandSet
TriggeredBy = Upgrade_GLATerrorCell
End
Save the file and close it. Now open CommandSet.ini located in Data\INI. Add this
Code:
CommandSet GLACommandCenterTerrorCellCommandSet
1 = Command_ConstructGLAWorker
5 = Command_Ambush
6 = Command_TerrorCell
7 = Command_AnthraxBomb
9 = Command_EmergencyRepair
11 = Command_SetRallyPoint
12 = Command_Sell
End
Now find this:
Code:
CommandSet GLABlackMarketCommandSet
1 = Command_UpgradeGLAAPBullets
2 = Command_UpgradeGLAAPRockets
3 = Command_UpgradeGLAJunkRepair
4 = Command_UpgradeGLABuggyAmmo
5 = Command_UpgradeGLARadarVanScan
12 = Command_Sell
End
Change it to:
Code:
CommandSet GLABlackMarketCommandSet
1 = Command_UpgradeGLAAPBullets
2 = Command_UpgradeGLAAPRockets
3 = Command_UpgradeGLAJunkRepair
4 = Command_UpgradeGLABuggyAmmo
5 = Command_UpgradeGLARadarVanScan
6 = Command_UpgradeGLATerrorCell
12 = Command_Sell
End
Save the file and close it. Now open CommandButton.ini located in Data\INI. Find this:
Code:
CommandButton Command_TerrorCell
Command = SPECIAL_POWER
SpecialPower = SuperweaponTerrorCell
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:TerrorCell
ButtonImage = SCTempDefaultCommand
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TempDescription
RadiusCursorType = AMBUSH
InvalidCursorName = GenericInvalid
End
Change it to:
Code:
CommandButton Command_TerrorCell
Command = SPECIAL_POWER
SpecialPower = SuperweaponTerrorCell
Options = NEED_TARGET_POS CONTEXTMODE_COMMAND NEED_UPGRADE
Upgrade = Upgrade_GLATerrorCell
TextLabel = GUI:SuperweaponTerrorCell
ButtonImage = SUTerrorist
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipFireTerrorCell
RadiusCursorType = AMBUSH
InvalidCursorName = GenericInvalid
End
Now add this:
Code:
CommandButton Command_UpgradeGLATerrorCell
Command = PLAYER_UPGRADE
Upgrade = Upgrade_GLATerrorCell
TextLabel = CONTROLBAR:UpgradeGLATerrorCell
ButtonImage = SUTerrorist
ButtonBorderType = UPGRADE
DescriptLabel = CONTROLBAR:ToolTipGLAUpgradeTerrorCell
End
Save the file and close it. Now open SpecialPower.ini located in Data\INI. Find this:
Code:
SpecialPower SuperweaponTerrorCell
Enum = SPECIAL_TERROR_CELL
ReloadTime = 600000 ; in milliseconds
RequiredScience = SCIENCE_TerrorCell
PublicTimer = Yes
InitiateSound = TerrorCellActivated
End
Change it to:
Code:
SpecialPower SuperweaponTerrorCell
Enum = SPECIAL_TERROR_CELL
ReloadTime = 240000
PublicTimer = No
InitiateSound = RebelAmbushActivated
SharedSyncedTimer = Yes
RadiusCursorRadius = 50
End
Save the file and close it. Now open Upgrade.ini located in Data\INI. Add this
Code:
Upgrade Upgrade_GLATerrorCell
DisplayName = UPGRADE:TerrorCell
BuildTime = 60.0
BuildCost = 1500
ButtonImage = SUTerrorist
End
Save the file, close it and you're done. You have now successfully enabled the Terror Cell superweapon.