Jump to content


Photo

[GEN - ZH] Carpet Bombing


  • Please log in to reply
3 replies to this topic

#1 Skywaters

Skywaters

    Schnell, Schnell, Kartoffelkopf!

  • Members
  • 357 posts
  • Projects:Command Imperium
  •  Eccentric Philantrophist

Posted 22 January 2004 - 03:39 AM

This tutorial is NOT done by me, instead it is done by a great modder called Acid. Here it is :?:

~C

This tutorial will show you how to enable the Carpet Bombing superweapon in Generals.

First of all open the file FactionBuilding.ini located in DataINIObject. Find this bit of code:

DisplayName = OBJECT:Airfield
Side = America

Under that entry find this line:

; *** ENGINEERING Parameters ***

This defines the special parameters for this building. Under this section find:

RadarPriority = STRUCTURE
KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE AIRFIELD SCORE CAPTURABLE FS_FACTORY MP_COUNT_FOR_VICTORY AUTO_RALLYPOINT
Body = StructureBody ModuleTag_10
MaxHealth = 1500.0
InitialHealth = 1500.0
End

Add this after it:

Behavior = OCLSpecialPower ModuleTag_23
SpecialPowerTemplate = SuperweaponCarpetBomb
OCL = SUPERWEAPON_CarpetBomb
End

Now find this:

; Behavior = OCLSpecialPower ModuleTag_23;this has been removed from everywhere but the ChinaAirfield in CHI05
; SpecialPowerTemplate = SuperweaponCarpetBomb
; OCL = SUPERWEAPON_CarpetBomb
; CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
; End

Replace it with this:

Behavior = OCLSpecialPower ModuleTag_23
SpecialPowerTemplate = SuperweaponCarpetBomb
OCL = SUPERWEAPON_CarpetBomb
CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
End

Save the file and close it. Now open CommandSet.ini located in DataINI. Find this:

CommandSet AmericaAirfieldCommandSet

Under that entry find this line:

8 = Command_UpgradeAmericaLaserMissiles

Add this line after it:

9 = Command_CarpetBomb

Save the file and close it. Now open SpecialPower.ini located in DataINI. Find this:

SpecialPower SuperweaponCarpetBomb

Under that entry find this line:

;;;RequiredScience = SCIENCE_CarpetBomb;;; Never ever ever use a required science with a public timer, since the hiddenbyscience never clears

Delete it.

Now find this line under the same entry:

PublicTimer = Yes

Change it to:

PublicTimer = No

Done. You have now successfully enabled the Carpet Bombing superweapon.
Posted Image

#2 Lynx

Lynx

    Skyrockets in Flight

  • Project Team
  • 844 posts
  • Location:Australia
  • Projects:Aurora: Great Crusade
  •  Afternoon Delight

Posted 24 January 2005 - 09:27 AM

I would like this as a super weapon for my mod, how do I make it so this is commanded from a specific superweapon building?
Posted Image

#3 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 24 January 2005 - 07:14 PM

Put the OCL and command button on that specific building.
:p
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#4 Lynx

Lynx

    Skyrockets in Flight

  • Project Team
  • 844 posts
  • Location:Australia
  • Projects:Aurora: Great Crusade
  •  Afternoon Delight

Posted 25 January 2005 - 05:25 AM

:p
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users