Skip to content

Commit f358a3d

Browse files
GacyrGacyr
authored andcommitted
Update lua PlaySound calls to use updated and simple version
1 parent 4d26e77 commit f358a3d

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

Base.rte/Activities/NetworkTest.lua

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,9 @@ function NetworkTest:UpdateActivity()
141141
end--]]--
142142

143143
if self.SoundTimer:IsPastSimMS(1000) then
144-
--local snd = AudioMan:PlaySound("Base.rte/Sounds/HeavySniper.wav", math.random(), true, -1);
145-
local snd = AudioMan:PlaySound("Dummy.rte/Effects/Sounds/BlasterFire.wav", math.random(), false, true, -1);
146-
--print ("Sound")
147-
--if (snd:IsPlaying()) then
148-
-- snd:Stop(-1);
149-
--end
150-
--AudioMan:PlaySound(nil, math.random(), true, -1);
144+
local snd = AudioMan:PlaySound("Dummy.rte/Effects/Sounds/BlasterFire.wav", Vector(math.random(), math.random()));
151145
self.SoundTimer:Reset();
152-
end--]]--
146+
end
153147

154148
FrameMan:DrawBoxPrimitive(0, Vector(10,410), Vector(100,449), 5)
155149
FrameMan:DrawBoxPrimitive(1, Vector(10,450), Vector(100,500), 10)

Base.rte/Devices/Special/Medikit/Medikit.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Update(self)
2727
target:RemoveAnyRandomWounds(math.ceil(strength / 7));
2828
end
2929
target:FlashWhite(50);
30-
AudioMan:PlaySound("Base.rte/Sounds/GUIs/SlicePicked.wav", SceneMan:TargetDistanceScalar(self.Pos), false, true, -1);
30+
AudioMan:PlaySound("Base.rte/Sounds/GUIs/SlicePicked.wav", self.Pos);
3131

3232
local targetSize = math.ceil(5 + target.Radius / 2);
3333
for i = 1, targetSize do

Base.rte/Devices/Tools/GrappleGun/Grapple.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function Update(self)
170170
end
171171
end
172172
if self.actionMode > 1 then
173-
AudioMan:PlaySound("Base.rte/Devices/Tools/GrappleGun/Sounds/ClawStick.wav", SceneMan:TargetDistanceScalar(self.Pos), false, true, -1);
173+
AudioMan:PlaySound("Base.rte/Devices/Tools/GrappleGun/Sounds/ClawStick.wav", self.Pos);
174174
self.setLineLength = math.floor(self.lineLength);
175175
self.Vel = Vector();
176176
self.PinStrength = 1000;
@@ -180,7 +180,7 @@ function Update(self)
180180
if self.lineLength > self.maxLineLength then
181181
if self.limitReached == false then
182182
self.limitReached = true;
183-
AudioMan:PlaySound("Base.rte/Devices/Tools/GrappleGun/Sounds/Click.wav", SceneMan:TargetDistanceScalar(startPos), false, true, -1);
183+
AudioMan:PlaySound("Base.rte/Devices/Tools/GrappleGun/Sounds/Click.wav", startPos);
184184
end
185185
local movetopos = self.parent.Pos + (self.lineVec):SetMagnitude(self.maxLineLength);
186186
if self.mapWrapsX == true then
@@ -431,7 +431,7 @@ function Update(self)
431431
self.parentGun.Magazine.Scale = 1;
432432
self.parentGun.Magazine.Frame = 0;
433433
end
434-
AudioMan:PlaySound("Base.rte/Devices/Tools/GrappleGun/Sounds/Return.wav", SceneMan:TargetDistanceScalar(drawPos), false, true, -1);
434+
AudioMan:PlaySound("Base.rte/Devices/Tools/GrappleGun/Sounds/Return.wav", drawPos);
435435
end
436436
FrameMan:DrawLinePrimitive(startPos, drawPos, 249);
437437
elseif self.parentGun and IsHDFirearm(self.parentGun) then

0 commit comments

Comments
 (0)