ai ![code/modules/mob/living/silicon/ai/ai_defines.dm 1](git.png)
Vars | |
acceleration | If the camera eye [proc/AIMove][moves progressively faster] when looking around |
---|---|
aiMulti | Used as a fake multitool in tcomms machinery |
aiRestorePowerRoutine | Current stage of the AI's power restoration routine |
ai_tracking_tool | The internal tool used to track players visible through cameras |
ai_voicechanger | Reference to machine that holds the voicechanger |
alert_control | UI for station alerts |
all_eyes | List of [mob/eye/camera/ai][camera eyes] that the AI has created, including the [var/eyeobj][main eye] |
apc_override | The APC the AI is powered from, set when the AI has no power in order to access their APC |
battery | Reserve emergency power, consumed when the AI has no [var/power_requirement][power source] |
bot_ref | Weakref to the bot the AI is currently commanding |
cam_hotkeys | List of atoms that the AI's camera can quickly jump to through keys 1-9 |
cam_prev | The camera's last location before jumping |
camera_light_on | If the AI has their camera light enabled |
can_be_carded | If FALSE, attempts to [obj/item/aicard][card] the AI will be rejected |
can_dominate_mechs | If TRUE, the AI can take control over mechs |
can_shunt | If TRUE, the AI can shunt themselves into APCs |
connected_robots | List of robots currently synced to the AI |
controlled_equipment | Equipment that the AI is controlling remotely, to determine whether to relaymove or use the AI eye |
current | The AI's currently used holopad |
current_modules | Modules that the AI has already unlocked |
deploy_action | Action to deploy to a shell from a list of options |
deployed_shell | Robot that this AI is currently using |
display_icon_override | AI core icon_state selected by the AI through [verb/pick_icon] |
doomsday_device | Reference to the doomsday device |
explodes_on_death | If TRUE, the AI will explode when killed |
eyeobj | The AI's main eye |
hacked_apcs | APCs that the AI has already hacked |
hologram_appearance | The AI's hologram appearance, can be set by a client and is assigned on AI creation |
is_anchored | If the AI is currently anchored to the ground, used for checks. Distinct from atom/movable/anchored |
last_announcement | The last attempted VOX announcement. Exists so that failed VOXes can be retried easily |
last_moved | Time since the AI [proc/AIMove][last moved their camera eye], uses world.timeofday |
last_tablet_note_seen | Raw HTML containing the last page that was loaded from a held-up PDA |
lastloc | The AI eye's last location, used when answering a hologram request |
linked_core | AI core that this AI is linked to, used when put into an exosuit |
lit_cameras | List of cameras that have been illuminated by the AI's camera light |
malf_cooldown | Cooldown between malf module usages |
malf_picker | UI for picking malfunction modules |
malfhack | APC that we are currently hacking |
malfhacking | Timer used when hacking an APC |
master_multicam | The multicamera window that the AI is currently using |
max_multicams | Maximum multicamera windows the AI can have open |
modules_action | Opens the [datum/module_picker][malf module UI] |
multicam_on | If the AI is in multicamera mode |
multicam_screens | All of the AI's currently open multicamera windows |
network | The network that the AI is currently viewing |
nuking | If the AI has enabled doomsday |
opened | Whether its cover is opened, so you can wirecut it for deconstruction |
posibrain_inside | Whether its MMI is a posibrain or regular MMI, used when being [obj/structure/ai_core][deconstructed] |
power_requirement | The conditions the AI will check to see if it's powered, can be set to NONE (0) to disable requirements |
radio_enabled | If this AI can use their radio |
redeploy_action | Action to deploy to the last shell the AI used |
robot_control | UI for robot controls |
setting_waypoint | If TRUE, the AI will send it's [var/bot_ref][commanded bot] to the next clicked atom |
shunted | TRUE if the AI is currently shunted, used to differentiate between shunted and ghosted/braindead |
spark_system | Helper effect that creates sparks when the AI is damaged |
sprint | The current movement speed of the camera, it's definition being the base speed. Moves 1 more tile for every 10 sprint. |
Procs | |
ai_base_click_alt | Reimplementation of base_click_alt for AI |
apply_emote_display | Apply an emote to all AI status displays on the station |
apply_pref_emote_display | Apply an AI's emote display preference |
apply_pref_hologram_display | Apply an AI's hologram preference |
on_track_target | Called when an AI finds their tracking target. |
remove_malf_abilities | Removes all malfunction-related abilities from the AI |
setAiRestorePowerRoutine | Proc to hook behavior to the changes of the value of [aiRestorePowerRoutine]. |
tracked_glidesize_changed | Keeps our rate of gliding in step with the mob we're following |
Var Details
acceleration ![code/modules/mob/living/silicon/ai/ai_defines.dm 86](git.png)
If the camera eye [proc/AIMove][moves progressively faster] when looking around
aiMulti ![code/modules/mob/living/silicon/ai/ai_defines.dm 167](git.png)
Used as a fake multitool in tcomms machinery
aiRestorePowerRoutine ![code/modules/mob/living/silicon/ai/ai_defines.dm 56](git.png)
Current stage of the AI's power restoration routine
ai_tracking_tool ![code/modules/mob/living/silicon/ai/ai_defines.dm 80](git.png)
The internal tool used to track players visible through cameras
ai_voicechanger ![code/modules/mob/living/silicon/ai/ai_defines.dm 117](git.png)
Reference to machine that holds the voicechanger
alert_control ![code/modules/mob/living/silicon/ai/ai_defines.dm 163](git.png)
UI for station alerts
all_eyes ![code/modules/mob/living/silicon/ai/ai_defines.dm 78](git.png)
List of [mob/eye/camera/ai][camera eyes] that the AI has created, including the [var/eyeobj][main eye]
apc_override ![code/modules/mob/living/silicon/ai/ai_defines.dm 58](git.png)
The APC the AI is powered from, set when the AI has no power in order to access their APC
battery ![code/modules/mob/living/silicon/ai/ai_defines.dm 52](git.png)
Reserve emergency power, consumed when the AI has no [var/power_requirement][power source]
bot_ref ![code/modules/mob/living/silicon/ai/ai_defines.dm 148](git.png)
Weakref to the bot the AI is currently commanding
cam_hotkeys ![code/modules/mob/living/silicon/ai/ai_defines.dm 69](git.png)
List of atoms that the AI's camera can quickly jump to through keys 1-9
cam_prev ![code/modules/mob/living/silicon/ai/ai_defines.dm 71](git.png)
The camera's last location before jumping
camera_light_on ![code/modules/mob/living/silicon/ai/ai_defines.dm 65](git.png)
If the AI has their camera light enabled
can_be_carded ![code/modules/mob/living/silicon/ai/ai_defines.dm 22](git.png)
If FALSE, attempts to [obj/item/aicard][card] the AI will be rejected
can_dominate_mechs ![code/modules/mob/living/silicon/ai/ai_defines.dm 107](git.png)
If TRUE, the AI can take control over mechs
can_shunt ![code/modules/mob/living/silicon/ai/ai_defines.dm 109](git.png)
If TRUE, the AI can shunt themselves into APCs
connected_robots ![code/modules/mob/living/silicon/ai/ai_defines.dm 47](git.png)
List of robots currently synced to the AI
controlled_equipment ![code/modules/mob/living/silicon/ai/ai_defines.dm 122](git.png)
Equipment that the AI is controlling remotely, to determine whether to relaymove or use the AI eye
current ![code/modules/mob/living/silicon/ai/ai_defines.dm 159](git.png)
The AI's currently used holopad
current_modules ![code/modules/mob/living/silicon/ai/ai_defines.dm 95](git.png)
Modules that the AI has already unlocked
deploy_action ![code/modules/mob/living/silicon/ai/ai_defines.dm 128](git.png)
Action to deploy to a shell from a list of options
deployed_shell ![code/modules/mob/living/silicon/ai/ai_defines.dm 126](git.png)
Robot that this AI is currently using
display_icon_override ![code/modules/mob/living/silicon/ai/ai_defines.dm 42](git.png)
AI core icon_state selected by the AI through [verb/pick_icon]
doomsday_device ![code/modules/mob/living/silicon/ai/ai_defines.dm 115](git.png)
Reference to the doomsday device
explodes_on_death ![code/modules/mob/living/silicon/ai/ai_defines.dm 24](git.png)
If TRUE, the AI will explode when killed
eyeobj ![code/modules/mob/living/silicon/ai/ai_defines.dm 76](git.png)
The AI's main eye
hacked_apcs ![code/modules/mob/living/silicon/ai/ai_defines.dm 104](git.png)
APCs that the AI has already hacked
hologram_appearance ![code/modules/mob/living/silicon/ai/ai_defines.dm 157](git.png)
The AI's hologram appearance, can be set by a client and is assigned on AI creation
is_anchored ![code/modules/mob/living/silicon/ai/ai_defines.dm 35](git.png)
If the AI is currently anchored to the ground, used for checks. Distinct from atom/movable/anchored
last_announcement ![code/modules/mob/living/silicon/ai/ai_defines.dm 40](git.png)
The last attempted VOX announcement. Exists so that failed VOXes can be retried easily
last_moved ![code/modules/mob/living/silicon/ai/ai_defines.dm 84](git.png)
Time since the AI [proc/AIMove][last moved their camera eye], uses world.timeofday
last_tablet_note_seen ![code/modules/mob/living/silicon/ai/ai_defines.dm 38](git.png)
Raw HTML containing the last page that was loaded from a held-up PDA
lastloc ![code/modules/mob/living/silicon/ai/ai_defines.dm 155](git.png)
The AI eye's last location, used when answering a hologram request
linked_core ![code/modules/mob/living/silicon/ai/ai_defines.dm 124](git.png)
AI core that this AI is linked to, used when put into an exosuit
lit_cameras ![code/modules/mob/living/silicon/ai/ai_defines.dm 67](git.png)
List of cameras that have been illuminated by the AI's camera light
malf_cooldown ![code/modules/mob/living/silicon/ai/ai_defines.dm 97](git.png)
Cooldown between malf module usages
malf_picker ![code/modules/mob/living/silicon/ai/ai_defines.dm 91](git.png)
UI for picking malfunction modules
malfhack ![code/modules/mob/living/silicon/ai/ai_defines.dm 102](git.png)
APC that we are currently hacking
malfhacking ![code/modules/mob/living/silicon/ai/ai_defines.dm 100](git.png)
Timer used when hacking an APC
master_multicam ![code/modules/mob/living/silicon/ai/ai_defines.dm 139](git.png)
The multicamera window that the AI is currently using
max_multicams ![code/modules/mob/living/silicon/ai/ai_defines.dm 137](git.png)
Maximum multicamera windows the AI can have open
modules_action ![code/modules/mob/living/silicon/ai/ai_defines.dm 93](git.png)
Opens the [datum/module_picker][malf module UI]
multicam_on ![code/modules/mob/living/silicon/ai/ai_defines.dm 135](git.png)
If the AI is in multicamera mode
multicam_screens ![code/modules/mob/living/silicon/ai/ai_defines.dm 141](git.png)
All of the AI's currently open multicamera windows
network ![code/modules/mob/living/silicon/ai/ai_defines.dm 63](git.png)
The network that the AI is currently viewing
nuking ![code/modules/mob/living/silicon/ai/ai_defines.dm 113](git.png)
If the AI has enabled doomsday
opened ![code/modules/mob/living/silicon/ai/ai_defines.dm 33](git.png)
Whether its cover is opened, so you can wirecut it for deconstruction
posibrain_inside ![code/modules/mob/living/silicon/ai/ai_defines.dm 26](git.png)
Whether its MMI is a posibrain or regular MMI, used when being [obj/structure/ai_core][deconstructed]
power_requirement ![code/modules/mob/living/silicon/ai/ai_defines.dm 54](git.png)
The conditions the AI will check to see if it's powered, can be set to NONE (0) to disable requirements
radio_enabled ![code/modules/mob/living/silicon/ai/ai_defines.dm 31](git.png)
If this AI can use their radio
redeploy_action ![code/modules/mob/living/silicon/ai/ai_defines.dm 130](git.png)
Action to deploy to the last shell the AI used
robot_control ![code/modules/mob/living/silicon/ai/ai_defines.dm 146](git.png)
UI for robot controls
setting_waypoint ![code/modules/mob/living/silicon/ai/ai_defines.dm 150](git.png)
If TRUE, the AI will send it's [var/bot_ref][commanded bot] to the next clicked atom
shunted ![code/modules/mob/living/silicon/ai/ai_defines.dm 111](git.png)
TRUE if the AI is currently shunted, used to differentiate between shunted and ghosted/braindead
spark_system ![code/modules/mob/living/silicon/ai/ai_portrait_picker.dm 2](git.png)
Helper effect that creates sparks when the AI is damaged
sprint ![code/modules/mob/living/silicon/ai/ai_defines.dm 82](git.png)
The current movement speed of the camera, it's definition being the base speed. Moves 1 more tile for every 10 sprint.
Proc Details
ai_base_click_alt
Reimplementation of base_click_alt for AI
apply_emote_display
Apply an emote to all AI status displays on the station
apply_pref_emote_display
Apply an AI's emote display preference
apply_pref_hologram_display
Apply an AI's hologram preference
on_track_target
Called when an AI finds their tracking target.
remove_malf_abilities
Removes all malfunction-related abilities from the AI
setAiRestorePowerRoutine
Proc to hook behavior to the changes of the value of [aiRestorePowerRoutine].
tracked_glidesize_changed
Keeps our rate of gliding in step with the mob we're following