Release 1.9.7.0 - Summer Update 2025

This commit is contained in:
Regalis11
2025-06-17 16:38:11 +03:00
parent 22227f13e5
commit ea5a2bc693
297 changed files with 7344 additions and 2421 deletions

View File

@@ -15,7 +15,8 @@ namespace Barotrauma
private readonly static HashSet<StatusEffect> ActiveLoopingSounds = new HashSet<StatusEffect>();
private static double LastMuffleCheckTime;
private readonly List<RoundSound> sounds = new List<RoundSound>();
public IEnumerable<RoundSound> Sounds { get { return sounds; } }
public IEnumerable<RoundSound> Sounds => sounds;
private SoundSelectionMode soundSelectionMode;
private SoundChannel soundChannel;
private Entity soundEmitter;
@@ -64,6 +65,16 @@ namespace Barotrauma
partial void ApplyProjSpecific(float deltaTime, Entity entity, IReadOnlyList<ISerializableEntity> targets, Hull hull, Vector2 worldPosition, bool playSound)
{
if (steamTimeLineEventToTrigger != default)
{
SteamTimelineManager.AddTimelineEvent(
steamTimeLineEventToTrigger.title,
steamTimeLineEventToTrigger.description,
steamTimeLineEventToTrigger.icon,
priority: 1,
submarine: entity?.Submarine);
}
if (playSound)
{
PlaySound(entity, hull, worldPosition);
@@ -222,6 +233,7 @@ namespace Barotrauma
{
PlaySound(selectedSound);
}
playSoundAfterLoadedCoroutine = null;
yield return CoroutineStatus.Success;
}