Adding a new Lightning Storm SW

Minimal version: 1.08

Adding a new "Lightning Storm"

Version 1.08 of the RockPatch allows you to add working clones of the Lightning Storm SuperWeapon.

This example clones the Lightning Storm; the clone will behave exactly like the original one.

"Registering" your Lightning Storm

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

[SuperWeaponTypes]
...
XX=NewLSSpecial

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:

[NewLSSpecial]
;Basic Stuff
UIName=Name:NewLightningStorm
Name=Lightning Storm Clone
IsPowered=true
RechargeTime=10
Type=NewLightningStorm ;NewDominator is the type for Psychic Dominator clones
Action=NewLS ;check out the 
    Adding custom Actions page to find out more about this
SidebarImage=NEWLSICON
ShowTimer=yes
DisableableFromShell=yes
Range=7
LineMultiplier=2
AIDefendAgainst=yes
;New Tags
LightningPrintText=yes
LightningText=TXT_LIGHTNING_STORM
LightningDeferment=250      ;Number of frames between announcement of strike and its commencement
LightningDamage=250         ;Damage done by lightning strike
LightningStormDuration=180  ;Default lightning storm duration in frames
LightningWarhead=IonWH      ;Warhead used by lightning storm strike
LightningHitDelay=10        ;How often the direct target gets hit in frames
LightningScatterDelay=5     ;Frame delay between random bolts (decreasing this might hit the performance
LightningCellSpread=10      ;How far away can random bolts go (n by n square)
LightningSeparation=3       ;Distance in cells between clouds/bolts
StormSound=WeatherIntro     ;Sound when weather controller storm starts.
LightningSounds=WeatherStrike                  ;Sounds for various lightning bolts.
WeatherConClouds=WCCLOUD1,WCCLOUD2,WCCLOUD3	;The clouds used to show
WeatherConBolts=WCLBOLT1,WCLBOLT2,WCLBOLT3	;The lightning bolts used to show
WeatherConBoltExplosion=EXPLOLB		;Bolt explosion
;Light stuff
LightRed=100 ;amount of red
LightGreen=100 ;amount of green
LightBlue=100 ;amount of blue
LightAmbient=100
LightGround=0 
LightLevel=3
Lighting=yes 

Note that the "New Tags" should all be there if you use a Lightning Storm clone. However, you can leave the lighting tags out if you set Lighting=no. You can play around with all of those tags and see the results ;)