Skip to content

Commit

Permalink
fix projectiles warning
Browse files Browse the repository at this point in the history
  • Loading branch information
shalkya committed Jul 17, 2021
1 parent 99fd7ba commit 1960bf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions lua/terranprojectiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,13 @@ TDFGaussCannonProjectile = Class(TDFGeneralGaussCannonProjectile) {
DamageArea( self, pos, radius, 1, 'Force', FriendlyFire )

self.DamageData.DamageAmount = self.DamageData.DamageAmount - 2
end

if radius > 0 then

if targetType ~= 'Shield' and targetType ~= 'Water' and targetType ~= 'Air' and targetType ~= 'UnitAir' and targetType ~= 'Projectile' then
local rotation = RandomFloat(0,2*math.pi)
local army = self.Army

CreateDecal(pos, rotation, 'nuke_scorch_002_albedo', '', 'Albedo', radius, radius, 50, 15, army)
end

end
end

MultiPolyTrailProjectile.OnImpact(self, targetType, targetEntity)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CIFArtilleryProton01 = Class(CArtilleryProtonProjectile) {
self.DamageData.DamageAmount = self.DamageData.DamageAmount - 2

if targetType ~= 'Shield' and targetType ~= 'Water' and targetType ~= 'Air' and targetType ~= 'UnitAir' and targetType ~= 'Projectile' then
local radius = self.DamageData.DamageRadius
local army = self.Army

CreateDecal( pos, RandomFloat(0.0,6.28), 'scorch_011_albedo', '', 'Albedo', radius * 2, radius * 2, 200, 150, army )
end
Expand Down

0 comments on commit 1960bf6

Please sign in to comment.