Wheelchair users can bump open doors (#23806)

This commit is contained in:
themias
2024-01-09 17:06:28 -05:00
committed by GitHub
parent 633420321c
commit 4cc3c91805
2 changed files with 3 additions and 5 deletions

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

View File

@@ -386,9 +386,6 @@
friction: 0.8
baseWalkSpeed: 3.5
baseSprintSpeed: 4.3
- type: Tag
tags:
- DoorBumpOpener
- type: Destructible
thresholds:
- trigger: