OK i tried to make a tomahawkStrike for my mod, but when i try it it wont load the game. heres my code:
CommandButton.ini
Code:
CommandButton Command_TomahawkStrike
Command = SPECIAL_POWER
SpecialPower = SpecialPowerTomahawkStrike
Options = NEED_TARGET_POS CONTEXTMODE_COMMAND NEED_SPECIAL_POWER_SCIENCE OK_FOR_MULTI_SELECT
TextLabel = CONTROLBAR:SpyDrone
ButtonImage = SAScout
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipFireSpyDrone
RadiusCursorType = SPYDRONE
InvalidCursorName = GenericInvalid
End
CommandSet.ini
Code:
; Structure Command Sets ------------------------------------------------------
CommandSet AmericaCommandCenterCommandSet
1 = Command_ConstructAmericaDozer
5 = Command_A10ThunderboltMissileStrike
6 = Command_Paradrop
7 = Command_TomahawkStrike
8 = Command_EmergencyRepair
9 = Command_DaisyCutter
10 = Command_SpySatelliteScan
11 = Command_SetRallyPoint
12 = Command_Sell
End
ObjectCreationList.ini
Code:
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
ObjectCreationList SUPERWEAPON_TomahawkStrike
DeliverPayload
Transport = ChinaArtilleryCannon
FormationSize = 1
FormationSpacing = 1.0
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
MaxAttempts = 1 ;max attempts
DeliveryDistance = 250 ;distance from target allowed to start/stop dropping.
WeaponErrorRadius = 5 ; how bad the artillerist is
DelayDeliveryMax = 3000 ; his delayed reaction to "Fire!"
VisibleItemsDroppedPerInterval = 1 ;Drops two bombs at a time
VisibleDropBoneBaseName = RootTransform ;The bombs are created and dropped at this bone base
VisibleSubObjectBaseName = Bomb ;The bombs are visible until dropped.
VisibleNumBones = 1 ;Number of bones.
VisiblePayloadTemplateName = TomahawkMissile ;Created when payload is dropped.
VisiblePayloadWeaponTemplate = ArtilleryBarrageDamageWeapon
InheritTransportVelocity = Yes ;The bombs will start at transport velocity.
ExitPitchRate = 30 ;The bomb will pitch down.
SelfDestructObject = Yes ; so the delivery vehicle goes away 'POP!'
DeliveryDecalRadius = 50
DeliveryDecal
Texture = SCCArtilleryBarrage_China
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:255 G:156 B:0 A:255
OnlyVisibleToOwningPlayer = No
End
End
End
Science.ini
Code:
Science SCIENCE_TomahawkStrike
PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank1
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:USASpyDrone
Description = CONTROLBAR:ToolTipUSAScienceSpyDrone
End
SpecialPower.ini
Code:
;-----------------------------------------------------------------------------
SpecialPower SuperweaponTomahawkStrike
Enum = SPECIAL_ARTILLERY_BARRAGE
ReloadTime = 150000 ; in milliseconds. min is 2x door/open close time!
RequiredScience = SCIENCE_TomahawkStrike
InitiateSound = FireArtilleryCannonSound
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 30000
ViewObjectRange = 250
RadiusCursorRadius = 125
End
Weapon.ini
Code:
;------------------------------------------------------------------------------
Weapon TomahawkStrikeDamageWeapon
PrimaryDamage = 1000.0 ;GS changed to what it was secretly doing pending review
PrimaryDamageRadius = 10.0
AttackRange = 100.0
DamageType = EXPLOSION
DeathType = EXPLODED
WeaponSpeed = 99999.0
ProjectileDetonationFX = FX_ArtilleryBarrage
RadiusDamageAffects = ENEMIES NEUTRALS ALLIES
DelayBetweenShots = 0 ; time between shots, msec
ClipSize = 1 ; how many shots in a Clip (0 == infinite)
ClipReloadTime = 0 ; how long to reload a Clip, msec
AutoReloadsClip = No
End
Dont worry about the spy drone stuff unless its causing the thig to screw up, i just replaced the Spydrone with the TomahawkStrike for testing, and i dont have a cameo for the Strike yet so i just use the spydrone one.