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