Files
OldThink/Content.Server/_White/Other/ChangeThrowForceSystem/ChangeThrowForceSystem.cs
Aviu00 27d4cf977f Hardlight spear tweaks (#3)
* - 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
2024-01-31 12:47:18 +00:00

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;
}
}