From e02bffc28ebb45ff88c10ea7dd0e623fee347d1c Mon Sep 17 00:00:00 2001 From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Mon, 13 Nov 2023 08:48:47 +0000 Subject: [PATCH] fix egg debug assert (#21628) Co-authored-by: deltanedas <@deltanedas:kde.org> --- Content.Shared/Damage/Systems/DamageOnHighSpeedImpactSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Damage/Systems/DamageOnHighSpeedImpactSystem.cs b/Content.Shared/Damage/Systems/DamageOnHighSpeedImpactSystem.cs index f099a33759..4371ac83a8 100644 --- a/Content.Shared/Damage/Systems/DamageOnHighSpeedImpactSystem.cs +++ b/Content.Shared/Damage/Systems/DamageOnHighSpeedImpactSystem.cs @@ -49,7 +49,8 @@ public sealed class DamageOnHighSpeedImpactSystem : EntitySystem _damageable.TryChangeDamage(uid, component.Damage * damageScale); - _audio.PlayPvs(component.SoundHit, uid, AudioParams.Default.WithVariation(0.125f).WithVolume(-0.125f)); + if (_gameTiming.IsFirstTimePredicted) + _audio.PlayPvs(component.SoundHit, uid, AudioParams.Default.WithVariation(0.125f).WithVolume(-0.125f)); _color.RaiseEffect(Color.Red, new List() { uid }, Filter.Pvs(uid, entityManager: EntityManager)); }