From: themias <89101928+themias@users.noreply.github.com> Date: Tue, 9 Jan 2024 22:06:28 +0000 (-0500) Subject: Wheelchair users can bump open doors (#23806) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=4cc3c91805ff72f7cdfd1a0ea5841519c75e939d;p=space-station-14.git Wheelchair users can bump open doors (#23806) --- diff --git a/Content.Shared/Vehicle/SharedVehicleSystem.cs b/Content.Shared/Vehicle/SharedVehicleSystem.cs index 3ac70c31ad..3775ab1ec1 100644 --- a/Content.Shared/Vehicle/SharedVehicleSystem.cs +++ b/Content.Shared/Vehicle/SharedVehicleSystem.cs @@ -146,6 +146,8 @@ public abstract partial class SharedVehicleSystem : EntitySystem _joints.ClearJoints(args.BuckledEntity); + _tagSystem.AddTag(uid, "DoorBumpOpener"); + return; } @@ -161,6 +163,7 @@ public abstract partial class SharedVehicleSystem : EntitySystem // Entity is no longer riding RemComp(args.BuckledEntity); RemComp(args.BuckledEntity); + _tagSystem.RemoveTag(uid, "DoorBumpOpener"); Appearance.SetData(uid, VehicleVisuals.HideRider, false); // Reset component @@ -205,7 +208,6 @@ public abstract partial class SharedVehicleSystem : EntitySystem // Audiovisual feedback _ambientSound.SetAmbience(uid, true); - _tagSystem.AddTag(uid, "DoorBumpOpener"); _modifier.RefreshMovementSpeedModifiers(uid); } @@ -220,7 +222,6 @@ public abstract partial class SharedVehicleSystem : EntitySystem // Disable vehicle component.HasKey = false; _ambientSound.SetAmbience(uid, false); - _tagSystem.RemoveTag(uid, "DoorBumpOpener"); _modifier.RefreshMovementSpeedModifiers(uid); } diff --git a/Resources/Prototypes/Entities/Objects/Vehicles/buckleable.yml b/Resources/Prototypes/Entities/Objects/Vehicles/buckleable.yml index 1cfc54efbe..f3213fdbc9 100644 --- a/Resources/Prototypes/Entities/Objects/Vehicles/buckleable.yml +++ b/Resources/Prototypes/Entities/Objects/Vehicles/buckleable.yml @@ -386,9 +386,6 @@ friction: 0.8 baseWalkSpeed: 3.5 baseSprintSpeed: 4.3 - - type: Tag - tags: - - DoorBumpOpener - type: Destructible thresholds: - trigger: