Реврайт освещения от дверей на клиент (#375)
* fix: doors no longer light up without power * rework: rewrite PointLightAirlockSystem on client * public to private * cleanup
This commit is contained in:
@@ -121,7 +121,6 @@ public abstract class SharedAirlockSystem : EntitySystem
|
||||
|
||||
public void UpdateEmergencyLightStatus(EntityUid uid, AirlockComponent component)
|
||||
{
|
||||
RaiseLocalEvent(uid, new DoorlightsChangedEvent(DoorVisuals.EmergencyLights, component.EmergencyAccess));
|
||||
Appearance.SetData(uid, DoorVisuals.EmergencyLights, component.EmergencyAccess);
|
||||
}
|
||||
|
||||
|
||||
@@ -86,8 +86,6 @@ public abstract partial class SharedDoorSystem
|
||||
Dirty(ent, ent.Comp);
|
||||
UpdateBoltLightStatus(ent);
|
||||
|
||||
RaiseLocalEvent(ent, new DoorlightsChangedEvent(DoorVisuals.BoltLights, value), true);
|
||||
|
||||
var sound = value ? ent.Comp.BoltDownSound : ent.Comp.BoltUpSound;
|
||||
if (predicted)
|
||||
Audio.PlayPredicted(sound, ent, user: user);
|
||||
|
||||
@@ -118,7 +118,6 @@ public abstract partial class SharedDoorSystem : EntitySystem
|
||||
|
||||
SetCollidable(ent, collidable, door);
|
||||
|
||||
RaiseLocalEvent(ent, new DoorlightsChangedEvent(door.State, true), true);
|
||||
AppearanceSystem.SetData(ent, DoorVisuals.State, door.State);
|
||||
}
|
||||
|
||||
@@ -167,7 +166,6 @@ public abstract partial class SharedDoorSystem : EntitySystem
|
||||
_activeDoors.Add(ent);
|
||||
|
||||
RaiseLocalEvent(ent, new DoorStateChangedEvent(door.State));
|
||||
RaiseLocalEvent(ent, new DoorlightsChangedEvent(door.State, true), true);
|
||||
|
||||
AppearanceSystem.SetData(ent, DoorVisuals.State, door.State);
|
||||
}
|
||||
@@ -219,7 +217,6 @@ public abstract partial class SharedDoorSystem : EntitySystem
|
||||
Dirty(uid, door);
|
||||
|
||||
RaiseLocalEvent(uid, new DoorStateChangedEvent(state));
|
||||
RaiseLocalEvent(uid, new DoorlightsChangedEvent(door.State, true), true);
|
||||
|
||||
AppearanceSystem.SetData(uid, DoorVisuals.State, door.State);
|
||||
return true;
|
||||
@@ -525,7 +522,6 @@ public abstract partial class SharedDoorSystem : EntitySystem
|
||||
door.NextStateChange = GameTiming.CurTime + door.OpenTimeTwo;
|
||||
door.State = DoorState.Opening;
|
||||
|
||||
RaiseLocalEvent(uid, new DoorlightsChangedEvent(door.State, true), true);
|
||||
AppearanceSystem.SetData(uid, DoorVisuals.State, DoorState.Opening);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user