Hi,
I have been trying to add Carpet Bombing as a Generals Power, but so far it doesn't work (Generals won't start). I have looked through every *.ini file that seems like it might have something to do with it. I have tried everything I can think of, but to no prevail. I searched the forums too, but I didn't find anything. Can someone help me get this working (if it is possible to add new Generals Powers)? I'll post all the code that I have changed or I think has something to do with Carpet Bombing (I'm trying to make it deploy from the American Command Center like the other powers).
FactionBuilding.ini
American CC
Quote:
Behavior = OCLSpecialPower ModuleTag_23;this has been removed from everywhere but the ChinaAirfield in CHI05
SpecialPowerTemplate = SuperweaponCarpetBomb
OCL = SUPERWEAPON_CarpetBomb
CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
|
CommandButton.ini
I didn't change any of this.
Quote:
;Not actually used in-game, left in to allow for use in solo missions. - DB 9/02
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
;Not actually used in-game, left in to allow for use in solo missions. - DB 9/02
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_CarpetBomb
ButtonImage = SAPathfinder1;For testing because I didn't bother to look for the carpet bombing icon
ButtonBorderType = UPGRADE
End
|
CommandSet.ini
Added CarpetBomb to the lists.
Quote:
CommandSet AmericaCommandCenterCommandSet
1 = Command_ConstructAmericaDozer
3 = 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
; Rank 3 assign buttons to position like so:
; 1 4 7 10
; 2 5 8 11
; 3 6 9 12
CommandSet SCIENCE_AMERICA_CommandSetRank3
1 = Command_PurchaseSciencePathfinder
3 = Command_PurchaseScienceCarpetBomb
4 = Command_PurchaseScienceParadrop1
5 = Command_PurchaseScienceParadrop2
6 = Command_PurchaseScienceParadrop3
7 = Command_PurchaseScienceA10ThunderboltMissileStrike 1
8 = Command_PurchaseScienceA10ThunderboltMissileStrike 2
9 = Command_PurchaseScienceA10ThunderboltMissileStrike 3
10 = Command_PurchaseScienceEmergencyRepair1
11 = Command_PurchaseScienceEmergencyRepair2
12 = Command_PurchaseScienceEmergencyRepair3
END
|
ObjectCreationList.ini
Added "FormationSize = 2"
Quote:
ObjectCreationList SUPERWEAPON_CarpetBomb
DeliverPayload
Transport = AmericaJetB52
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
FormationSize = 2
MaxAttempts = 1
DropOffset = X:0 Y:0 Z:-2
DropVariance = X:30 Y:40 Z:0
DropDelay = 300 ;500 ; time in between each item dropped (if more than one)
Payload = CarpetBomb 20
DeliveryDistance = 400
DeliveryDecalRadius = 100
DeliveryDecal
Texture = SCCA10Strike_USA
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:255 G:156 B:0 A:255
OnlyVisibleToOwningPlayer = Yes
End
End
End
|
Science.ini
Added "SCIENCE_CarpetBomb"
Quote:
Science SCIENCE_CarpetBomb
PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:CarpetBomb
Description = CONTROLBAR:ToolTipCarpetBomb
End
|
SpecialPower.ini
Tweaked the CarpetBomb superweapon.
Quote:
SpecialPower SuperweaponCarpetBomb
Enum = SPECIAL_CARPET_BOMB
ReloadTime = 150 ; in milliseconds (for testing)
RequiredScience = SCIENCE_CarpetBomb;;; Never ever ever use a required science with a public timer, since the hiddenbyscience never clears
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 40000
ViewObjectRange = 250
RadiusCursorRadius = 100
End
|
I hope somone can help me!