preferences 
Vars | |
can_be_antagonist | Can this character be antagonist. |
---|---|
custom_emotes | Custom emote text ("name" = "emote text") |
ghost_darkness_level | How dark things are if client is a ghost, 0-255 |
keybindings | Active keybinds (currently useable by the mob/client) |
keybindings_overrides | Keybinding overrides ("name" => ["key"...]) |
minigames_notifications | Minigames notification about their end, start and etc. |
parallax | Parallax |
screentip_color | Color of screentips at top of screen |
screentip_mode | Screentip Mode, in pixels. 8 is small, 15 is mega big, 0 is off. |
skip_antag | TRUE when a player declines to be included for the selection process of game mode antagonists. |
viewrange | View range preference for this client |
volume_mixer | Volume mixer, indexed by channel as TEXT (numerical indexes will not work). Volume goes from 0 to 100. |
volume_mixer_saving | The volume mixer save timer handle. Used to debounce the DB call to save, to avoid spamming. |
Procs | |
build_loadout | Rebuilds the loadout_gear list of the [active_character], and returns the total end cost. |
deserialize_volume_mixer | Returns a volume mixer list from text, usually from the DB. |
get_channel_volume | Returns a volume multiplier for the given channel, from 0 to 1 (default). |
get_possible_antagonist | Get random charecter with can_be_antagonist on. If no such characters, don't change current. |
save_volume_mixer | Saves [/datum/preferences/proc/volume_mixer] for the current client. |
serialize_volume_mixer | Returns a DB-friendly version of a volume mixer list. |
set_channel_volume | Changes a channel's volume then queues it for DB save. |
Var Details
can_be_antagonist 
Can this character be antagonist.
custom_emotes 
Custom emote text ("name" = "emote text")
ghost_darkness_level 
How dark things are if client is a ghost, 0-255
keybindings 
Active keybinds (currently useable by the mob/client)
keybindings_overrides 
Keybinding overrides ("name" => ["key"...])
minigames_notifications 
Minigames notification about their end, start and etc.
parallax 
Parallax
screentip_color 
Color of screentips at top of screen
screentip_mode 
Screentip Mode, in pixels. 8 is small, 15 is mega big, 0 is off.
skip_antag 
TRUE when a player declines to be included for the selection process of game mode antagonists.
viewrange 
View range preference for this client
volume_mixer 
Volume mixer, indexed by channel as TEXT (numerical indexes will not work). Volume goes from 0 to 100.
volume_mixer_saving 
The volume mixer save timer handle. Used to debounce the DB call to save, to avoid spamming.
Proc Details
build_loadout
Rebuilds the loadout_gear
list of the [active_character], and returns the total end cost.
Caches and cuts the existing [/datum/character_save/var/loadout_gear] list and remakes it, checking the subtype_selection_cost
and overall cost validity of each item.
If the item's [/datum/gear/var/subtype_selection_cost] is FALSE
, any future items with the same [/datum/gear/var/main_typepath] will have their cost skipped.
If adding the item will take the total cost over the maximum, it won't be added to the list.
Arguments:
- new_item - A new /datum/gear item to be added to the
loadout_gear
list.
deserialize_volume_mixer
Returns a volume mixer list from text, usually from the DB.
Failure to deserialize will return the current value.
Arguments
- vmt - The volume mixer list to deserialize.
get_channel_volume
Returns a volume multiplier for the given channel, from 0 to 1 (default).
Arguments:
- channel - The channel whose volume to get.
get_possible_antagonist
Get random charecter with can_be_antagonist on. If no such characters, don't change current.
save_volume_mixer
Saves [/datum/preferences/proc/volume_mixer] for the current client.
serialize_volume_mixer
Returns a DB-friendly version of a volume mixer list.
Arguments
- vm - The volume mixer list to serialize.
set_channel_volume
Changes a channel's volume then queues it for DB save.
Arguments:
- channel - The channel whose volume to change.
- volume - The new volume, clamped between 0 and 100.
- debounce_save - Whether to debounce the save call to prevent spamming of DB calls.