Skip to content
Permalink
Browse files

Fix Thug friendly fire.

  • Loading branch information...
GoogleFrog committed Aug 7, 2019
1 parent e6b1ac0 commit 241028edab7778035e25ce1f10f6764c44a97a93
Showing with 5 additions and 2 deletions.
  1. +5 −2 scripts/shieldassault.lua
@@ -120,7 +120,6 @@ function script.AimWeapon(num, heading, pitch)
end

function script.FireWeapon()
gun_1 = not gun_1
if gun_1 then
EmitSfx(firept1, GG.Script.UNIT_SFX1)
EmitSfx(firept1, GG.Script.UNIT_SFX2)
@@ -129,7 +128,7 @@ function script.FireWeapon()

Move(r_barrel, z_axis, 0, 2.5)
Move(r_gun, z_axis, 0, 1.25)
else
else
EmitSfx(firept2, GG.Script.UNIT_SFX1)
EmitSfx(firept2, GG.Script.UNIT_SFX2)
Move(l_barrel, z_axis, -4, 0)
@@ -154,6 +153,10 @@ function script.QueryWeapon(num)
end
end

function script.EndBurst()
gun_1 = not gun_1
end

function script.BlockShot(num, targetID)
if Spring.ValidUnitID(targetID) then
local distMult = (Spring.GetUnitSeparation(unitID, targetID) or 0)/280

0 comments on commit 241028e

Please sign in to comment.
You can’t perform that action at this time.