From: Samuka-C <47865393+Samuka-C@users.noreply.github.com> Date: Thu, 1 May 2025 05:20:56 +0000 (-0300) Subject: Make universal access config better (#37079) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=d925b6f7d2aa830d4c03fc3b41daa248a17b2202;p=space-station-14.git Make universal access config better (#37079) * add a universal ID card to the universal access config * make the admin access config have infinite range * now checks for the BypassInteractionRange Tag instead * Add suggested fix to the AccessOverrider system Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * remove other stuff I added * another suggested change to avoid weird behaviour where you can use it from a distance --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- diff --git a/Content.Server/Access/Systems/AccessOverriderSystem.cs b/Content.Server/Access/Systems/AccessOverriderSystem.cs index 4bb42a30a3..4062909d75 100644 --- a/Content.Server/Access/Systems/AccessOverriderSystem.cs +++ b/Content.Server/Access/Systems/AccessOverriderSystem.cs @@ -197,7 +197,7 @@ public sealed class AccessOverriderSystem : SharedAccessOverriderSystem if (!PrivilegedIdIsAuthorized(uid, component)) return; - if (!_interactionSystem.InRangeUnobstructed(uid, component.TargetAccessReaderId)) + if (!_interactionSystem.InRangeUnobstructed(player, component.TargetAccessReaderId)) { _popupSystem.PopupEntity(Loc.GetString("access-overrider-out-of-range"), player, player); diff --git a/Resources/Prototypes/Entities/Objects/Tools/access_configurator.yml b/Resources/Prototypes/Entities/Objects/Tools/access_configurator.yml index 188cbfc51b..03b49e506b 100644 --- a/Resources/Prototypes/Entities/Objects/Tools/access_configurator.yml +++ b/Resources/Prototypes/Entities/Objects/Tools/access_configurator.yml @@ -69,6 +69,7 @@ requiresComplex: true requireActiveHand: false singleUser: true + inHandsOnly: true - type: ItemSlots - type: ContainerContainer containers: @@ -130,6 +131,7 @@ - GenpopLeave privilegedIdSlot: name: id-card-console-privileged-id + startingItem: UniversalIDCard ejectSound: /Audio/Machines/id_swipe.ogg insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg ejectOnBreak: true