Jump to content


Photo

Zero hour Modding problem

zero hour modding generals powers help

  • Please log in to reply
2 replies to this topic

#1 Justin Van de Laar

Justin Van de Laar
  • Members
  • 5 posts

Posted 01 August 2016 - 09:45 PM

I am very new to modding but really start to learn

I have added  a carpet bomber to the gla commander but once i purse the power it wont show in the sidebar 

So if someone can please help me.  :smile2ap:

 

Here is my code for it

CommandButton.ini

 

CommandButton Command_PurchaseScienceGlaCarpetBomb
  Command           = PURCHASE_SCIENCE
  Science           = SCIENCE_GlaCarpetBomb
  ButtonImage       = SSCarpetBomb
  ButtonBorderType  = UPGRADE ; Identifier for the User as to what kind of button this is
End
 
CommandButton Command_GlaCarpetBomb
  Command       = SPECIAL_POWER
  SpecialPower  = SuperweaponGlaCarpetBomb
  Options       = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
  TextLabel     = CONTROLBAR:GlaCarpetBomb
  ButtonImage   = SNCBomber
  RadiusCursorType  = CARPETBOMB
  InvalidCursorName = GenericInvalid
  ButtonBorderType        = ACTION ; Identifier for the User as to what kind of button this is
  DescriptLabel           = CONTROLBAR:TooltipCarpetBomb
 
End
 
CommandButton Command_GlaCarpetBombFromShortcut
  Command           = SPECIAL_POWER_FROM_SHORTCUT
  SpecialPower      = SuperweaponGlaCarpetBomb
  Options           = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
  TextLabel         = OBJECT:GlaCarpetBomb
  ButtonImage       = SNCBomber
  RadiusCursorType  = CARPETBOMB
  InvalidCursorName = GenericInvalid
  ;ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
  DescriptLabel     = CONTROLBAR:TooltipCarpetBomb
End
 
Science.ini
 
Science SCIENCE_GlaCarpetBomb
  PrerequisiteSciences = SCIENCE_GLA SCIENCE_Rank3
  SciencePurchasePointCost = 7
  IsGrantable = Yes
  DisplayName = SCIENCE:ChinaCarpetBomb
  Description = CONTROLBAR:ToolTipChinaScienceCarpetBomb
End
 
Specialpower .ini
 
SpecialPower SuperweaponGlaCarpetBomb
  Enum                = SPECIAL_CHINA_CARPET_BOMB
  ReloadTime          = 240000  ; in milliseconds
  RequiredScience     = SCIENCE_ChinaCarpetBomb
  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
 
ObjectCreationlist.ini
 
ObjectCreationList SUPERWEAPON_GlaCarpetBomb
  DeliverPayload
    Transport = GLAJetCargoPlane
    FormationSize                   = 12
    FormationSpacing                = 35.0
    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 = 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
 
Commandset.ini
 
CommandSet GLACommandCenterCommandSet
  1  = Command_ConstructGLAWorker
  4  = Command_GPSScrambler
  5  = Command_Ambush
  6  = Command_EmergencyRepair
  7  = Command_AnthraxBomb
  8  = Command_SneakAttack
  9  = Command_GlaCarpetBomb
  13 = Command_SetRallyPoint
  14 = Command_Sell
End
 
CommandSet SCIENCE_GLA_CommandSetRank3
  1 = Command_PurchaseScienceHijacker
  4 = Command_PurchaseScienceRebelAmbush1
  5 = Command_PurchaseScienceRebelAmbush2
  6 = Command_PurchaseScienceRebelAmbush3
  7 = Command_PurchaseScienceCashBounty1
  8 = Command_PurchaseScienceCashBounty2
  9 = Command_PurchaseScienceCashBounty3
  10 = Command_PurchaseScienceEmergencyRepair1
  11 = Command_PurchaseScienceEmergencyRepair2
  12 = Command_PurchaseScienceEmergencyRepair3
  13 = Command_PurchaseScienceGlaCarpetBomb
END
 
CommandSet SpecialPowerShortcutGLA
  1 = Command_AmbushFromShortcut
  2 = Command_EmergencyRepairFromShortcut
  3 = Command_AnthraxBombFromShortcut
  4 = Command_ScudStormFromShortcut
  5 = Command_RadarVanScanFromShortcut
  6 = Command_SneakAttackFromShortcut
  7 = Command_GPSScramblerFromShortcut
  8 = Command_GlaCarpetBombFromShortcut
END
 
Factionbuilding.ini
 
Behavior                 = OCLSpecialPower ModuleTag_23
    SpecialPowerTemplate = SuperweaponGlaCarpetBomb
    OCL                  = SUPERWEAPON_GlaCarpetBomb
    CreateLocation       = CREATE_AT_EDGE_FARTHEST_FROM_TARGET
  End
 
End
 
i apprectied if someone help me but i have no clue 
:?:  :?:  :?:  :smilehuh:
 
justin

 



#2 Assault_Rains

Assault_Rains
  • Members
  • 59 posts
  • Location:The Netherlands

Posted 17 August 2016 - 09:40 PM

I think you actually have to make a duplicate for the CHINA_CARPET_BOMB and rename it, I have a feeling the link towards that parameter is failing somewhere.

The cause of this because I'm not entirely sure on the code here (and what it's referencing) but you have GLAcarpetbomb in some places, Chinacarpetbomb in others.

Edited by Assault_Rains, 17 August 2016 - 09:41 PM.

C&C Mod/Map testing - Graphics - Music Producer

 

JFTQjpb.png


#3 someonehere771

someonehere771
  • New Members
  • 2 posts

Posted 06 March 2022 - 05:57 AM

Hi i wonder how i can make 

 

or can make me a script with commands of Demo_GLAVehicleBombTruck to build Chem_Command_ConstructGLAVehicleScudLauncher if somone can help with this i have big.fils but i lacks a bit info

 to buy and deploy it from its location like a moving war factory but can explode and move 

and then how do i add it to a specific map


Edited by someonehere771, 06 March 2022 - 06:00 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users