logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,677
Total Threads: 8,798
Posts: 95,843

Administrators:
DeeZire, Redemption

There are currently 33 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements

DeeZire Online > Editing Community > Member Written Tutorials » [GEN/ZH] Enable Black Market Nuke

Member Written Tutorials A compilation and archive of tutorials written by members. You cant post here, but you can read the threads.

Reply
 
LinkBack Thread Tools
Old 11-02-2004, 12:22 PM   #1 (permalink)
Member
 
Join Date: Feb 2003
Location: Newcastle, UK
Posts: 80
Send a message via ICQ to Acid Send a message via AIM to Acid Send a message via MSN to Acid
Default [GEN/ZH] Enable Black Market Nuke

This tutorial will show you how to enable the Black Market Nuke superweapon in Generals.

First of all open the file FactionBuilding.ini located in Data\INI\Object. Find this bit of code:

Code:
  DisplayName         = OBJECT:CommandCenter
  Side                = GLA
Under that entry find this line:

Code:
  ; *** ENGINEERING Parameters ***
This defines the special parameters for this building. Under this section add this code:

Code:
  Behavior           = OCLSpecialPower ModuleTag_12
    SpecialPowerTemplate = SuperweaponBlackMarketNuke
    OCL                  = SUPERWEAPON_BlackMarketNuke
    CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
  End

  Behavior = CommandSetUpgrade ModuleTag_22
    CommandSet  = GLACommandCenterBlackMarketNukeCommandSet
    TriggeredBy = Upgrade_GLABlackMarketNuke
  End
Save the file and close it. Now open CommandSet.ini located in Data\INI. Add this code:

Code:
CommandSet GLACommandCenterBlackMarketNukeCommandSet
  1  = Command_ConstructGLAWorker
  5  = Command_Ambush
  7  = Command_AnthraxBomb
  8  = Command_BlackMarketNuke
  9  = Command_EmergencyRepair
  11 = Command_SetRallyPoint
  12 = Command_Sell
End
Now find this:

Code:
CommandSet GLABlackMarketCommandSet
  1  = Command_UpgradeGLAAPBullets
  2  = Command_UpgradeGLAAPRockets
  3  = Command_UpgradeGLAJunkRepair
  4  = Command_UpgradeGLABuggyAmmo
  5 = Command_UpgradeGLARadarVanScan
  12 = Command_Sell
End
Change it to:

Code:
CommandSet GLABlackMarketCommandSet
  1  = Command_UpgradeGLAAPBullets
  2  = Command_UpgradeGLAAPRockets
  3  = Command_UpgradeGLAJunkRepair
  4  = Command_UpgradeGLABuggyAmmo
  5  = Command_UpgradeGLARadarVanScan
  6  = Command_UpgradeGLABlackMarketNuke
  12 = Command_Sell
End
Save the file and close it. Now open CommandButton.ini located in Data\INI. Add this code:

Code:
CommandButton Command_BlackMarketNuke
  Command           = SPECIAL_POWER
  SpecialPower      = SuperweaponBlackMarketNuke
  Options           = NEED_TARGET_POS CONTEXTMODE_COMMAND NEED_UPGRADE
  Upgrade           = Upgrade_GLABlackMarketNuke
  TextLabel         = GUI:SuperweaponBlackMarketNuke
  ButtonImage       = SNNukeLaunch
  ButtonBorderType  = ACTION
  DescriptLabel     = CONTROLBAR:TooltipFireBlackMarketNuke
  RadiusCursorType  = NUCLEARMISSILE
  InvalidCursorName = GenericInvalid
End

CommandButton Command_UpgradeGLABlackMarketNuke
  Command           = PLAYER_UPGRADE
  Upgrade           = Upgrade_GLABlackMarketNuke
  TextLabel         = CONTROLBAR:UpgradeGLABlackMarketNuke
  ButtonImage       = SNNukeLaunch
  ButtonBorderType  = UPGRADE
  DescriptLabel     = CONTROLBAR:ToolTipGLAUpgradeBlackMarketNuke
End
Save the file and close it. Now open SpecialPower.ini located in Data\INI. Find this:

Code:
SpecialPower SuperweaponBlackMarketNuke
  Enum                = SPECIAL_BLACK_MARKET_NUKE
  ReloadTime          = 600000   ; in milliseconds. min is 2x door/open close time!
  RequiredScience     = SCIENCE_BlackMarketNuke
  PublicTimer         = Yes
  SharedSyncedTimer   = Yes
  ViewObjectDuration  = 30000
  ViewObjectRange     = 250
  RadiusCursorRadius  = 100
End
Change it to:

Code:
SpecialPower SuperweaponBlackMarketNuke
  Enum                    = SPECIAL_BLACK_MARKET_NUKE
  ReloadTime              = 360000
  PublicTimer             = No
  InitiateSound           = AirRaidSiren
  InitiateAtLocationSound = AirRaidSiren
  SharedSyncedTimer       = Yes
  ViewObjectDuration      = 30000
  ViewObjectRange         = 250
  RadiusCursorRadius      = 100
End
Save the file and close it. Now open Upgrade.ini located in Data\INI. Add this code:

Code:
Upgrade Upgrade_GLABlackMarketNuke
  DisplayName       = UPGRADE:BlackMarketNuke
  BuildTime         = 60.0
  BuildCost         = 3500
  ButtonImage       = SNNukeLaunch
End
Save the file, close it and you're done. You have now successfully enabled the Black Market Nuke superweapon.
Acid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Market Research DarkSideDave Generals & Zero Hour Editing 6 01-09-2005 05:04 PM
[GEN/ZH] Enable Terror Cell Acid Member Written Tutorials 0 11-02-2004 12:50 PM
[GEN/ZH] Enable Napalm Strike Acid Member Written Tutorials 0 11-02-2004 12:46 PM
[GEN/ZH] Enable Carpet Bombing Acid Member Written Tutorials 0 11-02-2004 12:42 PM
enable daisycutter petem Generals & Zero Hour Editing 12 09-15-2003 09:44 AM


All times are GMT -4. The time now is 04:33 AM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.