These are all the changes i made, so it is availible as a Generals point for the GLA, at level 3.
Science.ini change/add this.
Quote:
Science SCIENCE_BlackMarketNuke
PrerequisiteSciences = SCIENCE_GLA SCIENCE_Rank1
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:GLATechnicalTraining
Description = CONTROLBAR:ToolTipGLAScienceTechnicalTraining
;DisplayName = SCIENCE:GLABlackMarketNuke
;DescriptLabel = CONTROLBAR:ToolTipGLAScienceBlackMarketNuke
End
|
You need to add strings to the CSF files, if you want the other display names to work..
SCIENCE:GLABlackMarketNuke, and CONTROLBAR:ToolTipGLAScienceBlackMarketNuke
specialpower.ini
Quote:
SpecialPower SuperweaponBlackMarketNuke
Enum = SPECIAL_BLACK_MARKET_NUKE
ReloadTime = 36000 ; in milliseconds. min is 2x door/open close time!
RequiredScience = SCIENCE_BlackMarketNuke
PublicTimer = No
SharedSyncedTimer = No
InitiateSound = AirRaidSiren ; plays at source
InitiateAtLocationSound = AirRaidSiren ; plays at target
ViewObjectDuration = 45000
ViewObjectRange = 250
RadiusCursorRadius = 210
End
|
add the siren if you want or not, just sounds cool..
commandbutton.ini, change/add this:
Quote:
CommandButton Command_BlackMarketNuke
Command = SPECIAL_POWER
SpecialPower = SuperweaponBlackMarketNuke
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:BlackMarketNuke
ButtonImage = SNNukeLaunch
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipGLAScienceBlackMarketNuke
RadiusCursorType = NUCLEARMISSILE
InvalidCursorName = GenericInvalid
End
|
Dont forget to add
CONTROLBAR:ToolTipGLAScienceBlackMarketNuke to the csf file.
this is for the Button (firing it..) it self.
this is for buying it at the generals points screen.
this is still in commandbutton.ini
change/add it,
Quote:
CommandButton Command_PurchaseScienceBlackMarketNuke
Command = PURCHASE_SCIENCE
Science = SCIENCE_BlackMarketNuke
ButtonImage = SNNukeLaunch
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
End
|
This is in Commandset.ini
Change the GLA Command Center to:
Quote:
CommandSet GLACommandCenterCommandSet
1 = Command_ConstructGLAWorker
5 = Command_Ambush
6 = Command_EmergencyRepair
7 = Command_AnthraxBomb
8 = Command_BlackMarketNuke
11 = Command_SetRallyPoint
12 = Command_Sell
End
|
this is to have it enabled at the Generals Points menu:
Change the place as you want it, but dont forget that the hardcoded numbers for Rank 1 = 3, for Rank3 = 12, and for Rank 5 = 1.
Still in commandset.ini change it for GLA or whatever Side you want it for.
Quote:
CommandSet SCIENCE_GLA_CommandSetRank3
1 = Command_PurchaseScienceHijacker
2 = Command_PurchaseScienceBlackMarketNuke
4 = Command_PurchaseScienceRebelAmbush1
5 = Command_PurchaseScienceRebelAmbush2
6 = Command_PurchaseScienceRebelAmbush3
7 = Command_PurchaseScienceCashBounty1
8 = Command_PurchaseScienceCashBounty2
9 = Command_PurchaseScienceCashBounty3
10 = Command_PurchaseScienceEmergencyRepair1
11 = Command_PurchaseScienceEmergencyRepair2
12 = Command_PurchaseScienceEmergencyRepair3
END
|
and add/change this in Factionbuilding.ini for the GLAcommandcenter.
just add/change it behind the rebel Ambush module.
Quote:
Behavior = OCLSpecialPower ModuleTag_12
SpecialPowerTemplate = SuperweaponBlackMarketNuke
OCL = SUPERWEAPON_BlackMarketNuke
CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
End
|
You could always change the Objectcreationlist.ini for the power, and speed of the Bomb.