Skip to content

Commit

Permalink
Greased Tremor rotary drive.
Browse files Browse the repository at this point in the history
  • Loading branch information
GoogleFrog committed Feb 15, 2021
1 parent 82bf9b8 commit 13914e0
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions scripts/tankheavyarty.lua
Expand Up @@ -212,32 +212,29 @@ function script.AimWeapon(num, heading, pitch)
return true
end

function script.FireWeapon()
function script.EndBurst()
EmitSfx(shell, 1024)
gun_1 = gun_1 + 1
if gun_1 > 3 then
gun_1 = 1
end

if gun_1 == 1 then
Show(flare1)
Hide(flare1)
Move(brl1, z_axis, BARREL_RECOIL)
Move(brl1, z_axis, BARREL_EXTEND, BARREL_RESTORE_SPEED)
elseif gun_1 == 2 then
Show(flare2)
Hide(flare2)
Move(brl2, z_axis, BARREL_RECOIL)
Move(brl2, z_axis, BARREL_EXTEND, BARREL_RESTORE_SPEED)
else
Show(flare3)
Hide(flare3)
Move(brl3, z_axis, BARREL_RECOIL)
Move(brl3, z_axis, BARREL_EXTEND, BARREL_RESTORE_SPEED)
end
Move(bolt, z_axis, BOLT_RECOIL)
Move(bolt, z_axis, 0, BOLT_RESTORE_SPEED)
Turn(triple, z_axis, math.rad(-120), TRIPLE_SPEED)

gun_1 = gun_1 + 1
if gun_1 > 3 then
gun_1 = 1
end

Sleep(100)
Turn(triple, z_axis, math.rad(-120)*(gun_1 - 1), TRIPLE_SPEED)
end

function script.QueryWeapon(num)
Expand Down

0 comments on commit 13914e0

Please sign in to comment.