Skip to content

Commit bc41fa2

Browse files
committed
new m16 sounds
1 parent 40864dc commit bc41fa2

38 files changed

+97
-10
lines changed

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

Lines changed: 78 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
///////////////////////////////////////////////////////////////////////
2+
// M16A2 Sounds
3+
4+
AddSoundContainer = SoundContainer
5+
PresetName = Mech Ronin M16A2
6+
Volume = 0.75
7+
AddSound = ContentFile
8+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Mech1.flac
9+
AddSound = ContentFile
10+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Mech2.flac
11+
AddSound = ContentFile
12+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Mech3.flac
13+
AddSound = ContentFile
14+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Mech4.flac
15+
AddSound = ContentFile
16+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Mech5.flac
17+
AddSound = ContentFile
18+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Mech6.flac
19+
120
///////////////////////////////////////////////////////////////////////
221
// M16A2 Ammo
322

@@ -111,6 +130,7 @@ AddDevice = HDFirearm
111130
Mass = 9
112131
HitsMOs = 0
113132
GetsHitByMOs = 1
133+
ScriptPath = Ronin.rte/Devices/Weapons/M16A2/M16A2.lua
114134
SpriteFile = ContentFile
115135
FilePath = Ronin.rte/Devices/Weapons/M16A2/M16A2.png
116136
IconFile = ContentFile
@@ -158,21 +178,69 @@ AddDevice = HDFirearm
158178
Flash = Attachable
159179
CopyOf = Muzzle Flash SMG
160180
FireSound = SoundContainer
161-
AttenuationStartDistance = 170
162-
PitchVariation = 0.05
163-
AddSound = ContentFile
164-
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Fire1.flac
181+
AttenuationStartDistance = 165
182+
SoundSelectionCycleMode = All
183+
AddSoundSet = SoundSet
184+
AddSound = ContentFile
185+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Shot1.flac
186+
AddSound = ContentFile
187+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Shot2.flac
188+
AddSound = ContentFile
189+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Shot3.flac
190+
AddSound = ContentFile
191+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Shot4.flac
192+
AddSound = ContentFile
193+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Shot5.flac
194+
AddSound = ContentFile
195+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Shot6.flac
196+
FireEchoSound = SoundContainer
197+
AttenuationStartDistance = 250
198+
SoundOverlapMode = Restart
199+
Volume = 0.5
200+
AddSoundSet = SoundSet
201+
AddSound = ContentFile
202+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Tail1.flac
203+
AddSound = ContentFile
204+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Tail2.flac
205+
AddSound = ContentFile
206+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Tail3.flac
207+
AddSound = ContentFile
208+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Tail4.flac
209+
AddSound = ContentFile
210+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Tail5.flac
211+
AddSound = ContentFile
212+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/Tail6.flac
165213
EmptySound = SoundContainer
166-
AddSound = ContentFile
167-
FilePath = Base.rte/Sounds/Devices/EmptyClick1.flac
214+
AttenuationStartDistance = 125
215+
AddSoundSet = SoundSet
216+
AddSound = ContentFile
217+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/EmptyClick1.flac
218+
AddSound = ContentFile
219+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/EmptyClick2.flac
220+
AddSound = ContentFile
221+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/EmptyClick3.flac
222+
AddSound = ContentFile
223+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/EmptyClick4.flac
224+
AddSound = ContentFile
225+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/EmptyClick5.flac
226+
AddSound = ContentFile
227+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/EmptyClick6.flac
168228
ReloadStartSound = SoundContainer
169-
AttenuationStartDistance = 115
229+
AttenuationStartDistance = 120
170230
AddSound = ContentFile
171-
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/ReloadStart.flac
231+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/ReloadStart1.flac
232+
AddSound = ContentFile
233+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/ReloadStart2.flac
234+
AddSound = ContentFile
235+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/ReloadStart3.flac
172236
ReloadEndSound = SoundContainer
173-
AttenuationStartDistance = 125
237+
AttenuationStartDistance = 140
238+
AddSound = ContentFile
239+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/ReloadEnd1.flac
240+
AddSound = ContentFile
241+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/ReloadEnd2.flac
174242
AddSound = ContentFile
175-
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/ReloadEnd.flac
243+
FilePath = Ronin.rte/Devices/Weapons/M16A2/Sounds/ReloadEnd3.flac
176244
RateOfFire = 800
177245
ReloadTime = 2100
178246
FullAuto = 1
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function OnFire(self)
2+
-- Higher pitch and volume as you approach empty
3+
self.mechSound.Pitch = 1;
4+
self.mechSound.Volume = 1;
5+
6+
local parent = self:GetRootParent();
7+
if IsActor(parent) and ToActor(parent):IsPlayerControlled() then
8+
if self.RoundInMagCount < 11 then
9+
self.mechSound.Pitch = 1.2 + (11 - self.RoundInMagCount)/100;
10+
self.mechSound.Volume = 1.3 + (11 - self.RoundInMagCount)/25;
11+
end
12+
end
13+
14+
self.mechSound:Play(self.Pos);
15+
end
16+
17+
function Create(self)
18+
self.mechSound = CreateSoundContainer("Mech Ronin M16A2", "Ronin.rte");
19+
end
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.
Binary file not shown.

0 commit comments

Comments
 (0)