I've been modding Generals for some time now, and I've managed to put some new units in and stuff, but I've only recently tried to make a new special power. However, all my attempts at making one have failed. The problem is that when you select the Special Power and target it, the cursor is correct, the little red targeting cursor is there, you click, and the area is revealed, but nothing else happens! No bombers fly over, nothing happens. The button starts charging up again, and it appears as though the specialpower has worked, but it hasnt done anything. I'll post the code, and maybe someone can help me. BTW this is just original Generals, not Zero hour, and I know the MOAB bomb is already done, i just couldnt think of a better name!
;----------------Special Power.ini--------------
SpecialPower SuperweaponMOAB
Enum = SPECIAL_DAISY_CUTTER
ReloadTime = 250000 ; in milliseconds
; RequiredScience = SCIENCE_DaisyCutter
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 250 ; Lifetime of a Look done belonging to the firing player
ViewObjectRange = 400 ; And how far it can see
RadiusCursorRadius = 300
End
;--------------CommandButton.ini----------------
CommandButton Command_MOAB
Command = SPECIAL_POWER
SpecialPower = SuperweaponMOAB
Options = NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR

aisyCutter
ButtonImage = SACDaisyCutter
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipDaisyCutter
RadiusCursorType = DAISYCUTTER
InvalidCursorName = GenericInvalid
End
;--------FactionBuilding.ini (Under America Command Center engineering)
Behavior = OCLSpecialPower ModuleTag_20
SpecialPowerTemplate = SuperweaponMOAB
OCL = SUPERWEAPON_MOAB
CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
End
;--------ObjectCreationList.ini-----------------
ObjectCreationList SUPERWEAPON_MOAB
DeliverPayload
Transport = AmericaJetB52
StartAtPreferredHeight = Yes
FormationSize = 3
FormationSpacing = 150
StartAtMaxSpeed = Yes
MaxAttempts = 1
DropOffset = X:0 Y:0 Z:-10
Payload = DaisyCutterBomb
DeliveryDistance = 240
DeliveryDecalRadius = 300
DeliveryDecal
Texture = SCCFuelAirBomb_USA
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:255 G:0 B:0 A:255
OnlyVisibleToOwningPlayer = Yes
End
End
End
;------------------CommandSet.ini------------------
CommandSet AmericaCommandCenterCommandSet
1 = Command_ConstructAmericaDozer
5 = Command_A10ThunderboltMissileStrike
6 = Command_Paradrop
7 = Command_SpyDrone
8 = Command_EmergencyRepair
9 = Command_MOAB
10 = Command_CarpetBomb
11 = Command_ConstructAmericaAdvDozer
12 = Command_Sell
End
The power is deployed from the Command Center for ease of testing. Its not going to be an actual power, I just want to learn how to do these.
Any help would be appreciated (I just hope I haven't made a stupid mistake, but please tell me if I have)