tgstation/-tg-station — pull request #3142 by Alek2ander (2014-03-22 21:06:29+00:00)
Title: pAI remote computer control

Added new pAI ability: Remote Control.
Costs 60 memory.
Allows the pAI to remotely interact with one computer, after the owner creates a connection.
Connection is created by the owner by using the pAI on the computer, provided that (a) the pAI is active and in pairing mode, which can be activated by the pAI in the interface (b) the computer is working and powered on (c) the owner has an ID with access required to use the computer.
The connection is severed if the computer breaks, loses power, is deconstructed, or if another pAI gets paired with it.
The pAI gets access to the interface with the least of human or AI rights (e.g. AI rights on comms console - cannot recall shuttle, but human rights on holodeck console - cannot override safeties)
The pAI cannot be paired with consoles with no interface (Upload, Shuttle Console), Arcade Machines (slaves don't deserve fun) or Telecrystal Consoles (because those are useless without an uplink in).

Other changes:
Replaced qdel() with del() when dealing with the data cable for pAI door jack to get rid of spam in the chat.
Moved around checks in the camera computer to allow the pAI to monitor cameras. This didn't fix weirdness related to the AI accessing the console. I don't know what will.