Basically, you could put almost ANYTHING in your map.ini regarding SWs.
However, you'll get many bugs if you do so (possible bugs that happen under certain condition that are sometimes funny, sometimes annoying).
My advice to you (and what I'm doing myself), is to uphold the following principal:
Map.ini stuff
Quote:
Object GLABarracks
AddModule
Behavior = OCLSpecialPower ModuleTag_88
SpecialPowerTemplate = SuperweaponTerrorCell
OCL = SUPERWEAPON_TerrorCell
CreateLocation = CREATE_AT_LOCATION
End
End
End
|
To enable a certain SW for a certain building/unit (otherwise you can't actually use it). don't forget to rename the entries to suit your own SW stuff. The ModuleTag number can be any number, as long as it is higher that the previous ModuleTag number (in case you have multiple SWs that need this code to be enabled)
For new or edited SWs (in case you want a Carpet Bomb to drop more/less bombs, etc), you might do well to add the OCL (ObjectCreationList) stuff to your map.ini as well.
Edited CommandSets (to give a certain button to a certain building that it normally doesn't have), you can add that to your map.ini as well (new commandsets (for new buildings), are best defined in the CommandSet.ini).
Edited SpecialPower codes (to decrease/increase recharging time for example) can be included in your map.ini as well.
Normal ini stuff
Commandbuttons NEED to be defined in the CommandButton.ini, otherwise they will NOT show the image you want.
Upgrades should be defined in Upgrade.ini.
Sciences are best to be defined in Science.ini as well.
Weapons MUST be defined in Weapon.ini (otherwise you'll get a bug that causes the SW to act screwy the first time you start a map and use it. Once you restart the map though, the weapon works a it should, but it's a funny and annoying bug that can easily be circumvented).
The general rule in all of this, is that all edited stuff should be put in your map.ini and the new codes need to be defined in their respective ini.
An important note: in case you use commandsets in your map.ini, put them down at the very BOTTOM of the map.ini. CommandSets need to be defined AFTER any commandbutton code, otherwise the game will crash. If you write every possible commandbutton down in CommandButton.ini, then you can write down the CommandSets anywhere in your map.ini.