* - tweak: Increased hardlight spear throw force and use delay * - fix: Hardlight spear can now hit holocarps when thrown * - add: New sprites for hardlight spear * - fix: Fix duping hardlight spears by inserting them into containers
18 lines
493 B
C#
18 lines
493 B
C#
using Content.Shared.Throwing;
|
|
|
|
namespace Content.Server._White.Other.ChangeThrowForceSystem;
|
|
|
|
public sealed class ChangeThrowForceSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeLocalEvent<ChangeThrowForceComponent, BeforeThrowEvent>(HandleThrow);
|
|
}
|
|
|
|
private void HandleThrow(EntityUid uid, ChangeThrowForceComponent component, ref BeforeThrowEvent args)
|
|
{
|
|
args.ThrowStrength = component.ThrowForce;
|
|
}
|
|
}
|