Shadow & FOV stuff (#735)
* Content fixes for shadow/occluder stuff. * Observers don't have FOV. * Update submodule
This commit is contained in:
committed by
GitHub
parent
bc5ad7c322
commit
d8291ed9c4
@@ -136,6 +136,10 @@ namespace Content.Server.GameObjects
|
||||
|
||||
State = DoorState.Opening;
|
||||
SetAppearance(DoorVisualState.Opening);
|
||||
if (Owner.TryGetComponent(out OccluderComponent occluder))
|
||||
{
|
||||
occluder.Enabled = false;
|
||||
}
|
||||
|
||||
Timer.Spawn(OpenTimeOne, async () =>
|
||||
{
|
||||
@@ -190,6 +194,10 @@ namespace Content.Server.GameObjects
|
||||
{
|
||||
State = DoorState.Closed;
|
||||
SetAppearance(DoorVisualState.Closed);
|
||||
if (Owner.TryGetComponent(out OccluderComponent occluder))
|
||||
{
|
||||
occluder.Enabled = true;
|
||||
}
|
||||
}, _cancellationTokenSource.Token);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user