Skip to content

Commit b475d3b

Browse files
committed
turning the details up to 11 for no good reason
1 parent f6119fd commit b475d3b

Some content is hidden

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

46 files changed

+77
-14
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
function Create(self)
2+
3+
self.shieldWalkSound = CreateSoundContainer("Metal Shield Walk", "Base.rte");
4+
self.shieldWalkTimer = Timer();
5+
6+
end
7+
function ThreadedUpdate(self)
8+
9+
self.parent = self:GetRootParent();
10+
11+
if IsAHuman(self.parent) then
12+
if ToAHuman(self.parent).StrideFrame and self.shieldWalkTimer:IsPastSimMS(400) then
13+
self.shieldWalkTimer:Reset();
14+
self.shieldWalkSound:Play(self.Pos);
15+
end
16+
end
17+
18+
end
19+
20+
function Update(self)
21+
22+
self.shieldWalkSound.Pos = self.Pos;
23+
24+
end

Data/Base.rte/Devices/Shields/RiotShield/RiotShield.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ AddDevice = HeldDevice
9696
HitsMOs = 0
9797
GetsHitByMOs = 1
9898
GetsHitByMOsWhenHeld = 1
99+
ScriptPath = Base.rte/Devices/Shared/Scripts/ShieldWalkSounds.lua
99100
SpriteFile = ContentFile
100101
FilePath = Base.rte/Devices/Shields/RiotShield/Riot.png
101102
FrameCount = 1

Data/Base.rte/Sounds.ini

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,49 @@ AddSoundContainer = SoundContainer
11091109
AddSound = Base.rte/Sounds/Explosions/Ballistic/ExplodeLarge4.flac
11101110
AddSound = Base.rte/Sounds/Explosions/Ballistic/ExplodeLarge5.flac
11111111

1112+
///////////////////////////////////////////////////////////////////////
1113+
// Metal Shield Sounds
1114+
1115+
AddSoundContainer = SoundContainer
1116+
PresetName = Metal Shield Foley
1117+
AttenuationStartDistance = 100
1118+
Priority = 200
1119+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldFoley1.flac
1120+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldFoley2.flac
1121+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldFoley3.flac
1122+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldFoley4.flac
1123+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldFoley5.flac
1124+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldFoley6.flac
1125+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldFoley7.flac
1126+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldFoley8.flac
1127+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldFoley9.flac
1128+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldFoley10.flac
1129+
1130+
AddSoundContainer = SoundContainer
1131+
PresetName = Metal Shield Walk
1132+
AttenuationStartDistance = 100
1133+
Priority = 200
1134+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk1.flac
1135+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk2.flac
1136+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk3.flac
1137+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk4.flac
1138+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk5.flac
1139+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk6.flac
1140+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk7.flac
1141+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk8.flac
1142+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk9.flac
1143+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk10.flac
1144+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk11.flac
1145+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk12.flac
1146+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk13.flac
1147+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk14.flac
1148+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk15.flac
1149+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk16.flac
1150+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk17.flac
1151+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk18.flac
1152+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk19.flac
1153+
AddSound = Base.rte/Sounds/Devices/Shield/MetalShieldWalk20.flac
1154+
11121155
///////////////////////////////////////////////////////////////////////
11131156
// Actor Footsteps
11141157

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)