Skip to content

Commit

Permalink
Fix a bug that prevents Hellions from hiting their target at max rang…
Browse files Browse the repository at this point in the history
…e if they have range buffs
  • Loading branch information
Ziktofel committed Oct 8, 2024
1 parent cd1881b commit 9f59ef3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2981,7 +2981,7 @@
</CActorPortrait>
<CActorAction id="AP_HellionAttack" parent="GenericAttackBase">
<On Terms="Effect.AP_InfernalFlameThrower.Start; At Caster; FromEffectTreeDescendant" Send="ActionDamage"/>
<On Terms="Effect.AP_InfernalFlameThrowerCP.Start; At Caster; !ValidatePlayer AP_HasHellionInfernalPreIgniter" Send="Create"/>
<On Terms="Effect.AP_InfernalFlameThrowerSet.Start; At Caster; !ValidatePlayer AP_HasHellionInfernalPreIgniter" Send="Create"/>
<LaunchAssets Model="" Sound="Hellion_AttackLaunch"/>
<BeamScope value="Caster"/>
<Missile value="HellionAttackBaseMissile"/>
Expand All @@ -3002,6 +3002,7 @@
<On Terms="ActorOrphan" Send="Destroy"/>
<On Terms="ActorCreation; ValidateUnit AP_HasHellionInfernalPreIgniter" Send="ModelSwap HellionUpgradeAttackBeam"/>
<On Terms="ActorCreation; ValidateUnit AP_HasTwinLinkedFlameThrowers" Send="SetScale 1.800000,1.000000,1.000000"/>
<On Terms="ActorCreation" Send="SetScaleFromWeaponRange 0.000000,1.000000,0.000000"/>
<Model value="HellionAttackBeam"/>
</CActorBeamSimple>
<CActorSite id="AP_HellionAttackBeamImpactSite">
Expand All @@ -3028,7 +3029,7 @@
</CActorRegionCircle>
<CActorAction id="AP_HellionUpgradedAttack" parent="GenericAttackBase">
<On Terms="Effect.AP_InfernalFlameThrower.Start; At Caster; FromEffectTreeDescendant" Send="ActionDamage"/>
<On Terms="Effect.AP_InfernalFlameThrowerCP.Start; At Caster; ValidatePlayer AP_HasHellionInfernalPreIgniter" Send="Create"/>
<On Terms="Effect.AP_InfernalFlameThrowerSet.Start; At Caster; ValidatePlayer AP_HasHellionInfernalPreIgniter" Send="Create"/>
<LaunchAssets Model="" Sound="Hellion_AttackLaunch"/>
<Beam value="AP_HellionAttackBeam"/>
<BeamScope value="Caster"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,25 @@
<Amount value="10"/>
<Death value="Fire"/>
</CEffectDamage>
<CEffectSet id="AP_InfernalFlameThrowerWrapper">
<EffectArray value="AP_InfernalFlameThrower"/>
<ValidatorArray value="AP_TargetInWeaponRange"/>
</CEffectSet>
<CEffectEnumArea id="AP_InfernalFlameThrowerSearch">
<EditorCategories value="Race:Terran"/>
<ImpactLocation Value="TargetPoint"/>
<ExcludeArray Value="Target"/>
<SearchFilters value="Ground;Player,Ally,Missile,Stasis,Dead,Hidden,Invulnerable"/>
<AreaArray RectangleWidth="0.15" RectangleHeight="20" Effect="AP_InfernalFlameThrowerWrapper"/>
</CEffectEnumArea>
<CEffectCreatePersistent id="AP_InfernalFlameThrowerCPFailsafe">
<EditorCategories value="Race:Terran"/>
<WhichLocation Value="SourcePoint"/>
<PeriodCount value="1"/>
<PeriodicEffectArray value="AP_InfernalFlameThrowerSearch"/>
<PeriodicOffsetArray value="0,-10,0"/>
<PeriodicPeriodArray value="0"/>
</CEffectCreatePersistent>
<CEffectCreatePersistent id="AP_InfernalFlameThrowerCP">
<EditorCategories value="Race:Terran"/>
<WhichLocation Value="SourcePoint"/>
Expand Down Expand Up @@ -611,8 +630,9 @@
</CEffectEnumArea>
<CEffectSet id="AP_InfernalFlameThrowerSet">
<EditorCategories value="Race:Terran"/>
<EffectArray value="AP_InfernalFlameThrower"/>
<EffectArray value="AP_InfernalFlameThrowerCP"/>
<EffectArray value="AP_InfernalFlameThrower"/>
<EffectArray value="AP_InfernalFlameThrowerCPFailsafe"/>
</CEffectSet>
<CEffectCreateUnit id="AP_HellbatLeap">
<EditorCategories value="Race:Zerg"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2650,6 +2650,7 @@
<CUpgrade id="AP_TwinLinkedFlameThrowers">
<Flags index="UpgradeCheat" value="0"/>
<EffectArray Operation="Set" Reference="Effect,AP_InfernalFlameThrowerE,AreaArray[0].Radius" Value="0.5"/>
<EffectArray Operation="Set" Reference="Effect,AP_InfernalFlameThrowerSearch,AreaArray[0].RectangleWidth" Value="0.5"/>
<EffectArray Reference="Effect,AP_HellionTankSearch,AreaArray[0].Radius" Value="1"/>
<EffectArray Operation="Set" Reference="Effect,AP_HellionTankSearch,AreaArray[0].Arc" Value="67.500000"/>
<EditorCategories value="Race:Terran,UpgradeType:Talents"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<Period value="2.5"/>
<DamagePoint value="0.25"/>
<Backswing value="0.75"/>
<Effect value="AP_InfernalFlameThrowerCP"/>
<Effect value="AP_InfernalFlameThrowerSet"/>
<LegacyOptions index="LockTurretWhileFiring" value="1"/>
</CWeaponLegacy>
<CWeaponLegacy id="AP_Vulture">
Expand Down

0 comments on commit 9f59ef3

Please sign in to comment.