* Fix anomaly supercrit explosion sound playing twice.
* Fix so that the supercritical anomaly doesn't scale back to normal visually before removal.
if (!Timing.IsFirstTimePredicted)
return;
- Audio.PlayPvs(component.SupercriticalSound, Transform(uid).Coordinates);
-
if (_net.IsServer)
+ {
+ Audio.PlayPvs(component.SupercriticalSound, Transform(uid).Coordinates);
Log.Info($"Raising supercritical event. Entity: {ToPrettyString(uid)}");
+ }
var powerMod = 1f;
if (component.CurrentBehavior != null)
if (Timing.CurTime <= super.EndTime)
continue;
DoAnomalySupercriticalEvent(ent, anom);
- RemComp(ent, super);
+ // Removal of the supercritical component is handled by DoAnomalySupercriticalEvent
}
}