Skip to content

Commit

Permalink
Add Ghost alt model
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziktofel committed Jun 10, 2024
1 parent 4bf2ff7 commit 7930626
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Mods/ArchipelagoPlayer.SC2Mod/Base.SC2Data/GameData/ActorData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3638,6 +3638,9 @@
<Aliases value="_UnitSmall"/>
<Macros value="UnloadDropAnim"/>
<On Terms="UnitBirth.AP_GhostResourceEfficiency" Send="Create"/>
<On Terms="ActorCreation; ModelVariation 0" Send="ModelSwap Ghost"/>
<On Terms="ActorCreation; ModelVariation 1" Send="Create AP_GhostAlternate"/>
<On Terms="ActorCreation; ModelVariation 1" Send="Destroy"/>
<On Terms="Abil.AP_TacNukeStrike.SourceCastStart" Send="AnimPlay SpellA Spell,A"/>
<On Terms="Abil.AP_TacNukeStrike.SourceCastStop" Send="AnimClear SpellA"/>
<On Terms="Abil.AP_TacNukeStrike.SourceChannelStart" Send="AnimPlay SpellB Spell,B PlayForever"/>
Expand Down Expand Up @@ -3668,7 +3671,7 @@
<On Terms="WeaponStop.*.AttackStop" Send="AnimBracketStop Attack"/>
<On Terms="Abil.attack.ReadyStop" Send="AnimGroupRemove Ready"/>
<On Terms="AbilMorph.*.Start; MorphTo AP_GhostAlternate" Send="Destroy"/>
<Model value="Ghost"/>
<Model value="AP_GhostVariationController"/>
<AnimBlendTime value="-0.800000"/>
<ModelFlags index="OutlineEmitter" value="1"/>
<BuildModel value="Ghost"/>
Expand All @@ -3691,7 +3694,7 @@
</GroupIcon>
<HeroIcon value="Assets\Textures\btn-unit-terran-ghost.dds"/>
<LifeArmorIcon value="Assets\Textures\btn-upgrade-terran-infantryarmorlevel0.dds"/>
<SelectAbilCmd value="EMP,Execute"/>
<SelectAbilCmd value="AP_EMP,Execute"/>
<SoundArray index="Ready" value="Ghost_Ready"/>
<SoundArray index="Help" value="Ghost_Help"/>
<SoundArray index="What" value="Ghost_What"/>
Expand Down Expand Up @@ -3738,6 +3741,7 @@
<On Terms="WeaponStop.*.AttackStop" Send="AnimBracketStop Attack"/>
<On Terms="Abil.attack.ReadyStop" Send="AnimGroupRemove Ready"/>
<AnimBlendTime value="-0.800000"/>
<Model value="GhostAlternate"/>
<ModelFlags index="OutlineEmitter" value="1"/>
<DeathArray index="Normal" ModelLink="GhostAlternateDeath" SoundLink="Ghost_Explode"/>
<DeathArray index="Blast" ModelLink="GhostAlternateDeathBlast"/>
Expand All @@ -3758,7 +3762,13 @@
<HeroIcon value="Assets\Textures\btn-unit-terran-ghost.dds"/>
<HighlightTooltip value="Unit/Name/AP_GhostAlternate"/>
<LifeArmorIcon value="Assets\Textures\btn-upgrade-terran-infantryarmorlevel0.dds"/>
<SelectAbilCmd value="EMP,Execute"/>
<SelectAbilCmd value="AP_EMP,Execute"/>
<SoundArray index="Ready" value="GhostAlternate_Ready"/>
<SoundArray index="Help" value="GhostAlternate_Help"/>
<SoundArray index="What" value="GhostAlternate_What"/>
<SoundArray index="Yes" value="GhostAlternate_Yes"/>
<SoundArray index="Attack" value="GhostAlternate_Attack"/>
<SoundArray index="Pissed" value="GhostAlternate_Pissed"/>
<UnitIcon value="Assets\Textures\btn-unit-terran-ghost.dds"/>
<Wireframe>
<Image value="Assets\Textures\wireframe-terran-ghost.dds"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14521,4 +14521,12 @@
<ScaleMax value="2.000000,2.000000,2.000000"/>
<ScaleMin value="2.000000,2.000000,2.000000"/>
</CModel>
<CModel id="AP_GhostVariationController" parent="DarkTemplar">
<!--
A controller that gets replaced to the real model upon actor creation.
Parent is set to a model that has actually two variants, so no warning is emitted due to lacking a model file.
The variation gets rolled randomly. Then the Actor handles which exact model shall be used.
-->
<VariationCount value="2"/>
</CModel>
</Catalog>

0 comments on commit 7930626

Please sign in to comment.