Adding a new Nuke SW

Minimal version: 1.05b

NOTE:
NewNuke isn't working since RP 1.08.

Adding a new Nuke

The Rock Patch allows you to add clones of the Nuclear Missile.

This example clones the original Nuke, meaning it will behave exactly like the original one:

"Registering" your Nuke

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

[SuperWeaponTypes]
...
XX=NewNukeSpecial

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:

[NewNukeSpecial]
;Basic Stuff
UIName=Name:NewNuke
Name=Nuke Clone
IsPowered=true
RechargeTime=10
Type=NewNuke ;NewNuke is the type for Nuke clones
Action=NewNM ;check out the Adding custom Actions page to find out more about this
WeaponType=NukeCarrier
SidebarImage=NEWNUKEICON
ShowTimer=no
DisableableFromShell=yes
Range=7
LineMultiplier=2
;New Tags
ActivateSound=NukeSiren ;Activating sound
TakeOff=NUKETO ;taking off anim
Projectile=NukeUp
FirstAnim=NUKEBALL ;The anim played before the explosion itself
Payload=NukePayload ;Damaging weapon
Warhead=NUKE ;Damaging warhead
PsiWarning=PSIWARN ;PsiWarn animation
ScreenFlash=yes ;Does the screen flash effect occur?

Important

  • The BuildingType you assign your new nuke silo MUST have NukeSilo=yes!
  • The Payload= weapon MUST be used by something else (i.e. a dummy unit) so it does not cause an Internal Error!