Adding a new Psychic Dominator SW

The Rock Patch allows you to add working clones of the Psychic Dominator.
This example clones the Psychic Dominator; the clone will behave exactly like the original one.

"Registering" your Psychic Dominator

Head to the [SuperWeaponTypes] section and add your SuperWeapon to the end of the list.

[SuperWeaponTypes]
...
XX=NewDominatorSpecial

XX would either be the number following the last entry of the list, or anything you like that is not used yet in that list (numbering is recommended).

The Code

The next step is creating the section for the new SuperWeapon.
Go to the place where the other SuperWeapons are defined (you don't have to, just to keep it well ordered) and add the following section:

[NewDominatorSpecial]
;Basic Stuff
UIName=Name:NewPsychicDominator
Name=Psychic Dominator Clone
IsPowered=true
RechargeTime=10
Type=PsychicDominator    
Action=NewDom     ;check out the Adding custom Actions page to find out more about this
SidebarImage=NEWDOMICON
ShowTimer=yes
DisableableFromShell=yes
Range=1.4
LineMultiplier=3
AIDefendAgainst=yes
;New Tags
DomCaptureAll=yes       ;Allowing to capture units with ImmuneToPsionics=yes
DomCaptureBuildings=yes ;Allowing to capture buildings
DomFirstAnim=PDFXCLD    ;the first animation to be played
DomSecondAnim=PDFXLOC   ;the second animation to be played
DomFireAtPercentage=20  ;when the first anim is at this percentage, the second will be played and damage be caused
DomCaptureRange=1       ;the capture range
DomCapture=yes          ;this determines whether units are captured at all
DomDamage=1000          ;damage caused
;common SW tags
Warhead=DominatorWH     ;the warhead the PsyDom uses, for damage only
ActivateSound=PsychicDominatorActivate ;this sound will be played after activating the SW (not EVA!)
Lighting=yes     ;turns custom lighting on or off
LightRed=85      ;amount of red
LightGreen=20    ;amount of green
LightBlue=30     ;amount of blue
LightAmbient=120 
LightGround=0 
LightLevel=0 
LightAmbientChangeRate=1 

You not need to put all tags, if tag isn't specified the default values are used.
However, you can leave the lighting tags out if you set Lighting=no.
You can play around with all those tags and see the results ;)

I recommend to change Msg:DominatorActive string also.

Rock Patch Help CE Main page Last change: 01.12.06