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

Commit 90ac4f8

Browse files
committed
Added heatlance start and end sounds
1 parent ba4691b commit 90ac4f8

File tree

5 files changed

+11
-44
lines changed

5 files changed

+11
-44
lines changed

Browncoats.rte/Devices/Weapons/Heatlance/Heatlance.ini

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,3 @@
1-
///////////////////////////////////////////////////////////////////////
2-
// Heatlance Sounds
3-
4-
5-
/*
6-
AddSoundContainer = SoundContainer
7-
PresetName = Heatlance Fire Sound Start
8-
AddSound = ContentFile
9-
FilePath = Browncoats.rte/Devices/Weapons/Heatlance/Sounds/Start.flac
10-
AttenuationStartDistance = 195
11-
12-
13-
AddSoundContainer = SoundContainer
14-
PresetName = Heatlance Fire Sound End
15-
AddSound = ContentFile
16-
FilePath = Browncoats.rte/Devices/Weapons/Heatlance/Sounds/End.flac
17-
AttenuationStartDistance = 195
18-
*/
19-
20-
211
///////////////////////////////////////////////////////////////////////
222
// Heatlance Ammo
233

@@ -268,11 +248,12 @@ AddDevice = HDFirearm
268248
AddSound = ContentFile
269249
FilePath = Browncoats.rte/Devices/Weapons/Heatlance/Sounds/Loop.flac
270250
LoopSetting = -1
271-
//To-do: fix whatever problems with ActivationSound and/or PreFireSound (can only play one instance of itself, etc.)
272-
//ActivationSound = SoundContainer
273-
// CopyOf = Heatlance Fire Sound Start
274-
//DeactivationSound = SoundContainer
275-
// CopyOf = Heatlance Fire Sound End
251+
PreFireSound = SoundContainer
252+
AttenuationStartDistance = 195
253+
AddSound = Browncoats.rte/Devices/Weapons/Heatlance/Sounds/Start.wav
254+
DeactivationSound = SoundContainer
255+
AttenuationStartDistance = 195
256+
AddSound = Browncoats.rte/Devices/Weapons/Heatlance/Sounds/End.wav
276257
EmptySound = SoundContainer
277258
AddSound = ContentFile
278259
FilePath = Base.rte/Sounds/Devices/EmptyClick1.flac

Browncoats.rte/Devices/Weapons/Heatlance/Heatlance.lua

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
function Create(self)
2-
--[[
3-
self.startSound = CreateSoundContainer("Heatlance Fire Sound Start", "Browncoats.rte");
4-
self.endSound = CreateSoundContainer("Heatlance Fire Sound End", "Browncoats.rte");
5-
--]]
6-
end
71
function Update(self)
8-
--[[
9-
if self:IsActivated() and self.RoundInMagCount ~= 0 then
10-
if not self.triggerPulled then
11-
self.startSound:Play(self.MuzzlePos);
12-
end
13-
self.triggerPulled = true;
14-
else
15-
if self.triggerPulled then
16-
self.endSound:Play(self.MuzzlePos);
17-
end
18-
self.triggerPulled = false;
19-
end
20-
--]]
212
if self.Magazine then
223
local parent = self:GetRootParent();
234
if parent and IsActor(parent) then
Binary file not shown.
Binary file not shown.

CreditsAssets.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ Devices/Weapons/Flash/Sounds:
9696
Explode3
9797
Sonniss GDC Audio Bundles
9898

99+
////////////////////////////////////////////////////////////////////////////////////////////////////
100+
Devices/Weapons/Heatlance/Sounds:
101+
Start, End
102+
Sonniss GDC Audio Bundles
103+
99104
////////////////////////////////////////////////////////////////////////////////////////////////////
100105
Devices/Weapons/Jackhammer/Sounds:
101106
Fire1

0 commit comments

Comments
 (0)