Skip to content

Commit e5bbaa4

Browse files
authored
Merge pull request #185 from cortex-command-community/ronin-sounds
Some Ronin gun sounds
2 parents f9483a2 + 0f968c9 commit e5bbaa4

File tree

191 files changed

+787
-93
lines changed

Some content is hidden

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

191 files changed

+787
-93
lines changed

Data/Base.rte/Actors/Mecha/AADrone/Drone.ini

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,21 @@ AddDevice = HDFirearm
8585
Flash = Attachable
8686
CopyOf = Muzzle Flash SMG
8787
FireSound = SoundContainer
88-
AddSound = ContentFile
89-
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Fire1.flac
88+
AttenuationStartDistance = 165
89+
SoundSelectionCycleMode = All
90+
AddSoundSet = SoundSet
91+
AddSound = ContentFile
92+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot1.flac
93+
AddSound = ContentFile
94+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot2.flac
95+
AddSound = ContentFile
96+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot3.flac
97+
AddSound = ContentFile
98+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot4.flac
99+
AddSound = ContentFile
100+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot5.flac
101+
AddSound = ContentFile
102+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot6.flac
90103
EmptySound = SoundContainer
91104
AddSound = ContentFile
92105
FilePath = Base.rte/Sounds/Devices/EmptyClick1.flac

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/AK47/AK47.ini

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

@@ -112,6 +131,7 @@ AddDevice = HDFirearm
112131
HitsMOs = 0
113132
GetsHitByMOs = 1
114133
ScriptPath = Base.rte/Devices/Shared/Scripts/RecoilTilt.lua
134+
ScriptPath = Ronin.rte/Devices/Weapons/AK47/AK47.lua
115135
SpriteFile = ContentFile
116136
FilePath = Ronin.rte/Devices/Weapons/AK47/AK47.png
117137
IconFile = ContentFile
@@ -159,25 +179,63 @@ AddDevice = HDFirearm
159179
Flash = Attachable
160180
CopyOf = Muzzle Flash Pistol
161181
FireSound = SoundContainer
162-
AttenuationStartDistance = 175
163-
PitchVariation = 0.05
164-
AddSound = ContentFile
165-
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Fire1.flac
182+
AttenuationStartDistance = 165
183+
SoundSelectionCycleMode = All
184+
AddSoundSet = SoundSet
185+
AddSound = ContentFile
186+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot1.flac
187+
AddSound = ContentFile
188+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot2.flac
189+
AddSound = ContentFile
190+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot3.flac
191+
AddSound = ContentFile
192+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot4.flac
193+
AddSound = ContentFile
194+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot5.flac
195+
AddSound = ContentFile
196+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Shot6.flac
166197
FireEchoSound = SoundContainer
167-
AttenuationStartDistance = 200
168-
AddSound = ContentFile
169-
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Echo.flac
198+
AttenuationStartDistance = 250
199+
SoundOverlapMode = Restart
200+
Volume = 0.35
201+
AddSoundSet = SoundSet
202+
AddSound = ContentFile
203+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Tail1.flac
204+
AddSound = ContentFile
205+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Tail2.flac
206+
AddSound = ContentFile
207+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Tail3.flac
208+
AddSound = ContentFile
209+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Tail4.flac
210+
AddSound = ContentFile
211+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Tail5.flac
212+
AddSound = ContentFile
213+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/Tail6.flac
170214
EmptySound = SoundContainer
171-
AddSound = ContentFile
172-
FilePath = Base.rte/Sounds/Devices/EmptyClick1.flac
215+
AttenuationStartDistance = 125
216+
AddSoundSet = SoundSet
217+
AddSound = ContentFile
218+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/EmptyClick1.flac
219+
AddSound = ContentFile
220+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/EmptyClick2.flac
221+
AddSound = ContentFile
222+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/EmptyClick3.flac
173223
ReloadStartSound = SoundContainer
174-
AttenuationStartDistance = 115
224+
AttenuationStartDistance = 120
225+
AddSound = ContentFile
226+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/ReloadStart1.flac
227+
AddSound = ContentFile
228+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/ReloadStart2.flac
175229
AddSound = ContentFile
176-
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/ReloadStart.flac
230+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/ReloadStart3.flac
177231
ReloadEndSound = SoundContainer
178-
AttenuationStartDistance = 125
232+
AttenuationStartDistance = 140
233+
AddSound = ContentFile
234+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/ReloadEnd1.flac
235+
AddSound = ContentFile
236+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/ReloadEnd2.flac
179237
AddSound = ContentFile
180-
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/ReloadEnd.flac
238+
FilePath = Ronin.rte/Devices/Weapons/AK47/Sounds/ReloadEnd3.flac
181239
RateOfFire = 650
182240
ReloadTime = 1920
183241
FullAuto = 1
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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.1 + (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+
16+
if self.RoundInMagCount == 0 then
17+
self.lastRoundSound:Play(self.Pos);
18+
end
19+
end
20+
21+
function Create(self)
22+
self.mechSound = CreateSoundContainer("Mech Ronin AK-47", "Ronin.rte");
23+
self.lastRoundSound = CreateSoundContainer("Last Round Ronin", "Ronin.rte");
24+
self.lastRoundSound.Pitch = 0.75;
25+
end
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)