Hi everyone. So obviously superweapons cant phase jump or move... but I have an idea to create an "Emergency Jump" ability which appears as though the superweapon jumps away and then re-spawns in the adjacent gravity well. So this is how I would like to do it:
1) If the superweapon is under attack, (also want it to autocast when damage is at 40%) you can click on the Emergency Jump ability which is actually a self-destruct ability, although the effects I have used make it appear as though it is phase jumping rather than detonating. The ability needs to be researched. The phase jump will cause damage to nearby ships/structures due to jumping within a gravity well... so I'll leave that action type.
2) The super weapon is re-spawned in the adjacent gravity well immediately after it has Emergency Jumped, however it is now a Frigate using the super weapon mesh and abilities. I have NO idea how to make it spawn in the adjacent well
Files below - I know these are probably completely wrong..... Please help!!!
ABILITY FILE
TXT
entityType "Ability"
buffInstantActionType "ApplyBuffToSelf"
instantActionTriggerType "AlwaysPerform"
buffType "BuffCylonEmergencyJumpSelf"
effectInfo
effectAttachInfo
attachType "Invalid"
smallEffectName ""
mediumEffectName ""
largeEffectName ""
soundID "EFFECT_LASTRESORT"
needsToFaceTarget FALSE
canCollideWithTarget TRUE
moveThruTarget FALSE
isUltimateAbility FALSE
maxNumLevels 1
levelSourceType "FixedLevel0"
sourcePropertyType "AbilityCLevel"
aiUseTime "OnlyWhenAboutToDie"
aiUseTargetCondition "Any"
isAutoCastAvailable TRUE
isAutoCastOnByDefault FALSE
pickRandomPlanetToExploreForAutoCastTarget FALSE
ignoreNonCombatShipsForAutoCastTarget TRUE
onlyAutoCastWhenDamageTakenExceedsPerc 0.400000
useCostType "None"
cooldownTime
Level:0 60.000000
Level:1 0.000000
Level:2 0.000000
Level:3 0.000000
orderAcknowledgementType "ONGENERALORDERISSUED"
researchPrerequisites
NumResearchPrerequisites 0
RequiredFactionNameID ""
RequiredCompletedResearchSubjects 0
nameStringID "IDS_ABILITY_CYLON_EMERGENCYJUMP_NAME"
descStringID "IDS_ABILITY_CYLON_EMERGENCYJUMP_DESCRIPTION"
hudIcon "HUDICON_RESEARCHSUBJECT_CYLON_DEFENSESYSTEMS_EMERGENCYJUMP"
smallHudIcon "HUDICON_RESEARCHSUBJECT_CYLON_DEFENSESYSTEMS_EMERGENCYJUMP"
infoCardIcon ""
BUFF FILE: BuffCylonEmergencyJumpSelf
TXT
entityType "Buff"
onReapplyDuplicateType "PrioritizeNewBuffs"
buffStackingLimitType "ForAllPlayers"
stackingLimit 1
allowFirstSpawnerToStack FALSE
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 3
instantAction
buffInstantActionType "SpawnShipsAtPlanet"
instantActionTriggerType "OnDelay"
spawnShipsLevelCount 1
spawnShips
minFleetPoints 1.000000
maxFleetPoints 1.000000
requiredShipCount 1
requiredShip
type "FrigateCylonSuperWeapon"
minCount 1
maxCount 1
randomShipCount 0
spawnShipsArrivalDelayTime 0.000000
spawnShipsHyperspaceSpawnType "FleetBeacon"
instantAction
buffInstantActionType "MakeDead"
instantActionTriggerType "OnDelay"
delayTime 3.000000
instantAction
buffInstantActionType "ApplyBuffToTargetsInRadiusWithTravel"
instantActionTriggerType "OnDelay"
delayTime 3.000000
buffType "BuffCylonEmergencyJumpTarget"
targetFilter
numOwnerships 2
ownership "Friendly"
ownership "Enemy"
numObjects 7
object "CapitalShip"
object "Frigate"
object "PlanetModule"
object "StarBase"
object "Titan"
object "Corvette"
object "Fighter"
numSpaces 1
space "Normal"
numConstraints 0
range
Level:0 8000.000000
Level:1 12000.000000
Level:2 0.000000
Level:3 0.000000
maxTargetCount
Level:0 -1.000000
Level:1 -1.000000
Level:2 -1.000000
Level:3 -1.000000
effectInfo
effectAttachInfo
attachType "Center"
smallEffectName "Ability_MassDisorientationSelf"
mediumEffectName "Ability_MassDisorientationSelf"
largeEffectName "Ability_MassDisorientationSelf"
soundID ""
travelSpeed 5000.000000
effectStaggerDelay 0.000000
hasWeaponEffects FALSE
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 1
finishCondition
finishConditionType "AllOnDelayInstantActionsDone"