Okay, now i have really a problem and don't know whats wrong.
I was following the tutorial
Modding: C&C Generals: Creating a New General's Powerto give my faction "Nato" the nukecarpetbomb from nukegeneral, but its not working currectly.
He flys to the selected area, but he is not dropping bombs.
What is the mistake?
Thats the codes from my .ini files (just show the lines i added in the ini files):
Data\INI\Object\Nato.ini
Code:Object NatoCommandCenter
....
Behavior = OCLSpecialPower ModuleTag_NatoNukeCarpetBomb
SpecialPowerTemplate = SuperweaponNatoNukeCarpetBomb
OCL = SUPERWEAPON_NatoNukeCarpetBomb
CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
End
End
Data\INI\CommandButton.ini
Code:CommandButton Command_PurchaseScienceNatoNukeCarpetBomb
Command = PURCHASE_SCIENCE
Science = SCIENCE_NatoNukeCarpetBomb
ButtonImage = SSNkeCrptBmb
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
End
CommandButton Command_NatoNukeCarpetBomb
Command = SPECIAL_POWER
SpecialPower = SuperweaponNatoNukeCarpetBomb
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:Nuke_CarpetBomb
ButtonImage = SSNkeCrptBmb
RadiusCursorType = CARPETBOMB
InvalidCursorName = GenericInvalid
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:Nuke_TooltipCarpetBomb
End
Data\INI\CommandSet.ini
Code:; Rank 8 has 3 positions
CommandSet SCIENCE_Nato_CommandSetRank8
1 = Command_PurchaseScienceDaisyCutter
2 = Command_PurchaseScienceNatoNukeCarpetBomb
END
Data\INI\ObjectCreationList.ini
Code:
; -----------------------------------------------------------------------------
; NATO General
; -----------------------------------------------------------------------------
ObjectCreationList SUPERWEAPON_NatoNukeCarpetBomb
DeliverPayload
Transport = AmericaJetB52
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
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 = GC_Nuke_ChinaCarpetBomb 10
DeliveryDistance = 350
DeliveryDecalRadius = 180
DeliveryDecal
Texture = SCCCarpBomb
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:255 G:0 B:0 A:255
OnlyVisibleToOwningPlayer = Yes
End
End
End
Data\INI\Science.ini
Code:;---------------------------------
; NATO General
;---------------------------------
Science SCIENCE_NatoNukeCarpetBomb
PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:Nuke_ChinaCarpetBomb
Description = CONTROLBAR:Nuke_ToolTipChinaScienceCarpetBomb
End
Data\INI\SpecialPower.ini
Code:;-----------------------------------------------------------------------------
; NATO General
;-----------------------------------------------------------------------------
SpecialPower SuperweaponNatoNukeCarpetBomb
Enum = SPECIAL_NAPALM_STRIKE
ReloadTime = 180000 ; in milliseconds
RequiredScience = SCIENCE_NatoNukeCarpetBomb
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 40000
ViewObjectRange = 250
RadiusCursorRadius = 180
ShortcutPower = Yes ;Capable of being fired by the side-bar shortcut.
AcademyClassify = ACT_SUPERPOWER ;Considered a powerful special power that a player could fire. Not for simpler unit based powers.
End
### EDITOMG! I got it! Thats not true what the problem was...
For all with the same problem:
>>> Data\INI\
ObjectCreationList.ini <<<
Go to your Object "NAME OF YOUR WEAPON"
and check the
Payload (thats are the bombs)
Wrong: Payload = GC_Nuke_ChinaCarpetBomb 10
Right: Payload = Nuke_ChinaCarpetBomb 10
or (normal bombs ; not nukebombs)
Right: CarpetBomb 10
I dont't know what "GC_" is, but without this the weapon works.
Edited by user Saturday, May 27, 2017 8:59:13 AM(UTC)
| Reason: Problem fixed