Fix airlock lights (#5334)
* Doors no longer permanently glow orange + logic tweak * Fix server-side order of operations for deny animation timer * Delay between deny >= deny length to allow animation to reset * Fix airlock assets to use the correct deny animation name Co-authored-by: T <tomeno@lulzsec.co.uk>
This commit is contained in:
@@ -161,7 +161,8 @@ namespace Content.Client.Doors
|
||||
animPlayer.Play(CloseAnimation, AnimationKey);
|
||||
break;
|
||||
case DoorVisualState.Deny:
|
||||
animPlayer.Play(DenyAnimation, AnimationKey);
|
||||
if (!animPlayer.HasRunningAnimation(AnimationKey))
|
||||
animPlayer.Play(DenyAnimation, AnimationKey);
|
||||
break;
|
||||
case DoorVisualState.Welded:
|
||||
weldedVisible = true;
|
||||
@@ -181,7 +182,7 @@ namespace Content.Client.Doors
|
||||
|
||||
if (!_simpleVisuals)
|
||||
{
|
||||
sprite.LayerSetVisible(DoorVisualLayers.BaseUnlit, unlitVisible);
|
||||
sprite.LayerSetVisible(DoorVisualLayers.BaseUnlit, unlitVisible && state != DoorVisualState.Closed);
|
||||
sprite.LayerSetVisible(DoorVisualLayers.BaseWelded, weldedVisible);
|
||||
sprite.LayerSetVisible(DoorVisualLayers.BaseBolted, unlitVisible && boltedVisible);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user