mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-02 05:32:16 +00:00
The primary function of this is a new button in the "Preferences" tab - Set View Range. This functions similarly to the admin verb "Change View Range", but it only allows you to set view ranges lower than the normal world.view. Full changelog: - Added ViewMods system to clients. - Everything that wants to change client.view should do it through this system. - Currently used by the Set View Range button and Marauders. - Stretch mode is set to stretch when active, but the original setting is preserved, as long as you set it with no ViewMods enabled. - The basic way this works is that it keeps track of /datum/viewmods on /clients, and whenever one is added or removed, it picks the highest view range out of all of them and sets the client's vision to that. This effectively means that, if you, say, set your view range to 5x5, and get into a Marauder and use the "zoom" button, it will always go to the marauder's zoom level. - The HUD is set to minimal mode for any view ranges below world.view, which means you only get absolutely critical buttons. - It's set to invisible if you go down to view range 1 or 2, because the buttons can't fit on the screen at those view ranges. - Removed canvas examine option. Just zoom in yourself!
100 lines
3.4 KiB
Plaintext
100 lines
3.4 KiB
Plaintext
/client
|
|
////////////////
|
|
//ADMIN THINGS//
|
|
////////////////
|
|
var/datum/admins/holder = null
|
|
|
|
var/last_message = "" //contains the last message sent by this client - used to protect against copy-paste spamming.
|
|
var/last_message_count = 0 //contains a number of how many times a message identical to last_message was sent.
|
|
var/last_message_time = 0 //holds the last time (based on world.time) a message was sent
|
|
|
|
/////////
|
|
//OTHER//
|
|
/////////
|
|
var/datum/preferences/prefs = null
|
|
var/move_delay = 1
|
|
var/moving = null
|
|
var/adminobs = null
|
|
var/area = null
|
|
var/time_died_as_mouse = null //when the client last died as a mouse
|
|
|
|
var/adminhelped = 0
|
|
|
|
///////////////
|
|
//SOUND STUFF//
|
|
///////////////
|
|
var/ambience_playing = 0
|
|
var/played = 0
|
|
|
|
////////////
|
|
//SECURITY//
|
|
////////////
|
|
var/next_allowed_topic_time = 10
|
|
// comment out the line below when debugging locally to enable the options & messages menu
|
|
//control_freak = 1
|
|
|
|
var/received_irc_pm = -99999
|
|
var/irc_admin //IRC admin that spoke with them last.
|
|
var/mute_irc = 0
|
|
|
|
|
|
////////////////////////////////////
|
|
//things that require the database//
|
|
////////////////////////////////////
|
|
var/player_age = "--" //So admins know why it isn't working - Used to determine how old the account is - in days.
|
|
var/list/related_accounts_ip = list() //So admins know why it isn't working - Used to determine what other accounts previously logged in from this ip
|
|
var/list/related_accounts_cid = list() //So admins know why it isn't working - Used to determine what other accounts previously logged in from this computer id
|
|
|
|
preload_rsc = 1 // This is 0 so we can set it to an URL once the player logs in and have them download the resources from a different server.
|
|
|
|
var/global/obj/screen/click_catcher/void
|
|
|
|
var/karma = 0
|
|
var/karma_spent = 0
|
|
var/karma_tab = 0
|
|
/////////////////////////////////////////////
|
|
// /vg/: MEDIAAAAAAAA
|
|
// Set on login.
|
|
var/datum/media_manager/media = null
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
//adv. hotkey mode vars, code using them in /interface/interface.dm//
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
var/hotkeytype = "QWERTY" //what set of hotkeys is in use(defaulting to QWERTY because I can't be bothered to make this save on SQL)
|
|
var/hotkeyon = 0 //is the hotkey on?
|
|
|
|
var/hotkeylist = list( //list defining hotkey types, look at lists in place for structure if adding any if the future
|
|
"QWERTY" = list(
|
|
"on" = "hotkeymode",
|
|
"off" = "macro"),
|
|
"AZERTY" = list(
|
|
"on" = "AZERTYon",
|
|
"off" = "AZERTYoff"),
|
|
"Cyborg" = list(
|
|
"on" = "borghotkeymode",
|
|
"off" = "borgmacro")
|
|
)
|
|
|
|
var/topic_debugging = 0 //if set to true, allows client to see nanoUI errors -- yes i realize this is messy but it'll make live testing infinitely easier
|
|
|
|
control_freak = CONTROL_FREAK_ALL | CONTROL_FREAK_SKIN | CONTROL_FREAK_MACROS
|
|
|
|
var/datum/click_intercept/click_intercept = null
|
|
|
|
//datum that controls the displaying and hiding of tooltips
|
|
var/datum/tooltip/tooltips
|
|
|
|
// Their chat window, sort of important.
|
|
// See /goon/code/datums/browserOutput.dm
|
|
var/datum/chatOutput/chatOutput
|
|
|
|
// Donator stuff.
|
|
var/donator_level = DONATOR_LEVEL_NONE
|
|
|
|
// If set to true, this client can interact with atoms such as buttons and doors on top of regular machinery interaction
|
|
var/advanced_admin_interaction = FALSE
|
|
|
|
// Has the client been varedited by an admin?
|
|
var/var_edited = FALSE
|