Adding a new Psychic Dominator SW
Minimal version: 1.07
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=NewDominator ;NewDominator is the type for Psychic Dominator clones
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
DomWarhead=DominatorWH ;the warhead the PsyDom clone uses, for damage only
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
ActivateSound=PsychicDominatorActivate ;this sound will be played after activating the SW (not EVA!)
;Light stuff
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
;New Tags (RP 1.08 SE)
DomCaptureAll=yes ;Allowing to capture units with ImmuneToPsionics=yes
DomCaptureBuildings=yes ;Allowing to capture buildings
Note that the "New Tags" should all be there if you use a Psychic Dominator clone.
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 ;)
NOTES
DomCapture not working in RP 1.08 SE Revision #0027
Before RP 1.08, you should use DomActivateSound instead of ActivateSound