Skip to content

Commit 4146084

Browse files
committed
capturable sounds for money-y capturables specifically
1 parent dcd0b21 commit 4146084

14 files changed

+86
-27
lines changed

Data/Browncoats.rte/Scenes/Objects/Capturables/Capturables.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ AddActor = MOSRotating
184184
AddActor = MOSRotating
185185
CopyOf = Generic Capturable Computer
186186
PresetName = Refinery S4 Bank Capturable
187-
ScriptPath = Browncoats.rte/Scenes/Objects/Capturables/RefineryCapturableFX.lua
187+
ScriptPath = Browncoats.rte/Scenes/Objects/Capturables/RefineryBankFX.lua
188188
AddCustomValue = NumberValue
189189
StartTeam = 1
190190
AddCustomValue = NumberValue
@@ -213,7 +213,7 @@ AddActor = MOSRotating
213213
AddActor = MOSRotating
214214
CopyOf = Generic Capturable Computer
215215
PresetName = Refinery S4 Gold Vault Capturable
216-
ScriptPath = Browncoats.rte/Scenes/Objects/Capturables/RefineryCapturableFX.lua
216+
ScriptPath = Browncoats.rte/Scenes/Objects/Capturables/RefineryBankFX.lua
217217
AddCustomValue = NumberValue
218218
StartTeam = 1
219219
AddCustomValue = NumberValue
@@ -242,7 +242,7 @@ AddActor = MOSRotating
242242
AddActor = MOSRotating
243243
CopyOf = Generic Capturable Computer
244244
PresetName = Refinery S9 Boss Bank Capturable
245-
ScriptPath = Browncoats.rte/Scenes/Objects/Capturables/RefineryCapturableFX.lua
245+
ScriptPath = Browncoats.rte/Scenes/Objects/Capturables/RefineryBankFX.lua
246246
AddCustomValue = NumberValue
247247
StartTeam = 1
248248
AddCustomValue = NumberValue
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
function Create(self)
2+
self.startCaptureSound = CreateSoundContainer("Browncoat Bank Start Capture", "Base.rte");
3+
self.capturingSound = CreateSoundContainer("Browncoat Bank Capturing", "Base.rte");
4+
self.stopCaptureSound = CreateSoundContainer("Browncoat Bank Stop Capture", "Base.rte");
5+
self.captureSuccessSound = CreateSoundContainer("Browncoat Bank Capture Success", "Base.rte");
6+
7+
self.capturingTimer = Timer();
8+
self.capturingDelay = 500;
9+
end
10+
11+
function Update(self)
12+
if self.FXstartCapture then
13+
self.startCaptureSound:Play(self.Pos);
14+
self.capturingTimer:Reset();
15+
end
16+
if self.FXcapturing or self.Contested then
17+
local sound = self.capturingSound;
18+
self.capturingDelay = 750;
19+
if self.dominantTeam == self.capturingTeam and not self.Contested then
20+
self.capturingDelay = 400;
21+
end
22+
if self.capturingTimer:IsPastSimMS(self.capturingDelay) then
23+
self.capturingTimer:Reset();
24+
sound:Play(self.Pos);
25+
end
26+
end
27+
if self.FXstopCapture then
28+
self.stopCaptureSound:Play(self.Pos);
29+
end
30+
if self.FXcaptureSuccess then
31+
self.captureSuccessSound:Play(self.Pos);
32+
end
33+
if self.FXcaptureUncapped then
34+
self.capturingTimer:Reset();
35+
end
36+
37+
self.FXstartCapture = false;
38+
self.FXstopCapture = false;
39+
self.FXcaptureSuccess = false;
40+
self.FXcaptureUncapped = false;
41+
end

Data/Browncoats.rte/Scenes/Sounds.ini

Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,58 @@
22
// Scene Sounds... welcome to the future, my boy.
33

44
AddSoundContainer = SoundContainer
5-
AttenuationStartDistance = 60
5+
AttenuationStartDistance = 250
66
PresetName = Browncoat Capturable Start Capture
7-
AddSound = ContentFile
8-
FilePath = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_StartCapture1.flac
7+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_StartCapture1.flac
98

109
AddSoundContainer = SoundContainer
1110
PresetName = Browncoat Capturable Capturing
12-
AttenuationStartDistance = 60
13-
AddSound = ContentFile
14-
FilePath = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing1.flac
15-
AddSound = ContentFile
16-
FilePath = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing2.flac
17-
AddSound = ContentFile
18-
FilePath = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing3.flac
19-
AddSound = ContentFile
20-
FilePath = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing4.flac
21-
AddSound = ContentFile
22-
FilePath = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing5.flac
23-
AddSound = ContentFile
24-
FilePath = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing6.flac
11+
AttenuationStartDistance = 250
12+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing1.flac
13+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing2.flac
14+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing3.flac
15+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing4.flac
16+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing5.flac
17+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_Capturing6.flac
2518

2619
AddSoundContainer = SoundContainer
2720
PresetName = Browncoat Capturable Stop Capture
28-
AttenuationStartDistance = 60
29-
AddSound = ContentFile
30-
FilePath = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_StopCapture1.flac
21+
AttenuationStartDistance = 250
22+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_StopCapture1.flac
3123

3224
AddSoundContainer = SoundContainer
3325
PresetName = Browncoat Capturable Capture Success
34-
AttenuationStartDistance = 60
35-
AddSound = ContentFile
36-
FilePath = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_CaptureSuccess1.flac
37-
AddSound = ContentFile
38-
FilePath = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_CaptureSuccess2.flac
26+
AttenuationStartDistance = 250
27+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_CaptureSuccess1.flac
28+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatCapturable_CaptureSuccess2.flac
29+
30+
AddSoundContainer = SoundContainer
31+
AttenuationStartDistance = 250
32+
PresetName = Browncoat Bank Start Capture
33+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_StartCapture1.flac
34+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_StartCapture2.flac
35+
36+
AddSoundContainer = SoundContainer
37+
PresetName = Browncoat Bank Capturing
38+
AttenuationStartDistance = 250
39+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_Capturing1.flac
40+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_Capturing2.flac
41+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_Capturing3.flac
42+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_Capturing4.flac
43+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_Capturing5.flac
44+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_Capturing6.flac
45+
46+
AddSoundContainer = SoundContainer
47+
PresetName = Browncoat Bank Stop Capture
48+
AttenuationStartDistance = 250
49+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_StopCapture1.flac
50+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_StopCapture2.flac
51+
52+
AddSoundContainer = SoundContainer
53+
PresetName = Browncoat Bank Capture Success
54+
AttenuationStartDistance = 250
55+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_CaptureSuccess1.flac
56+
AddSound = Browncoats.rte/Scenes/Sounds/BrowncoatBank_CaptureSuccess2.flac
3957

4058
AddSoundContainer = SoundContainer
4159
PresetName = Yskely Refinery Drill Idle Loop
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)