Adding a new SpyPlane SW
Minimal version: 1.06
The Rock Patch allows you to add working clones of the SpyPlane, which can also be turned into Airstrikes.
This example adds a common Airstrike calling in 2 MIGs.
Head to the [SuperWeaponTypes] section and add your own SuperWeapon to the end of the list.
[SuperWeaponTypes] ... XX=AirstrikeSpecial
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:
[AirstrikeSpecial]
UIName=Name:Airstrike
Name=Airstrike
IsPowered=false
RechargeTime=4
Type=SpyPlane ;SpyPlane is the type for SpyPlane clones or Airstrikes
Action=NewSpyPlane ;check out the Adding custom Actions page to find out more about this
SidebarImage=AIRSTRIKEICON
ShowTimer=no
DisableableFromShell=no
FlashSidebarTabFrames=120
;New Tags
SpyPlane=BPLN ;incoming AircraftType, either the SpyPlane or the one performing an airstrike
SpyPlanesNum=2 ;amount of planes coming in
IsAirstrike=yes ;default is no; if no, it will be a usual SpyPlane
An airstrike plane can only attack once, then it flies out.
If the range of the attacking plane's weapon is below 2, it is possible that the plane flies out backwards.
A pure clone of the original would call 1 SPYP, with IsAirstrike=no, of course.
Rock Patch Help CE
Main page
Last change: 20.12.06