client
Vars | |
active_mousedown_item | Autoclick variable referencing the associated item. |
---|---|
admin_music_volume | Admin music volume, from 0 to 1. |
autobunker_last_try | last time they tried to do an autobunker auth |
block_parry_hinted | Should go in persistent round player data sometime. This tracks what items have already warned the user on pickup that they can block/parry. |
click_catcher | Click catcher |
click_intercept_time | Time when the click was intercepted |
clicklimiter | Used for limiting the rate of clicks sends by the client to avoid abuse |
client_keysend_amount | Amount of keydowns in the last keysend checking interval |
completed_asset_jobs | List of all completed blocking send jobs awaiting acknowledgement by send_asset |
credits | lazy list of all credit object bound to this client |
cryo_warned | When was the last time we warned them about not cryoing without an ahelp, set to -5 minutes so that rounstart cryo still warns |
holder | Contains admin info. Null if client is not an admin. |
keys_held | Keys currently held |
keysend_tripped | When set to true, user will be autokicked if they trip the keysends in a second limit again |
last_activity | AFK tracking |
last_asset_job | Last asset send job id. |
last_click | Last time we Click()ed. No clicking twice in one tick! |
last_macro_fix | Last time they used fix macros |
mouseParams | Used in MouseDrag to preserve the original mouse click parameters |
mouse_location_ref | Used in MouseDrag to preserve the last mouse-entered location. Weakref |
mouse_object_ref | Used in MouseDrag to preserve the last mouse-entered object. Weakref |
mouse_override_icon | used to override the mouse cursor so it doesnt get reset |
moused_over_objects | moused over objects, currently capped at 7. this is awful, and should be replaced with a component to track it using signals for parrying at some point. |
movement_keys | custom movement keys for this client |
navigation_images | Images of the path created by navigate(). |
next_keysend_reset | World tick time where client_keysend_amount will reset |
next_keysend_trip_reset | World tick time where keysend_tripped will reset back to false |
next_mousemove | The next point in time at which the client is allowed to send a mousemove() or mousedrag() |
next_move_dir_add | These next two vars are to apply movement for keypresses and releases made while move delayed. Because discarding that input makes the game less responsive. On next move, add this dir to the move that would otherwise be done |
next_move_dir_sub | On next move, subtract this dir from the move that would otherwise be done |
panel_tabs | list of all tabs |
parallax_holder | Parallax holder |
recent_examines | A lazy list of atoms we've examined in the last EXAMINE_MORE_TIME (default 1.5) seconds, so that we will call [atom/proc/examine_more()] instead of [atom/proc/examine()] on them when examining |
screen_maps | Assoc list with all the active maps - when a screen obj is added to a map, it's put in here as well. |
script | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!HEY LISTEN!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
seen_messages | Messages currently seen by this client |
selected_target | Autoclick list of two elements, first being the clicked thing, second being the parameters. |
show_verb_panel | hides the byond verb panel as we use our own custom version |
spell_tabs | list of tabs containing spells and abilities |
stat_tab | our current tab |
statbrowser_ready | whether our browser is ready or not yet |
tgui_cache_reloaded | global |
tgui_windows | global |
tip_timer | Timers are now handled by clients, not by doing a mess on the item and multiple people overwriting a single timer on the object, have fun. |
total_count_reset | Next tick to reset the total message counter |
total_message_count | How many messages sent in the last 10 seconds |
verb_tabs | list of tabs containing verbs |
view_size | viewsize datum for holding our view size |
Procs | |
ForceAllKeysUp | Keyup's all keys held down. |
NONSENSICAL_VERB_THAT_DOES_NOTHING | *sigh |
Process_Grab | Process_Grab(): checks for grab, attempts to break if so. Return TRUE to prevent movement. |
Process_Incorpmove | Process_Incorpmove Called by client/Move() Allows mobs to run though walls |
admin_cmd_remove_ghost_respawn_timer | Allows a ghost to bypass respawn delay without lifting respawn restrictions |
admin_cmd_respawn_return_to_lobby | Fully returns a player to lobby, allowing them to bypass all respawn restrictions Works on ghosts or new players (lobby players) If a lobby player is selected, their restrictions are removed. |
asset_cache_confirm_arrival | Process asset cache client topic calls for "asset_cache_confirm_arrival=[INT]" |
asset_cache_preload_data | Process asset cache client topic calls for "asset_cache_preload_data=[HTML+JSON_STRING]" |
asset_cache_update_json | Updates the client side stored json file used to keep track of what assets the client has between restarts/reconnects. |
award_heart | Redirect proc that makes it easier to get the status of an achievement. Achievement type is the typepath to the award. |
browse_queue_flush | Blocks until all currently sending browse and browse_rsc assets have been sent. Due to byond limitations, this proc will sleep for 1 client round trip even if the client has no pending asset sends. This proc will return an untrue value if it had to return before confirming the send, such as timeout or the client going away. |
clear_all_maps | Clears all the maps of registered screen objects. |
clear_map | Clears the map of registered screen objects. |
close_popup | Closes a popup. |
create_popup | Creates a popup window with a basic map element in it, without any further initialization. |
fix_tgui_panel | tgui panel / chat troubleshooting verb |
forceEvent | Allows an admin to force an event |
get_award_status | Redirect proc that makes it easier to get the status of an achievement. Achievement type is the typepath to the award. |
give_award | Redirect proc that makes it easier to call the unlock achievement proc. Achievement type is the typepath to the award, user is the mob getting the award, and value is an optional variable used for leaderboard value increments |
handle_popup_close | When the popup closes in any way (player or proc call) it calls this. |
init_verbs | compiles a full list of verbs and sends it to the browser |
register_map_obj | Registers screen obj with the client, which makes it visible on the assigned map, and becomes a part of the assigned map's lifecycle. |
send_resources | Send resources to the client. Sends both game resources and browser assets. |
set_tab | verbs that send information from the browser UI |
setup_popup | Create the popup, and get it ready for generic use by giving it a background. |
uiclose | verb |
update_clickcatcher | Makes a clickcatcher if necessary, and ensures it's fit to our size. |
update_special_keybinds | Updates the keybinds for special keys |
Var Details
active_mousedown_item
Autoclick variable referencing the associated item.
admin_music_volume
Admin music volume, from 0 to 1.
autobunker_last_try
last time they tried to do an autobunker auth
block_parry_hinted
Should go in persistent round player data sometime. This tracks what items have already warned the user on pickup that they can block/parry.
click_catcher
Click catcher
click_intercept_time
Time when the click was intercepted
clicklimiter
Used for limiting the rate of clicks sends by the client to avoid abuse
client_keysend_amount
Amount of keydowns in the last keysend checking interval
completed_asset_jobs
List of all completed blocking send jobs awaiting acknowledgement by send_asset
credits
lazy list of all credit object bound to this client
cryo_warned
When was the last time we warned them about not cryoing without an ahelp, set to -5 minutes so that rounstart cryo still warns
holder
Contains admin info. Null if client is not an admin.
keys_held
Keys currently held
keysend_tripped
When set to true, user will be autokicked if they trip the keysends in a second limit again
last_activity
AFK tracking
last_asset_job
Last asset send job id.
last_click
Last time we Click()ed. No clicking twice in one tick!
last_macro_fix
Last time they used fix macros
mouseParams
Used in MouseDrag to preserve the original mouse click parameters
mouse_location_ref
Used in MouseDrag to preserve the last mouse-entered location. Weakref
mouse_object_ref
Used in MouseDrag to preserve the last mouse-entered object. Weakref
mouse_override_icon
used to override the mouse cursor so it doesnt get reset
moused_over_objects
moused over objects, currently capped at 7. this is awful, and should be replaced with a component to track it using signals for parrying at some point.
movement_keys
custom movement keys for this client
navigation_images
Images of the path created by navigate().
next_keysend_reset
World tick time where client_keysend_amount will reset
next_keysend_trip_reset
World tick time where keysend_tripped will reset back to false
next_mousemove
The next point in time at which the client is allowed to send a mousemove() or mousedrag()
next_move_dir_add
These next two vars are to apply movement for keypresses and releases made while move delayed. Because discarding that input makes the game less responsive. On next move, add this dir to the move that would otherwise be done
next_move_dir_sub
On next move, subtract this dir from the move that would otherwise be done
panel_tabs
list of all tabs
parallax_holder
Parallax holder
recent_examines
A lazy list of atoms we've examined in the last EXAMINE_MORE_TIME (default 1.5) seconds, so that we will call [atom/proc/examine_more()] instead of [atom/proc/examine()] on them when examining
screen_maps
Assoc list with all the active maps - when a screen obj is added to a map, it's put in here as well.
Format: list(
script
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!HEY LISTEN!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
seen_messages
Messages currently seen by this client
selected_target
Autoclick list of two elements, first being the clicked thing, second being the parameters.
show_verb_panel
hides the byond verb panel as we use our own custom version
spell_tabs
list of tabs containing spells and abilities
stat_tab
our current tab
statbrowser_ready
whether our browser is ready or not yet
tgui_cache_reloaded
global
TRUE if cache was reloaded by tgui dev server at least once.
tgui_windows
global
Tracks open windows for a user.
tip_timer
Timers are now handled by clients, not by doing a mess on the item and multiple people overwriting a single timer on the object, have fun.
total_count_reset
Next tick to reset the total message counter
total_message_count
How many messages sent in the last 10 seconds
verb_tabs
list of tabs containing verbs
view_size
viewsize datum for holding our view size
Proc Details
ForceAllKeysUp
Keyup's all keys held down.
NONSENSICAL_VERB_THAT_DOES_NOTHING
*sigh
Process_Grab
Process_Grab(): checks for grab, attempts to break if so. Return TRUE to prevent movement.
Process_Incorpmove
Process_Incorpmove Called by client/Move() Allows mobs to run though walls
admin_cmd_remove_ghost_respawn_timer
Allows a ghost to bypass respawn delay without lifting respawn restrictions
admin_cmd_respawn_return_to_lobby
Fully returns a player to lobby, allowing them to bypass all respawn restrictions Works on ghosts or new players (lobby players) If a lobby player is selected, their restrictions are removed.
asset_cache_confirm_arrival
Process asset cache client topic calls for "asset_cache_confirm_arrival=[INT]"
asset_cache_preload_data
Process asset cache client topic calls for "asset_cache_preload_data=[HTML+JSON_STRING]"
asset_cache_update_json
Updates the client side stored json file used to keep track of what assets the client has between restarts/reconnects.
award_heart
Redirect proc that makes it easier to get the status of an achievement. Achievement type is the typepath to the award.
browse_queue_flush
Blocks until all currently sending browse and browse_rsc assets have been sent. Due to byond limitations, this proc will sleep for 1 client round trip even if the client has no pending asset sends. This proc will return an untrue value if it had to return before confirming the send, such as timeout or the client going away.
clear_all_maps
Clears all the maps of registered screen objects.
clear_map
Clears the map of registered screen objects.
Not really needed most of the time, as the client's screen list gets reset on relog. any of the buttons are going to get caught by garbage collection anyway. they're effectively qdel'd.
close_popup
Closes a popup.
create_popup
Creates a popup window with a basic map element in it, without any further initialization.
Ratio is how many pixels by how many pixels (keep it simple).
Returns a map name.
fix_tgui_panel
tgui panel / chat troubleshooting verb
forceEvent
Allows an admin to force an event
get_award_status
Redirect proc that makes it easier to get the status of an achievement. Achievement type is the typepath to the award.
give_award
Redirect proc that makes it easier to call the unlock achievement proc. Achievement type is the typepath to the award, user is the mob getting the award, and value is an optional variable used for leaderboard value increments
handle_popup_close
When the popup closes in any way (player or proc call) it calls this.
init_verbs
compiles a full list of verbs and sends it to the browser
register_map_obj
Registers screen obj with the client, which makes it visible on the assigned map, and becomes a part of the assigned map's lifecycle.
send_resources
Send resources to the client. Sends both game resources and browser assets.
set_tab
verbs that send information from the browser UI
setup_popup
Create the popup, and get it ready for generic use by giving it a background.
Width and height are multiplied by 64 by default.
uiclose
verb
Called by UIs when they are closed. Must be a verb so winset() can call it.
required uiref ref The UI that was closed.
update_clickcatcher
Makes a clickcatcher if necessary, and ensures it's fit to our size.
update_special_keybinds
Updates the keybinds for special keys
Handles adding macros for the keys that need it And adding movement keys to the clients movement_keys list At the time of writing this, communication(OOC, Say, IC) require macros Arguments:
- direct_prefs - the preference we're going to get keybinds from
Returns list of special keybind in key = Mod1Mod2Mod3Key format, NOT Mod1+Mod2+Mod3+Key format.