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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user