Jump to content
Sign in to follow this  
Burningmace

Adding new special ability to Jarmen Kell

Recommended Posts

I'm attempting to copy Colonel Burton's C4 abilities (Place Timed Charge, Place Remote Charge, Detonate Charges) to Jarmen Kell, but have got a problem. I have set up the CommandSet and CommandButton stuff, so the buttons show up in the game. The thing is, I can't use them. When I click them the cursor changes to the "Cannot Place Bomb" type cursor.

I thought it was something to do with Behaviour_SpecialAbility being missing for Jarmen Kell, but have found the only way to fix it is to use FinalBIG to export the so-far modded Jarmen Kell, add the special ability data and import it back in, but I get a fatal error when I do so.

 

Here's what I've inserted into FactionUnit.ini after Jarmen Kell's normal abilities:

  Behavior = SpecialAbility ModuleTag_10

    SpecialPowerTemplate = SpecialAbilityColonelBurtonRemoteCharges

    UpdateModuleStartsAttack = Yes

    InitiateSound             = ColonelBurtonVoicePlantRemoteCharge

  End



  Behavior = SpecialAbilityUpdate ModuleTag_11

    SpecialPowerTemplate = SpecialAbilityColonelBurtonRemoteCharges

    StartAbilityRange = 0.0

    PreparationTime = 0

    SpecialObject = RemoteC4Charge

    MaxSpecialObjects = 8

    SpecialObjectsPersistWhenOwnerDies = No;Charges are removed instantly when owner dies (nobody can detonate).

    AlwaysValidateSpecialObjects = Yes     ;Coupled with the above setting, this one is necessary for code optimization.

    SpecialObjectsPersistent = Yes         ;Charges are persistent till lifetime expires or owner detonates them.

    UniqueSpecialObjectTargets = Yes       ;This prevents multiple charges placed on the same object.

    UnpackTime              = 5500         ;NOTE: Modifying this value will require modifying the delay for ColonelBurtonPlantCharge

    PackTime                = 0

    SkipPackingWithNoTarget = Yes          ;When yes, the packing/unpacking will be ignored when detonating charges.

    FlipOwnerAfterUnpacking = Yes

    FleeRangeAfterCompletion = 100.0        ;Runs away after finishing ability

    UnpackSound               = ColonelBurtonPlantCharge

    LoseStealthOnTrigger      = Yes

    PreTriggerUnstealthTime   = 5000; in milliseconds

  End



  Behavior = SpecialAbility ModuleTag_12

    SpecialPowerTemplate = SpecialAbilityColonelBurtonTimedCharges

    UpdateModuleStartsAttack = Yes

    InitiateSound             = ColonelBurtonVoicePlantTimedCharge

  End



  Behavior = SpecialAbilityUpdate ModuleTag_13

    SpecialPowerTemplate = SpecialAbilityColonelBurtonTimedCharges

    StartAbilityRange = 0.0

    PreparationTime = 0

    SpecialObject = TimedC4Charge

    MaxSpecialObjects = 10

    SpecialObjectsPersistWhenOwnerDies = Yes 

    SpecialObjectsPersistent = Yes         ;Charges are persistent till lifetime expires or owner detonates them.

    UniqueSpecialObjectTargets = Yes       ;This prevents multiple charges placed on the same object.

    UnpackTime              = 5500         ;NOTE: Modifying this value will require modifying the delay for ColonelBurtonPlantCharge

    FlipOwnerAfterUnpacking = Yes

    FleeRangeAfterCompletion = 100.0        ;Runs away after finishing ability

    UnpackSound               = ColonelBurtonPlantCharge

    LoseStealthOnTrigger      = Yes

    PreTriggerUnstealthTime   = 5000; in milliseconds

  End

 

How do I get this to work?

Share this post


Link to post

I think the wrong part is in the command button/command sets part. Show me the codes of the command button and command sets of your new jarmen kell.

 

And if it's not about the com button/com sets. It might be because you set the wrong or forgot adding the specific parameter.

Share this post


Link to post

I don't need to make this mod any more, Zero Hour did it for me :)

 

Jarmen Kell automatically gets the demo charges in ZH.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×