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>
This commit is contained in:
Samuka-C
2025-05-01 02:20:56 -03:00
committed by GitHub
parent b8e65d56b1
commit d925b6f7d2
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -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