Support for non-fulltile airblockers rotating

This commit is contained in:
Víctor Aguilera Puerto
2020-09-07 13:57:04 +02:00
parent da4d08432d
commit 2aa1486b13
3 changed files with 89 additions and 4 deletions

View File

@@ -35,12 +35,17 @@ namespace Content.Server.GameObjects.Components.Atmos
{
base.Startup();
var airtightComponent = Owner.EnsureComponent<AirtightComponent>();
var collidableComponent = Owner.GetComponent<ICollidableComponent>();
if (Owner.TryGetComponent(out AirtightComponent airtightComponent))
{
airtightComponent.AirBlocked = false;
}
if (Owner.TryGetComponent(out ICollidableComponent collidableComponent))
{
collidableComponent.Hard = false;
}
Safety = false;
airtightComponent.AirBlocked = false;
collidableComponent.Hard = false;
if (Occludes && Owner.TryGetComponent(out OccluderComponent occluder))
{