Renamed the "file" attribute of hit sounds to "tag", replaced footstep sound paths in creature configs with tags.

This commit is contained in:
Joonas Rikkonen
2018-02-24 21:13:21 +02:00
parent eaafc022f2
commit 48757618f6
7 changed files with 24 additions and 19 deletions
@@ -21,9 +21,9 @@ namespace Barotrauma
if (impact > 3.0f && limb.SoundTimer <= 0.0f)
{
limb.SoundTimer = Limb.SoundInterval;
if (!string.IsNullOrWhiteSpace(limb.HitSound))
if (!string.IsNullOrWhiteSpace(limb.HitSoundTag))
{
SoundPlayer.PlaySound(limb.HitSound, volume, impact * 100.0f, limb.WorldPosition);
SoundPlayer.PlaySound(limb.HitSoundTag, volume, impact * 100.0f, limb.WorldPosition);
}
foreach (WearableSprite wearable in limb.WearingItems)
{