apc_control ![code/game/machinery/computer/apc_control.dm 1](git.png)
Vars | |
active_apc | The APC we're remotely connected to right now |
---|---|
auth_id | Tracks the current logged-in user's ID card's name and assignment |
is_on_station | Whether the computer is on a station-level; set in Initialize() for use in checking APCs |
logs | List of logs containing events like logins/logoffs, APC access and manipulation, checking the APC/logs tabs and restoring logging after an emag |
restoring | Whether the console is currently being restored from an emagged state |
should_log | Whether actions are being logged to the console's logs or not |
Procs | |
check_apc | Checks for whether the APC provided is eligible for access and being listed in the APC list. The APC has to: |
connect_apc | Initiates remote access to the APC |
disconnect_apc | Disconnect from the APC we're currently in remote access with arguments: mute - whether the APC should announce the disconnection locally, passed into apc's disconnect_remote_access() |
log_activity | Creates a log entry in the console with a timestamp, current login ID data and the text provided in log_text |
on_apc_destroyed | Disconnects the computer from the accessed APC upon its destruction |
restore_comp | Resets the console's emagged state and re-enables logging of activity |
Var Details
active_apc ![code/game/machinery/computer/apc_control.dm 10](git.png)
The APC we're remotely connected to right now
auth_id ![code/game/machinery/computer/apc_control.dm 18](git.png)
Tracks the current logged-in user's ID card's name and assignment
is_on_station ![code/game/machinery/computer/apc_control.dm 20](git.png)
Whether the computer is on a station-level; set in Initialize() for use in checking APCs
logs ![code/game/machinery/computer/apc_control.dm 16](git.png)
List of logs containing events like logins/logoffs, APC access and manipulation, checking the APC/logs tabs and restoring logging after an emag
restoring ![code/game/machinery/computer/apc_control.dm 14](git.png)
Whether the console is currently being restored from an emagged state
should_log ![code/game/machinery/computer/apc_control.dm 12](git.png)
Whether actions are being logged to the console's logs or not
Proc Details
check_apc
Checks for whether the APC provided is eligible for access and being listed in the APC list. The APC has to:
- be on a station z-level if the computer is station-side or be on the same z-level as the computer if otherwise (away subtype, charlie station)
- be not hacked by a malf AI
- have AI control enabled
- be not emagged
- be working
- not be an AI monitored area (AI sat areas and AI upload)
connect_apc
Initiates remote access to the APC
disconnect_apc
Disconnect from the APC we're currently in remote access with arguments: mute - whether the APC should announce the disconnection locally, passed into apc's disconnect_remote_access()
log_activity
Creates a log entry in the console with a timestamp, current login ID data and the text provided in log_text
on_apc_destroyed
Disconnects the computer from the accessed APC upon its destruction
restore_comp
Resets the console's emagged state and re-enables logging of activity