Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 32ed4a8

Browse files
GacyrGacyr
authored andcommitted
More destroyer sound fixes
1 parent bfe8a22 commit 32ed4a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dummy.rte/Devices/Weapons/Destroyer/DestroyerCannon.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function Update(self)
1818
if self.Magazine then
1919
if self.inventorySwapTimer:IsPastSimTimeLimit() then
2020
if self.activeSound then
21-
AudioMan:StopSound(self.activeSound);
21+
self.activeSound:Stop();
2222
self.activeSound = nil;
2323
end
2424
self.charge = 0;
@@ -50,8 +50,8 @@ function Update(self)
5050
self:Deactivate();
5151

5252
if self.activeSound:IsBeingPlayed() then
53-
AudioMan:SetSoundPosition(self.activeSound, self.Pos);
54-
AudioMan:SetSoundPitch(self.activeSound, self.charge);
53+
self.activeSound.Pos = self.Pos;
54+
self.activeSound.Pitch = self.charge;
5555
else
5656
self.activeSound:Play(self.Pos);
5757
end
@@ -89,13 +89,13 @@ function Update(self)
8989
MovableMan:AddParticle(par);
9090

9191
self.charge = 0;
92-
AudioMan:StopSound(self.activeSound);
92+
self.activeSound.stop();
9393
self.activeSound = nil;
9494
end
9595
end
9696
function Destroy(self)
9797
if self.activeSound then
98-
AudioMan:StopSound(self.activeSound);
98+
self.activeSound:Stop();
9999
self.activeSound = nil;
100100
end
101101
end

0 commit comments

Comments
 (0)