Skip to content

Commit 54b3539

Browse files
committed
new m1 garand sounds
1 parent d4de752 commit 54b3539

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+128
-16
lines changed

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

Lines changed: 107 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,51 @@
44

55
AddSoundContainer = SoundContainer
66
PresetName = Ronin M1 Garand Ping
7-
AttenuationStartDistance = 125
87
AddSound = ContentFile
98
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Ping1.flac
109
AddSound = ContentFile
1110
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Ping2.flac
11+
12+
AddSoundContainer = SoundContainer
13+
PresetName = Last Round Ronin M1 Garand
14+
AddSound = ContentFile
15+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/LastRound1.flac
16+
AddSound = ContentFile
17+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/LastRound2.flac
18+
19+
AddSoundContainer = SoundContainer
20+
PresetName = Full Reload Start Ronin M1 Garand
21+
AttenuationStartDistance = 130
22+
AddSound = ContentFile
23+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/FullReloadStart1.flac
24+
AddSound = ContentFile
25+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/FullReloadStart2.flac
26+
AddSound = ContentFile
27+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/FullReloadStart3.flac
28+
29+
AddSoundContainer = SoundContainer
30+
PresetName = Mech Ronin M1 Garand
31+
Volume = 0.4
32+
AddSound = ContentFile
33+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Mech1.flac
34+
AddSound = ContentFile
35+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Mech2.flac
36+
AddSound = ContentFile
37+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Mech3.flac
38+
AddSound = ContentFile
39+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Mech4.flac
40+
AddSound = ContentFile
41+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Mech5.flac
42+
AddSound = ContentFile
43+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Mech6.flac
44+
AddSound = ContentFile
45+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Mech7.flac
46+
AddSound = ContentFile
47+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Mech8.flac
48+
AddSound = ContentFile
49+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Mech9.flac
50+
AddSound = ContentFile
51+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Mech10.flac
1252

1353

1454
///////////////////////////////////////////////////////////////////////
@@ -97,6 +137,7 @@ AddDevice = HDFirearm
97137
HitsMOs = 0
98138
GetsHitByMOs = 1
99139
ScriptPath = Base.rte/Devices/Shared/Scripts/RecoilTilt.lua
140+
ScriptPath = Ronin.rte/Devices/Weapons/M1Garand/M1Garand.lua
100141
AddCustomValue = NumberValue
101142
RecoilAngleVariation = 0.3
102143
AddCustomValue = NumberValue
@@ -148,25 +189,75 @@ AddDevice = HDFirearm
148189
Flash = Attachable
149190
CopyOf = Muzzle Flash Pistol
150191
FireSound = SoundContainer
151-
AttenuationStartDistance = 190
152-
PitchVariation = 0.05
153-
AddSound = ContentFile
154-
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Fire1.flac
155-
AddSound = ContentFile
156-
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Fire2.flac
157-
AddSound = ContentFile
158-
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Fire3.flac
192+
AttenuationStartDistance = 175
193+
SoundSelectionCycleMode = All
194+
AddSoundSet = SoundSet
195+
AddSound = ContentFile
196+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Shot1.flac
197+
AddSound = ContentFile
198+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Shot2.flac
199+
AddSound = ContentFile
200+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Shot3.flac
201+
AddSound = ContentFile
202+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Shot4.flac
203+
AddSound = ContentFile
204+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Shot5.flac
205+
AddSound = ContentFile
206+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Shot6.flac
207+
AddSound = ContentFile
208+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Shot7.flac
209+
AddSound = ContentFile
210+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Shot8.flac
211+
AddSound = ContentFile
212+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Shot9.flac
213+
AddSound = ContentFile
214+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Shot10.flac
215+
FireEchoSound = SoundContainer
216+
AttenuationStartDistance = 250
217+
SoundOverlapMode = Restart
218+
Volume = 0.35
219+
AddSoundSet = SoundSet
220+
AddSound = ContentFile
221+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Tail1.flac
222+
AddSound = ContentFile
223+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Tail2.flac
224+
AddSound = ContentFile
225+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Tail3.flac
226+
AddSound = ContentFile
227+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Tail4.flac
228+
AddSound = ContentFile
229+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Tail5.flac
230+
AddSound = ContentFile
231+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Tail6.flac
232+
AddSound = ContentFile
233+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Tail7.flac
234+
AddSound = ContentFile
235+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Tail8.flac
236+
AddSound = ContentFile
237+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Tail9.flac
238+
AddSound = ContentFile
239+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/Tail10.flac
159240
EmptySound = SoundContainer
241+
AttenuationStartDistance = 125
242+
AddSoundSet = SoundSet
243+
AddSound = ContentFile
244+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/EmptyClick1.flac
245+
AddSound = ContentFile
246+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/EmptyClick2.flac
247+
AddSound = ContentFile
248+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/EmptyClick3.flac
249+
AddSound = ContentFile
250+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/EmptyClick4.flac
251+
AddSound = ContentFile
252+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/EmptyClick5.flac
253+
ReloadEndSound = SoundContainer
254+
AttenuationStartDistance = 140
160255
AddSound = ContentFile
161-
FilePath = Base.rte/Sounds/Devices/EmptyClick1.flac
162-
ReloadStartSound = SoundContainer
163-
AttenuationStartDistance = 115
256+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/ReloadEnd1.flac
164257
AddSound = ContentFile
165-
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/ReloadStart.flac
166-
ReloadEndSound = SoundContainer
167-
AttenuationStartDistance = 125
258+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/ReloadEnd2.flac
168259
AddSound = ContentFile
169-
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/ReloadEnd.flac
260+
FilePath = Ronin.rte/Devices/Weapons/M1Garand/Sounds/ReloadEnd3.flac
170261
RateOfFire = 300
171262
ReloadTime = 1500
172263
FullAuto = 0
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
function OnFire(self)
2+
if self.RoundInMagCount == 0 then
3+
self.lastRoundSound:Play(self.Pos);
4+
self.Empty = true;
5+
else
6+
self.mechSound:Play(self.Pos);
7+
end
8+
end
9+
10+
function OnReload(self)
11+
if not self.Empty then
12+
self.fullReloadStartSound:Play(self.Pos);
13+
end
14+
self.Empty = false;
15+
end
16+
17+
function Create(self)
18+
self.mechSound = CreateSoundContainer("Mech Ronin M1 Garand", "Ronin.rte");
19+
self.lastRoundSound = CreateSoundContainer("Last Round Ronin M1 Garand", "Ronin.rte");
20+
self.fullReloadStartSound = CreateSoundContainer("Full Reload Start Ronin M1 Garand", "Ronin.rte");
21+
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)