Fix collisions passing firestacks between mobs (#9324)

This commit is contained in:
Kara
2022-07-04 18:30:45 -07:00
committed by GitHub
parent 407514f31c
commit 33e1c77de2
2 changed files with 38 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Damage;
using Robust.Shared.Physics.Collision.Shapes;
namespace Content.Server.Atmos.Components
{
@@ -28,5 +29,11 @@ namespace Content.Server.Atmos.Components
[DataField("damage", required: true)]
[ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier Damage = new(); // Empty by default, we don't want any funny NREs.
/// <summary>
/// Used for the fixture created to handle passing firestacks when two flammable objects collide.
/// </summary>
[DataField("flammableCollisionShape")]
public IPhysShape FlammableCollisionShape = new PhysShapeCircle() { Radius = 0.35f };
}
}