(Just a prelude, I posted this over at cncden when the site was down, since nobody over there is really taking an interest in the thread, I figure ill spam it over to here

, so sorry if parts of it are a little related to there (or the spelling / grammer is awful), but I need to get to the gym now, and wanted to post this before I went.)
Hey
I read Slees (over at cncden) article on super weapon additions and general weapon additions, thinking itd help me on a power I was trying to add, while it went a long way towards showing me what I specifically needed to do, it didnt quite get me the entire way, and after spending most of the evening working on it, I figured I might just ask.
Im currently trying to add an ability to the GLA which places a timed c4 charge on any given vehicle or structure, now ive added most of the required items from the tutorial, but obviously some wouldnt be needed (the napalm plane and weapon.)
The current responce from the files is to enable the user to select the power, and to get the timed c4 icon, however, you cant place it on anything.
Heres the contents of some of the files currently:
Special Power:
*I also tried enum = Special_Timed_Charge, or something similar*
SpecialPower SuperweaponGLADetonation ;The name we will refer to in other ini's
Enum = SPECIAL_CASH_HACK ;Ok I dont really know what this bit does(HELP?)
ReloadTime = 300000 ; in milliseconds ;it will take 300 secs (5 mins) to reload
InitiateSound = AirRaidSiren ;When fired it makes this sound
InitiateAtLocationSound = NukeAirRaidSiren ;The sound plays around where we are targeting
RequiredScience = SCIENCE_GLADetonation ;the science from previous tutorial
PublicTimer = No ;Other players cant see the power countdown
SharedSyncedTimer = Yes ;See below
ViewObjectDuration = 30000 ;We will see the target area for this long
ViewObjectRange = 250 ;How far player can see around target area
;RadiusCursorRadius = 100 ;How big the target cursor is (match this to OCL)
End
Object Creation List:
ObjectCreationList SUPERWEAPON_GLADetonation
CreateObject
ObjectNames = TimedC4Charge
Count = 1
ContainInsideSourceObject = Yes
End
End
Snippit in the commandcenter
Behavior = OCLSpecialPower ModuleTag_Napalm ;Tell the game we are going to create an object by giving it this behaviour
SpecialPowerTemplate = SuperweaponGLADetonation ;This is all to do with this specialpower
OCL = SUPERWEAPON_GLADetonation ;Reference this from the OCL to create the transport
CreateLocation = CREATE_AT_LOCATION ;create at the closet edge nearest where we are firing from (CommandCenter)
End
Command button
CommandButton Command_GLADetonation
Command = SPECIAL_POWER
SpecialPower = SuperweaponGLADetonation
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = SCIENCE:GLADetonation
ButtonImage = SUSuicideAttk
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:ToolTipGLAScienceGLADetonation
CursorName = PlaceTimedCharge
InvalidCursorName = PlaceChargeInvalid
End
CommandButton Command_GLADetonationFromCommandCenter
Command = SPECIAL_POWER_FROM_SHORTCUT
SpecialPower = SuperweaponGLADetonation
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = SCIENCE:GLADetonation
ButtonImage = SUSuicideAttk
; ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:ToolTipGLAScienceGLADetonation
CursorName = PlaceTimedCharge
InvalidCursorName = PlaceChargeInvalid
End
That should be all thats actually needed to be seen to affect what the weapon does.
Does anyone know how to make this work? or see what I might be doing wrong?
Thanks for your time
Pill