Skip to content

Commit aa5ca5c

Browse files
committed
Embed TR2X barefoot SFX
Embeds Lara's barefoot SFX if the diving suit or HSH outfit is picked.
1 parent 2843c7c commit aa5ca5c

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

TRRandomizerCore/Randomizers/TR2/Classic/TR2OutfitRandomizer.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,21 @@ private void AdjustOutfit(TR2CombinedLevel level, TR2Type lara)
389389
actorLara.MeshTrees = realLara.MeshTrees;
390390
actorLara.Meshes = realLara.Meshes;
391391
}
392+
393+
if ((lara == TR2Type.LaraUnwater || lara == TR2Type.LaraHome)
394+
&& level.Data.SoundEffects.TryGetValue(TR2SFX.LaraFeet, out var feet))
395+
{
396+
level.Data.TRXData ??= new();
397+
level.Data.TRXData.SFX.RemoveAll(s => s.ID == (short)TR2SFX.LaraFeet);
398+
level.Data.TRXData.SFX.Add(new()
399+
{
400+
ID = (short)TR2SFX.LaraFeet,
401+
Chance = feet.Chance,
402+
Flags = feet.GetFlags(),
403+
Volume = feet.Volume,
404+
Data = [.. Enumerable.Range(0, 4).Select(i => File.ReadAllBytes($"Resources/TR2/Audio/Barefoot/{i}.wav"))],
405+
});
406+
}
392407
}
393408
}
394409
}
12.1 KB
Binary file not shown.
8.47 KB
Binary file not shown.
10.3 KB
Binary file not shown.
10.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)