Skip to content

Commit

Permalink
Fix order of execution of overcharge projectiles (FAForever#4599)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas authored Jan 17, 2023
1 parent f8b4ff0 commit fcc2707
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions projectiles/ADFOverCharge01/ADFOverCharge01_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ TDFOverCharge01 = ClassProjectile(ALaserBotProjectile, OverchargeProjectile) {
FxImpactLand = EffectTemplate.ACommanderOverchargeHit01,

OnImpact = function(self, targetType, targetEntity)
OverchargeProjectile.OnImpact(self, targetType, targetEntity)
ALaserBotProjectile.OnImpact(self, targetType, targetEntity)
OverchargeProjectile.OnImpact(self, targetType, targetEntity)
end,

OnCreate = function(self)
OverchargeProjectile.OnCreate(self)
ALaserBotProjectile.OnCreate(self)
OverchargeProjectile.OnCreate(self)
end,
}
TypeClass = TDFOverCharge01
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ CDFCannonMolecular01 = ClassProjectile(CMolecularCannonProjectile, OverchargePro
FxImpactLand = EffectTemplate.CCommanderOverchargeHit01,

OnImpact = function(self, targetType, targetEntity)
OverchargeProjectile.OnImpact(self, targetType, targetEntity)
CMolecularCannonProjectile.OnImpact(self, targetType, targetEntity)
OverchargeProjectile.OnImpact(self, targetType, targetEntity)
end,

OnCreate = function(self)
OverchargeProjectile.OnCreate(self)
CMolecularCannonProjectile.OnCreate(self)
OverchargeProjectile.OnCreate(self)
end,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ local OverchargeProjectile = import("/lua/sim/DefaultProjectiles.lua").Overcharg

SDFChronatronCannon02 = ClassProjectile(SChronatronCannonOverCharge, OverchargeProjectile) {
OnImpact = function(self, targetType, targetEntity)
OverchargeProjectile.OnImpact(self, targetType, targetEntity)
SChronatronCannonOverCharge.OnImpact(self, targetType, targetEntity)
OverchargeProjectile.OnImpact(self, targetType, targetEntity)
end,

OnCreate = function(self)
OverchargeProjectile.OnCreate(self)
SChronatronCannonOverCharge.OnCreate(self)
OverchargeProjectile.OnCreate(self)
end,
}
TypeClass = SDFChronatronCannon02
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ local OverchargeProjectile = import("/lua/sim/DefaultProjectiles.lua").Overcharg

SDFLightChronatronCannon02 = ClassProjectile(SLightChronatronCannonOverCharge, OverchargeProjectile) {
OnImpact = function(self, targetType, targetEntity)
OverchargeProjectile.OnImpact(self, targetType, targetEntity)
SLightChronatronCannonOverCharge.OnImpact(self, targetType, targetEntity)
OverchargeProjectile.OnImpact(self, targetType, targetEntity)
end,

OnCreate = function(self)
OverchargeProjectile.OnCreate(self)
SLightChronatronCannonOverCharge.OnCreate(self)
OverchargeProjectile.OnCreate(self)
end,
}
TypeClass = SDFLightChronatronCannon02
4 changes: 2 additions & 2 deletions projectiles/TDFOverCharge01/TDFOverCharge01_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ TDFOverCharge01 = ClassProjectile(TLaserBotProjectile, OverchargeProjectile) {
FxImpactAirUnit = EffectTemplate.TCommanderOverchargeHit01,

OnImpact = function(self, targetType, targetEntity)
OverchargeProjectile.OnImpact(self, targetType, targetEntity)
TLaserBotProjectile.OnImpact(self, targetType, targetEntity)
OverchargeProjectile.OnImpact(self, targetType, targetEntity)
end,

OnCreate = function(self)
OverchargeProjectile.OnCreate(self)
TLaserBotProjectile.OnCreate(self)
OverchargeProjectile.OnCreate(self)
end,
}

Expand Down

0 comments on commit fcc2707

Please sign in to comment.