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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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: