IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Stickybombs
GearsGoAwryMan
post 2 Apr 2017, 22:46
Post #1



Group Icon

Group: Members
Posts: 53
Joined: 17 July 2015
Member No.: 11785



Does anyone know how the code for stickybombs actually fundamentally works? I copied colonel burton's code to create a tag that would allow me to tag enemies for vision, but it adheres to the same rules as burton's bombs, so it won't target infantry, and using it from range on buildings results in the tag getting stuc kon the firing position. Also, is there any way to change the 2d grpahic used? I cannot seem to find where the stickybomb actually refers to any of the art, and where it specifies which art/2danimation to use.

Here's the used code. I'm firing the tag from a pathfinder:

in the unit object:

CODE



Behavior = SpecialAbility ModuleTag_08tag
SpecialPowerTemplate = SpecialAbilityFlyboyTag
UpdateModuleStartsAttack = Yes
InitiateSound = ColonelBurtonVoicePlantRemoteCharge
End
Behavior = SpecialAbilityUpdate ModuleTag_09tag
SpecialPowerTemplate = SpecialAbilityFlyboyTag
StartAbilityRange = 300.0
PreparationTime = 0
SpecialObject = FlyboyTag
MaxSpecialObjects = 99
SpecialObjectsPersistWhenOwnerDies = Yes ;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 = 100 ;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 = No
FleeRangeAfterCompletion = 100.0 ;Runs away after finishing ability
UnpackSound = PathfinderWeapon
LoseStealthOnTrigger = No
PreTriggerUnstealthTime = 5000 ; in milliseconds
End







in specialpowers.ini:

CODE



SpecialPower SpecialAbilityFlyboyTag
Enum = SPECIAL_REMOTE_CHARGES
ReloadTime = 30000 ; in milliseconds
PublicTimer = No
End


Images:

Buildings tagged

Vehicles tagged


This post has been edited by GearsGoAwryMan: 2 Apr 2017, 22:50
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 28 March 2024 - 23:07