Skip to content

Commit

Permalink
Remove smoke ring on underwater SACU death (FAForever#4071)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hdt80bro authored Jul 23, 2022
1 parent d6445d7 commit 41601c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion effects/Entities/SCUDeath01/SCUDeath01_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ SCUDeath01 = Class(NullShell) {
EffectThread = function(self)
local army = self:GetArmy()
local position = self:GetPosition()
self:ForkThread(self.CreateOuterRingWaveSmokeRing)
if position[2] + 2 > GetSurfaceHeight(position[1], position[3]) then
self:ForkThread(self.CreateOuterRingWaveSmokeRing)
end

-- Create full-screen glow flash
CreateLightParticle(self, -1, army, 10, 4, 'glow_02', 'ramp_red_02')
Expand Down

0 comments on commit 41601c7

Please sign in to comment.