Shadow & FOV stuff (#735)

* Content fixes for shadow/occluder stuff.

* Observers don't have FOV.

* Update submodule
This commit is contained in:
Pieter-Jan Briers
2020-02-23 17:30:45 +01:00
committed by GitHub
parent bc5ad7c322
commit d8291ed9c4
5 changed files with 17 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -43,5 +43,10 @@
interfaces:
- key: enum.WiresUiKey.Key
type: WiresBoundUserInterface
- type: Occluder
- type: SnapGrid
offset: Center
placement:
mode: SnapgridCenter

View File

@@ -17,7 +17,7 @@
- type: PointLight
radius: 8
energy: 1.2
#offset: "0, -16"
offset: "0.5, 0"
color: "#DCDCC6"
placement:
@@ -67,6 +67,7 @@
- type: PointLight
energy: 1.0
enabled: false
offset: "-0.5, 0"
- type: PowerDevice
priority: Low

View File

@@ -8,6 +8,7 @@
mass: 5
- type: Eye
zoom: 0.5, 0.5
drawFov: false
- type: Input
context: "ghost"
- type: Examiner