Add an admin smite for making people slip really far (and localize the admin smites better) (#27246)

* Sliiiiiiiiiiiiiiiiiip

* what

* Localize!

* antiterminate
This commit is contained in:
Джексон Миссиссиппи
2024-05-11 21:01:58 -05:00
committed by GitHub
parent db2beafd59
commit cf148288a0
3 changed files with 113 additions and 43 deletions

View File

@@ -67,7 +67,7 @@ public sealed class SlipperySystem : EntitySystem
&& _statusEffects.CanApplyEffect(toSlip, "Stun"); //Should be KnockedDown instead?
}
private void TrySlip(EntityUid uid, SlipperyComponent component, EntityUid other)
public void TrySlip(EntityUid uid, SlipperyComponent component, EntityUid other, bool requiresContact = true)
{
if (HasComp<KnockedDownComponent>(other) && !component.SuperSlippery)
return;
@@ -89,7 +89,7 @@ public sealed class SlipperySystem : EntitySystem
{
_physics.SetLinearVelocity(other, physics.LinearVelocity * component.LaunchForwardsMultiplier, body: physics);
if (component.SuperSlippery)
if (component.SuperSlippery && requiresContact)
{
var sliding = EnsureComp<SlidingComponent>(other);
sliding.CollidingEntities.Add(uid);