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;
|
State = DoorState.Opening;
|
||||||
SetAppearance(DoorVisualState.Opening);
|
SetAppearance(DoorVisualState.Opening);
|
||||||
|
if (Owner.TryGetComponent(out OccluderComponent occluder))
|
||||||
|
{
|
||||||
|
occluder.Enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
Timer.Spawn(OpenTimeOne, async () =>
|
Timer.Spawn(OpenTimeOne, async () =>
|
||||||
{
|
{
|
||||||
@@ -190,6 +194,10 @@ namespace Content.Server.GameObjects
|
|||||||
{
|
{
|
||||||
State = DoorState.Closed;
|
State = DoorState.Closed;
|
||||||
SetAppearance(DoorVisualState.Closed);
|
SetAppearance(DoorVisualState.Closed);
|
||||||
|
if (Owner.TryGetComponent(out OccluderComponent occluder))
|
||||||
|
{
|
||||||
|
occluder.Enabled = true;
|
||||||
|
}
|
||||||
}, _cancellationTokenSource.Token);
|
}, _cancellationTokenSource.Token);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,5 +43,10 @@
|
|||||||
interfaces:
|
interfaces:
|
||||||
- key: enum.WiresUiKey.Key
|
- key: enum.WiresUiKey.Key
|
||||||
type: WiresBoundUserInterface
|
type: WiresBoundUserInterface
|
||||||
|
|
||||||
|
- type: Occluder
|
||||||
|
- type: SnapGrid
|
||||||
|
offset: Center
|
||||||
|
|
||||||
placement:
|
placement:
|
||||||
mode: SnapgridCenter
|
mode: SnapgridCenter
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
- type: PointLight
|
- type: PointLight
|
||||||
radius: 8
|
radius: 8
|
||||||
energy: 1.2
|
energy: 1.2
|
||||||
#offset: "0, -16"
|
offset: "0.5, 0"
|
||||||
color: "#DCDCC6"
|
color: "#DCDCC6"
|
||||||
|
|
||||||
placement:
|
placement:
|
||||||
@@ -67,6 +67,7 @@
|
|||||||
- type: PointLight
|
- type: PointLight
|
||||||
energy: 1.0
|
energy: 1.0
|
||||||
enabled: false
|
enabled: false
|
||||||
|
offset: "-0.5, 0"
|
||||||
|
|
||||||
- type: PowerDevice
|
- type: PowerDevice
|
||||||
priority: Low
|
priority: Low
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
mass: 5
|
mass: 5
|
||||||
- type: Eye
|
- type: Eye
|
||||||
zoom: 0.5, 0.5
|
zoom: 0.5, 0.5
|
||||||
|
drawFov: false
|
||||||
- type: Input
|
- type: Input
|
||||||
context: "ghost"
|
context: "ghost"
|
||||||
- type: Examiner
|
- type: Examiner
|
||||||
|
|||||||
Submodule RobustToolbox updated: 5f4cd8f98a...32bafb66a8
Reference in New Issue
Block a user