mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-09 16:33:50 +00:00
In preparation of pixel movement, I want to refactor our slowdown system to something more modular, and something that doesn't require /quite/ as many proccalls/calculations a tick. The way this works is intended to only have things recalculate when it's necessary, rather than calling it every move. However, I've left movement_delay() in, as without completely redoing a lot of code it's not /quite/ ready at this point to tear it out completely, but I'm hoping everything can be transitioned over to this system later.
71 lines
2.5 KiB
Plaintext
71 lines
2.5 KiB
Plaintext
|
|
/client
|
|
//////////////////////
|
|
//BLACK MAGIC THINGS//
|
|
//////////////////////
|
|
parent_type = /datum
|
|
////////////////
|
|
//ADMIN THINGS//
|
|
////////////////
|
|
var/datum/admins/holder = null
|
|
var/datum/click_intercept = null // Needs to implement InterceptClickOn(user,params,atom) proc
|
|
var/AI_Interact = 0
|
|
|
|
var/jobbancache = null //Used to cache this client's jobbans to save on DB queries
|
|
var/last_message = "" //Contains the last message sent by this client - used to protect against copy-paste spamming.
|
|
var/last_message_count = 0 //contins a number of how many times a message identical to last_message was sent.
|
|
var/ircreplyamount = 0
|
|
|
|
/////////
|
|
//OTHER//
|
|
/////////
|
|
var/datum/preferences/prefs = null
|
|
var/last_turn = 0
|
|
var/move_delay = 0
|
|
var/area = null
|
|
|
|
///////////////
|
|
//SOUND STUFF//
|
|
///////////////
|
|
var/ambience_playing= null
|
|
var/played = 0
|
|
////////////
|
|
//SECURITY//
|
|
////////////
|
|
// comment out the line below when debugging locally to enable the options & messages menu
|
|
control_freak = 1
|
|
|
|
////////////////////////////////////
|
|
//things that require the database//
|
|
////////////////////////////////////
|
|
var/player_age = -1 //Used to determine how old the account is - in days.
|
|
var/player_join_date = null //Date that this account was first seen in the server
|
|
var/related_accounts_ip = "Requires database" //So admins know why it isn't working - Used to determine what other accounts previously logged in from this ip
|
|
var/related_accounts_cid = "Requires database" //So admins know why it isn't working - Used to determine what other accounts previously logged in from this computer id
|
|
var/account_join_date = null //Date of byond account creation in ISO 8601 format
|
|
var/account_age = -1 //Age of byond account in days
|
|
|
|
preload_rsc = PRELOAD_RSC
|
|
|
|
var/obj/screen/click_catcher/void
|
|
|
|
var/ip_intel = "Disabled"
|
|
|
|
//datum that controls the displaying and hiding of tooltips
|
|
var/datum/tooltip/tooltips
|
|
|
|
var/lastping = 0
|
|
var/avgping = 0
|
|
var/connection_time //world.time they connected
|
|
var/connection_realtime //world.realtime they connected
|
|
var/connection_timeofday //world.timeofday they connected
|
|
|
|
var/inprefs = FALSE
|
|
var/list/topiclimiter
|
|
var/list/clicklimiter
|
|
|
|
var/datum/chatOutput/chatOutput
|
|
|
|
var/list/credits //lazy list of all credit object bound to this client
|
|
|
|
var/datum/player_details/player_details //these persist between logins/logouts during the same round. |