]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Wheelchair users can bump open doors (#23806)
authorthemias <89101928+themias@users.noreply.github.com>
Tue, 9 Jan 2024 22:06:28 +0000 (17:06 -0500)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2024 22:06:28 +0000 (17:06 -0500)
Content.Shared/Vehicle/SharedVehicleSystem.cs
Resources/Prototypes/Entities/Objects/Vehicles/buckleable.yml

index 3ac70c31ade995054174f3a905050e45964edd65..3775ab1ec140b640e0a7e19ba1bb40f3c67da04a 100644 (file)
@@ -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<RiderComponent>(args.BuckledEntity);
         RemComp<RelayInputMoverComponent>(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);
     }
 
index 1cfc54efbe31bf44adf823a4e2994ab75b84cf20..f3213fdbc936d025ccd511711ae944a47e49873a 100644 (file)
     friction: 0.8
     baseWalkSpeed: 3.5
     baseSprintSpeed: 4.3
-  - type: Tag
-    tags:
-      - DoorBumpOpener
   - type: Destructible
     thresholds:
     - trigger: