(** items in this segment are not in actual code, i am useing them for notes to clairfy each entity file.**)
AbilityColonyOrbitalCannon.entity (** This event controls targetting, and starts the next effect in the script in this case, the planet that is targetted by this script must be a planet, must be colonizeable, and must have been explored.**)
TXT
entityType "Ability"
buffInstantActionType "ApplyTargettedBuffToSelfNoRange"
instantActionTriggerType "AlwaysPerform"
buffType "BuffColonyOrbitalCannon"
targetFilter
numOwnerships 1
ownership "NoOwner"
numObjects 1
object "Planet"
numConstraints 2
constraint "IsColonizable"
constraint "IsExplored"
effectInfo
effectAttachInfo
attachType "Center"
smallEffectName ""
largeEffectName ""
soundID ""
needsToFaceTarget TRUE
canCollideWithTarget TRUE
moveThruTarget FALSE
isUltimateAbility FALSE
maxNumLevels 1
levelSourceType "ResearchWithoutBase"
improveSourceResearchSubject "RESEARCHSUBJECT_PLANETMODULEACCESS_CANNONPHASE"
aiUseTime "Anytime"
aiUseTargetCondition "Any"
isAutoCastAvailable TRUE
isAutoCastOnByDefault FALSE
pickRandomPlanetToExploreForAutoCastTarget FALSE
ignoreNonCombatShipsForAutoCastTarget TRUE
onlyAutoCastWhenDamageTakenExceedsPerc 0.000000
useCostType "AntiMatter"
antiMatterCost
Level:0 0.000000
Level:1 0.000000
Level:2 0.000000
cooldownTime
Level:0 1.000000
Level:1 0.000000
Level:2 0.000000
researchPrerequisites
NumResearchPrerequisites 0
nameStringID "IDS_ABILITY_PSIORBITALCANNON_NAME"
descStringID "IDS_ABILITY_PSIORBITALCANNON_DESC"
hudIcon "HUDICON_ABILITY_PSIORBITALCANNON"
smallHudIcon "HUDICON_ABILITY_PSIORBITALCANNON"
infoCardIcon ""
BuffColonyOrbitalCannon.entity (** this buff creates the cannon shell **)
TXT
entityType "Buff"
onReapplyDuplicateType "ReplaceWithNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable TRUE
isChannelling TRUE
numInstantActions 2
instantAction
buffInstantActionType "PlayPersistantAttachedEffect"
instantActionTriggerType "OnDelay"
delayTime 0.000000
effectInfo
effectAttachInfo
attachType "Ability"
abilityIndex 0
smallEffectName "Ability_OrbitalCannonPhaseChargeUp"
largeEffectName "Ability_OrbitalCannonPhaseChargeUp"
soundID "WEAPON_PHASEORBITALCANNON_CHARGE"
instantAction
buffInstantActionType "CreateCannonShell"
instantActionTriggerType "OnBuffFinish"
cannonShellType "CannonShellColony"
effectInfo
effectAttachInfo
attachType "Ability"
abilityIndex 0
smallEffectName "Ability_OrbitalCannonPhaseMuzzle"
largeEffectName "Ability_OrbitalCannonPhaseMuzzle"
soundID "WEAPON_PSIORBITALCANNON_MUZZLE"
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 2
finishCondition
finishConditionType "TimeElapsed"
time
Level:0 6.000000
Level:1 0.000000
Level:2 0.000000
finishCondition
finishConditionType "OwnerChanged"
CannonShellColony.entity (** This is the projectile that is fired from the cannon **)
TXT
entityType "CannonShell"
acceleration 3000.000000
startingSpeed 5000.000000
maxSpeed 100000.000000
buffToApplyOnImpact "BuffCannonShellColony"
planetImpactEffectName "Ability_OrbitalCannonPsiSurfaceImpact"
planetImpactSounds
soundCount 1
sound "EXPLOSION_CANNONSHELLTECH"
planetImpactCameraShakeMaxSize 980000.000000
planetImpactCameraShakeStrength 1.500000
planetImpactCameraShakeDuration 0.000000
meshName "CannonShellTech"
mainViewIcon "MainViewIconCannonShellPSI"
picture "PictureCannonShellPSI"
nameStringID "IDS_CANNONSHELLPSI_NAME"
descStringID "IDS_CANNONSHELLPSI_DESC"
renderMesh FALSE
minZoomDistanceMult 4.500000
hudIcon "HUDIconCannonShellTech"
smallHudIcon "HUDIconSmallCannonShellPsi"
infoCardIcon "HUDIconSmallCannonShellPsi"
minShadow 0.000000
maxShadow 0.500000
BuffCannonShellColony.entity (** the effect that occures when the shell impacts the planet **)
TXT
entityType "Buff"
onReapplyDuplicateType "ReplaceWithNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 1
instantAction
buffInstantActionType "ColonizePlanet"
instantActionTriggerType "AlwaysPerform"
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 1
finishCondition
finishConditionType "OwnerChanged"