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

Commit c660ba9

Browse files
committed
Correct PlaySound calls
1 parent 19da3c8 commit c660ba9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Base.rte/Devices/Explosives/AntiPersonnelMine/MineSet.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function Update(self)
6868
self.RotAngle = self.faceDirection-(math.pi/2);
6969
self.PinStrength = self.GibImpulseLimit;
7070
self.actionPhase = 1;
71-
AudioMan:PlaySound("Base.rte/Devices/Explosives/AntiPersonnelMine/Sounds/MineActivate.wav", SceneMan:TargetDistanceScalar(self.Pos), false, true, -1);
71+
AudioMan:PlaySound("Base.rte/Devices/Explosives/AntiPersonnelMine/Sounds/MineActivate.wav", self.Pos);
7272
self.delayTimer:Reset();
7373
end
7474

@@ -128,7 +128,7 @@ function Update(self)
128128
self.blink = true;
129129
self.Frame = ((self.alliedTeam+1)*2)+1;
130130
self.delayTimer:Reset();
131-
AudioMan:PlaySound("Base.rte/Devices/Explosives/AntiPersonnelMine/Sounds/MineDetonate.wav", SceneMan:TargetDistanceScalar(self.Pos), false, true, -1);
131+
AudioMan:PlaySound("Base.rte/Devices/Explosives/AntiPersonnelMine/Sounds/MineDetonate.wav", self.Pos);
132132
end
133133
if self.delayTimer:IsPastSimMS(self.detonateDelay) then
134134
self.Vel = Vector(25, 0):RadRotate(self.faceDirection);

Base.rte/Devices/Explosives/RemoteExplosive/RemoteExplosiveDetonator.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function Update(self)
3535
end
3636
end
3737
end
38-
AudioMan:PlaySound("Base.rte/Devices/Explosives/AntiPersonnelMine/Sounds/MineDetonate.wav", SceneMan:TargetDistanceScalar(self.Pos), false, true, -1);
38+
AudioMan:PlaySound("Base.rte/Devices/Explosives/AntiPersonnelMine/Sounds/MineDetonate.wav", self.Pos);
3939
self.fireOn = true;
4040
end
4141
end

Base.rte/Devices/Tools/Disarmer/Disarmer.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Update(self)
4444
if targetCount == 0 then
4545
self.actionPhase = 0;
4646
self.overallTimer:Reset();
47-
AudioMan:PlaySound("Base.rte/Sounds/GUIs/UserError.wav", SceneMan:TargetDistanceScalar(self.Pos), false, true, -1);
47+
AudioMan:PlaySound("Base.rte/Sounds/GUIs/UserError.wav", self.Pos);
4848
elseif self.actionPhase == 4 then
4949
self.ReloadTime = 1000 + (1000 * targetCount);
5050
self:Reload();
@@ -104,7 +104,7 @@ function Update(self)
104104
end
105105
end
106106
if alarm and not self:IsActivated() then
107-
AudioMan:PlaySound("Base.rte/Devices/Tools/Disarmer/Sounds/".. alarmType .."Blip.wav", SceneMan:TargetDistanceScalar(self.Pos), false, true, -1);
107+
AudioMan:PlaySound("Base.rte/Devices/Tools/Disarmer/Sounds/".. alarmType .."Blip.wav", self.Pos);
108108
end
109109
end
110110
end

0 commit comments

Comments
 (0)