Many times you can do a search of this forum to find the answers you're looking for. Me Myself and Pi had already worked through this problem for another member. Here's the map.ini file he made. Unzip the folder and add the map.ini file to your map.
Download Attachment: CarpetBomb.zip1.66 KB
This is what the file contains.
--
Science SCIENCE_CarpetBombx
PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank3
SciencePurchasePointCost = 1 ; note that this means "not purchasable", NOT "free"!
IsGrantable = Yes
DisplayName = GUI:SuperweaponCarpetBomb
Description = CONTROLBAR:TooltipCarpetBomb
End
SpecialPower SuperweaponCarpetBomb
Enum = SPECIAL_CARPET_BOMB
ReloadTime = 150000 ; in milliseconds
RequiredScience = SCIENCE_CarpetBombx
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 40000
ViewObjectRange = 250
RadiusCursorRadius = 100
End
CommandButton Command_CarpetBomb
Command = SPECIAL_POWER
SpecialPower = SuperweaponCarpetBomb
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:CarpetBomb
ButtonImage = SSCarpetBomb
RadiusCursorType = CARPETBOMB
InvalidCursorName = GenericInvalid
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipCarpetBomb
End
CommandButton Command_CarpetBombFromCommandCenter
Command = SPECIAL_POWER_FROM_COMMAND_CENTER
SpecialPower = SuperweaponCarpetBomb
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = OBJECT:CarpetBomb
ButtonImage = SSCarpetBomb
RadiusCursorType = CARPETBOMB
InvalidCursorName = GenericInvalid
;ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipCarpetBomb
End
CommandButton Command_PurchaseScienceCarpetBomb
Command = PURCHASE_SCIENCE
Science = SCIENCE_CarpetBombx
ButtonImage = SSCarpetBomb
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
End
CommandSet AmericaCommandCenterCommandSet
1 = Command_ConstructAmericaDozer
4 = Command_CarpetBomb
5 = Command_A10ThunderboltMissileStrike
6 = Command_Paradrop
7 = Command_SpyDrone
8 = Command_EmergencyRepair
9 = Command_DaisyCutter
10 = Command_SpySatelliteScan
11 = Command_SetRallyPoint
12 = Command_Sell
End
Object AmericaCommandCenter
CommandSet = AmericaCommandCenterCommandSet
AddModule
Behavior = OCLSpecialPower ModuleTag_99
SpecialPowerTemplate = SuperweaponCarpetBomb
OCL = SUPERWEAPON_CarpetBomb
CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
End
End
End
PlayerTemplate FactionAmerica
SpecialPowerShortcutCommandSet = SpecialPowerShortcutUSA
PurchaseScienceCommandSetRank3 = SCIENCE_AMERICA_CommandSetRank3x
End
CommandSet SpecialPowerShortcutUSA
3 = Command_A10ThunderboltMissileStrikeFromCommandCenter
2 = Command_ParadropFromCommandCenter
1 = Command_SpyDroneFromCommandCenter
4 = Command_CarpetBombFromCommandCenter
5 = Command_DaisyCutterFromCommandCenter
END
CommandSet SCIENCE_AMERICA_CommandSetRank3x
1 = Command_PurchaseSciencePathfinder
3 = Command_PurchaseScienceCarpetBomb
4 = Command_PurchaseScienceParadrop1
5 = Command_PurchaseScienceParadrop2
6 = Command_PurchaseScienceParadrop3
7 = Command_PurchaseScienceA10ThunderboltMissileStrike1
8 = Command_PurchaseScienceA10ThunderboltMissileStrike2
9 = Command_PurchaseScienceA10ThunderboltMissileStrike3
10 = Command_PurchaseScienceEmergencyRepair1
11 = Command_PurchaseScienceEmergencyRepair2
12 = Command_PurchaseScienceEmergencyRepair3
END
Ahh yes, looking at your signiture, you're still only using generals.
Maybe this file will give you some ideas.
As you can see from this file there are a number of things to do to add China CB to USA. Hope it helps.
Edited by moderator Saturday, May 28, 2011 12:25:49 PM(UTC)
| Reason: Not specified