Bullet flyby sounds (#8317)
This commit is contained in:
@@ -23,5 +23,10 @@ namespace Content.Server.Stunnable.Components
|
||||
|
||||
[DataField("runSpeedMultiplier")]
|
||||
public float RunSpeedMultiplier = 1f;
|
||||
|
||||
/// <summary>
|
||||
/// Fixture we track for the collision.
|
||||
/// </summary>
|
||||
[ViewVariables, DataField("fixture")] public string FixtureID = "projectile";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace Content.Server.Stunnable
|
||||
}
|
||||
private void HandleCollide(EntityUid uid, StunOnCollideComponent component, StartCollideEvent args)
|
||||
{
|
||||
if (args.OurFixture.ID != component.FixtureID) return;
|
||||
|
||||
TryDoCollideStun(uid, component, args.OtherFixture.Body.Owner);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user