Skip to content

Commit 4a23709

Browse files
committed
better m16 sounds
1 parent bc41fa2 commit 4a23709

24 files changed

+15
-2
lines changed

Data/Ronin.rte/Devices/Shared.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
///////////////////////////////////////////////////////////////////////
22
// Devices Shared Assets
33

4+
AddSoundContainer = SoundContainer
5+
PresetName = Last Round Ronin
6+
AddSound = Ronin.rte/Devices/Shared/Sounds/LastRound1.flac
7+
AddSound = Ronin.rte/Devices/Shared/Sounds/LastRound2.flac
8+
AddSound = Ronin.rte/Devices/Shared/Sounds/LastRound3.flac
9+
AttenuationStartDistance = 140
10+
411

512
AddSoundContainer = SoundContainer
613
PresetName = Bottle Break
Binary file not shown.
Binary file not shown.
Binary file not shown.

Data/Ronin.rte/Devices/Weapons/M16A2/M16A2.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ AddDevice = HDFirearm
196196
FireEchoSound = SoundContainer
197197
AttenuationStartDistance = 250
198198
SoundOverlapMode = Restart
199-
Volume = 0.5
199+
Volume = 0.35
200200
AddSoundSet = SoundSet
201201
AddSound = ContentFile
202202
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Tail1.flac

Data/Ronin.rte/Devices/Weapons/M16A2/M16A2.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@ function OnFire(self)
66
local parent = self:GetRootParent();
77
if IsActor(parent) and ToActor(parent):IsPlayerControlled() then
88
if self.RoundInMagCount < 11 then
9-
self.mechSound.Pitch = 1.2 + (11 - self.RoundInMagCount)/100;
9+
self.mechSound.Pitch = 1.1 + (11 - self.RoundInMagCount)/100;
1010
self.mechSound.Volume = 1.3 + (11 - self.RoundInMagCount)/25;
1111
end
1212
end
1313

1414
self.mechSound:Play(self.Pos);
15+
16+
if self.RoundInMagCount == 0 then
17+
self.lastRoundSound:Play(self.Pos);
18+
end
1519
end
1620

1721
function Create(self)
1822
self.mechSound = CreateSoundContainer("Mech Ronin M16A2", "Ronin.rte");
23+
self.lastRoundSound = CreateSoundContainer("Last Round Ronin", "Ronin.rte");
24+
self.lastRoundSound.Pitch = 1.0;
1925
end
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)