AdrianeMapMaker
9 years ago
I'd Want to Add The Unused CarpetBomb in Generals Power and After i Seen This Comment, Id Been Bother by These


; Rank 8 only has 1 position

In adding a new Generals Power:I Need ?

New Ocl
New CommandButton
New CommandSet


Did i Forget Something?

Since it Done
i Can Used The Unused ModuleTag_23 for The Ocl
Unused Command Button from its origanal ini File
Unused Command Set
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




Sponsor
AdrianeMapMaker
9 years ago
i tried it now, Some in The Code IS Blocked by The Comment Symbol ";" or Undone
i tried to open the game ... crash As i Expected
Can Anyone Help Me Here ?

Here is the code needed

:-TheCommandButton---------------------------
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
:-TheOCL----------------------------------------------
ObjectCreationList SUPERWEAPON_CarpetBomb
  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 = CarpetBomb 15
    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
;-TheScience--------------------------------------------
Science SCIENCE_CarpetBomb
  PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank3
  SciencePurchasePointCost = 0  ; note that this means "not purchasable", NOT "free"!
  IsGrantable = Yes
  DisplayName = SCIENCE:TempName
  Description = SCIENCE:TempDescription
End
;-TheSpecialPower------------------------------------
SpecialPower SuperweaponCarpetBomb
  Enum                = SPECIAL_CARPET_BOMB
  ReloadTime          = 150000   ; in milliseconds
  ;;;RequiredScience     = SCIENCE_CarpetBomb ;Never ever ever use a required science with a public timer, since the hiddenbyscience never clears
  PublicTimer         = Yes
  SharedSyncedTimer   = Yes
  ViewObjectDuration  = 40000
  ViewObjectRange     = 250
  RadiusCursorRadius  = 100
End
;-TheCcModule----------------------------------------------------
Object AmericaCommandCenter
 AddModule
  Behavior           = OCLSpecialPower ModuleTag_Override01
    SpecialPowerTemplate = SuperweaponCarpetBomb
    OCL                  = SUPERWEAPON_CarpetBomb
    CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
  End 
 End
End
;-TheCommandSetinCc----------------------------------
CommandSet AmericaCommandCenterCommandSet
  1  = Command_ConstructAmericaDozer
  2  = 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
;-TheCommandSet In Gen powers------------------------
CommandSet SCIENCE_AMERICA_CommandSetRank3
  1 = Command_PurchaseSciencePathfinder
  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
  13 = Command_CarpetBomb
END

A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




AdrianeMapMaker
9 years ago
Update I Have Been Experementing this Dang CarpetBomb for 2Hours Nothing Happens ....
Its Crashing The Game When I tried to Click The Generals Power

Why!!!!!!!!!!!!!!!



I Need Some Help Over Here Guys Pls

A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




klingondragon
9 years ago
Are you messing around with custom files and bigs again?
AdrianeMapMaker
9 years ago
Nope in a Map.ini file
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




Annihilationzh
9 years ago
I'm not sure why you have so much unnecessary code. This is adapted from the vGenerals mission that has a carpet bomb.

CommandSet AmericaCommandCenterCommandSet
  1  = Command_ConstructAmericaDozer
  2  = 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
 AddModule
  Behavior           = OCLSpecialPower ModuleTag_Override01
    SpecialPowerTemplate = SuperweaponCarpetBomb
    OCL                  = SUPERWEAPON_CarpetBomb
    CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
  End 
 End
End

If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
klingondragon
9 years ago
This is where our problems arise.

Most modding questions are about making a mod. Not making a map.ini. Hence all the extra code.

It's all from that tutorial.