Adding a new Lightning Storm SW
RockPatch allow 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=LightningStorm ;LightningStorm is the type for Lightning Storm 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
Warhead=IonWH ;Warhead used by lightning storm strike
LStormPrintText=yes
LStormText=TXT_LIGHTNING_STORM
LStormText2=TXT_LIGHTNING_STORM_APPROACHING
LStormDeferment=250 ;Number of frames between announcement of strike and its commencement
LStormDamage=250 ;Damage done by lightning strike
LStormDuration=180 ;Default lightning storm duration in frames
LStormHitDelay=10 ;How often the direct target gets hit in frames
LStormScatterDelay=5 ;Frame delay between random bolts (decreasing this might hit the performance
LStormCellSpread=10 ;How far away can random bolts go (n by n square)
LStormSeparation=3 ;Distance in cells between clouds/bolts
LStormSound=WeatherIntro ;Sound when weather controller storm starts.
LStormSounds=WeatherStrike ;Sounds for various lightning bolts.
LStormClouds=WCCLOUD1,WCCLOUD2,WCCLOUD3 ;The clouds used to show
LStormBolts=WCLBOLT1,WCLBOLT2,WCLBOLT3 ;The lightning bolts used to show
LStormBoltExplosion=EXPLOLB ;Bolt explosion
;*********************
LStormDisableUnits=yes ; ONLY FOR TESTING !!!
;*********************
;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
I recommend to change Msg:LightningStormActive string also.
Rock Patch Help CE
Main page
Last change: 13.02.07