global_vars

Vars | |
AdminProcCallCount | How many procs have been called |
---|---|
AdminProcCallSpamPrevention | List to handle proc call spam prevention |
AdminProcCaller | Who is currently calling procs |
LastAdminCalledProc | Last proc called |
LastAdminCalledTarget | Last target to have a proc called on it |
LastAdminCalledTargetUID | UID of the admin who last called |
PDAs | Global list of all PDAs in the world |
acid_overlay | ACID |
active_security_positions | Active security roles |
admin_mutes_assoc | Associative list of people who are muted via admin mutes |
admin_objective_list | Stores objective names as list keys, and their corresponding typepaths as list values. |
admin_state | tgui state: admin_state |
allNewscasters | Global list that contains all existing newscasters in the world. |
all_objectives | Stores a reference to every objective which currently exists. |
always_state | tgui state: always_state |
blurb_witnesses | List of ckeys that have seen a blurb of a given key. |
character_physiques | Global list for descriptors |
command_head_positions | Only roles that are command of departments, for revolution and similar stuff |
command_positions | All roles that are within the command category |
configuration | Global configuration datum holder for all the config sections |
conscious_state | tgui state: conscious_state |
deep_inventory_state | tgui state: contained_state |
default_state | tgui state: default_state |
dna_activity_bounds | DNA 2: The Spaghetti Strikes Back |
dna_mutations | Assoc list. Key = type of the mutation, value = the mutation |
dooc_enabled | Is OOC currently enabled for dead people? |
dsay_enabled | Is deadchat currently enabled? |
em_mask_matrix | A globaly cached version of EM_MASK_MATRIX for quick access. |
enter_allowed | Allow new players to enter the game? |
frozen_atom_list | Freeze Mob/Mech Verb -- Ported from NSS Pheonix (Unbound Travels)////// |
game_year | The current game year |
ghost_hud_panel | Stores an instance of /datum/ui_module/ghost_hud_panel so that ghosts can use this to open their HUD panel. |
gravity_generators | Global list of all active gravity generators. Keyed by the Z level |
hands_state | tgui state: hands_state |
huds | GLOBAL HUD LIST |
human_adjacent_state | tgui state: human_adjacent_state |
inventory_state | tgui state: inventory_state |
join_motd | Join MOTD for the server |
join_tos | Join TOS for the server |
library_catalog | Library Catalog global is for storing a library catalog datum that will track book, category, and report lists for the library |
looc_enabled | Is LOOC currently enabled? |
looping_sounds | List of looping sounds |
marker_beacon_colors | Marker Beacons |
mod_themes | Global list of all /datum/mod_theme |
mouse_respawn_time | Amount of time (in minutes) that must pass between a player dying as a mouse and repawning as a mouse |
multiverse | Multiverse Blade |
news_network | The feed network singleton. Contains all channels (which contain all stories). |
next_unique_datum_id | The next UID to be used (Increments by 1 for each UID) |
not_incapacitated_state | tgui state: not_incapacitated_state |
not_incapacitated_turf_state | tgui state: not_incapacitated_turf_state |
notcontained_state | tgui state: notcontained_state |
observer_state | tgui state: observer_state |
ooc_enabled | Is OOC currently enabled? |
physical_obscured_state | tgui state: physical_obscured_state |
physical_state | tgui state: physical_state |
security_positions | Roles that include any semblence of security, mostly for jobbans |
self_state | tgui state: self_state |
slower_restart | Will our restart be slower? |
tcomms_machines | Global list for all telecomms machines in the world |
tgs_log | Log of TGS stuff that can be viewed ingame |
tilt_crits | List of possible crits from things tipping over |
trait_name_map | value -> trait name, generated on use from trait_by_type global |
ui_logins | tgui login |
ui_modals | ui modals |
uid_log | Log of all UIDs created in the round. Assoc list with type as key and amount as value |
viewer_state | tgui state: viewer_state |
wire_color_directory | List of wire colors for each object type of that round. One for airlocks, one for vendors, etc. |
world_topic_handlers | List of all world topic handler datums. Populated inside makeDatumRefLists() |
world_topic_spam_prevention_handlers | List of all world topic spam prevention handlers. See code/modules/world_topic/_spam_prevention_handler.dm |
Var Details
AdminProcCallCount

How many procs have been called
AdminProcCallSpamPrevention

List to handle proc call spam prevention
AdminProcCaller

Who is currently calling procs
LastAdminCalledProc

Last proc called
LastAdminCalledTarget

Last target to have a proc called on it
LastAdminCalledTargetUID

UID of the admin who last called
PDAs

Global list of all PDAs in the world
acid_overlay

ACID
active_security_positions

Active security roles
admin_mutes_assoc

Associative list of people who are muted via admin mutes
admin_objective_list

Stores objective names as list keys, and their corresponding typepaths as list values.
admin_state

tgui state: admin_state
Checks that the user is an admin, end-of-story.
allNewscasters

Global list that contains all existing newscasters in the world.
all_objectives

Stores a reference to every objective which currently exists.
always_state

tgui state: always_state
Always grants the user UI_INTERACTIVE. Period.
blurb_witnesses

List of ckeys that have seen a blurb of a given key.
character_physiques

Global list for descriptors
command_head_positions

Only roles that are command of departments, for revolution and similar stuff
command_positions

All roles that are within the command category
configuration

Global configuration datum holder for all the config sections
conscious_state

tgui state: conscious_state
Only checks if the user is conscious.
deep_inventory_state

tgui state: contained_state
Checks that the user is inside the src_object.
tgui state: deep_inventory_state
Checks that the src_object is in the user's deep (backpack, box, toolbox, etc) inventory.
default_state

tgui state: default_state
Checks a number of things -- mostly physical distance for humans and view for robots.
Copyright (c) 2020 Aleksej Komarov SPDX-License-Identifier: MIT
dna_activity_bounds

DNA 2: The Spaghetti Strikes Back
@author N3X15 nexisentertainment@gmail.com
dna_mutations

Assoc list. Key = type of the mutation, value = the mutation
dooc_enabled

Is OOC currently enabled for dead people?
dsay_enabled

Is deadchat currently enabled?
em_mask_matrix

A globaly cached version of EM_MASK_MATRIX for quick access.
enter_allowed

Allow new players to enter the game?
frozen_atom_list

Freeze Mob/Mech Verb -- Ported from NSS Pheonix (Unbound Travels)//////
Allows admin's to right click on any mob/mech and freeze them in place.
game_year

The current game year
ghost_hud_panel

Stores an instance of /datum/ui_module/ghost_hud_panel so that ghosts can use this to open their HUD panel.
gravity_generators

Global list of all active gravity generators. Keyed by the Z level
hands_state

tgui state: hands_state
Checks that the src_object is in the user's hands.
huds

GLOBAL HUD LIST
human_adjacent_state

tgui state: human_adjacent_state
In addition to default checks, only allows interaction for a human adjacent user.
inventory_state

tgui state: inventory_state
Checks that the src_object is in the user's top-level (hand, ear, pocket, belt, etc) inventory.
join_motd

Join MOTD for the server
join_tos

Join TOS for the server
library_catalog

Library Catalog global is for storing a library catalog datum that will track book, category, and report lists for the library
looc_enabled

Is LOOC currently enabled?
looping_sounds

List of looping sounds
marker_beacon_colors

Marker Beacons
mod_themes

Global list of all /datum/mod_theme
mouse_respawn_time

Amount of time (in minutes) that must pass between a player dying as a mouse and repawning as a mouse
multiverse

Multiverse Blade
news_network

The feed network singleton. Contains all channels (which contain all stories).
next_unique_datum_id

The next UID to be used (Increments by 1 for each UID)
not_incapacitated_state

tgui state: not_incapacitated_state
Checks that the user isn't incapacitated
not_incapacitated_turf_state

tgui state: not_incapacitated_turf_state
Checks that the user isn't incapacitated and that their loc is a turf
notcontained_state

tgui state: notcontained_state
Checks that the user is not inside src_object, and then makes the default checks.
observer_state

tgui state: observer_state
Checks that the user is an observer/ghost.
ooc_enabled

Is OOC currently enabled?
physical_obscured_state

tgui state: physical_obscured_state
Short-circuits the default state to only check physical distance, being in view doesn't matter
physical_state

tgui state: physical_state
Short-circuits the default state to only check physical distance.
security_positions

Roles that include any semblence of security, mostly for jobbans
self_state

tgui state: self_state
Only checks that the user and src_object are the same.
slower_restart

Will our restart be slower?
tcomms_machines

Global list for all telecomms machines in the world
tgs_log

Log of TGS stuff that can be viewed ingame
tilt_crits

List of possible crits from things tipping over
trait_name_map

value -> trait name, generated on use from trait_by_type global
ui_logins

tgui login
Allows the handling of logins using IDs within tgui.
Two key procs:
- /obj/proc/ui_login_act - Call in your ui_act() proc to catch any login actions and handle them.
- /obj/proc/ui_login_data - Call in your ui_data() proc to pass login info.
How to use (DM side):
- Call /obj/proc/ui_login_act at the start of your ui_act() proc
- Call /obj/proc/ui_login_data in your ui_data() proc while passing the data list
- In your object, call /obj/proc/ui_login_get to get the current login state.
- Optional: call /obj/proc/ui_login_attackby in your attackby() to make the login process easier.
How to use (JS side): Use the
ui_modals

ui modals
Allows creation of modals within tgui.
uid_log

Log of all UIDs created in the round. Assoc list with type as key and amount as value
viewer_state

tgui state: viewer_state
State for only viewing, regardless of distance. Different from observer_state, which grants interactivity exclusively if an observer/admin.
wire_color_directory

List of wire colors for each object type of that round. One for airlocks, one for vendors, etc.
world_topic_handlers

List of all world topic handler datums. Populated inside makeDatumRefLists()
world_topic_spam_prevention_handlers

List of all world topic spam prevention handlers. See code/modules/world_topic/_spam_prevention_handler.dm