Server maint subsystem (#16518)

* upports server maint subsystem

* fix runtime in admin z narrate

* .

* sorts them verbs

* .

* .

* Update code/controllers/subsystems/statpanel.dm

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>

* Update code/controllers/subsystems/server_maint.dm

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>

---------

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
This commit is contained in:
Kashargul
2024-11-04 11:44:44 +01:00
committed by GitHub
parent 5fb49d6f96
commit 4879a52633
230 changed files with 842 additions and 691 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
/client/verb/who_advanced()
set name = "Advanced Who"
set category = "OOC"
set category = "OOC.Resources"
var/msg = span_bold("Current Players:") + "\n"
@@ -2,7 +2,7 @@ GLOBAL_DATUM(character_directory, /datum/character_directory)
/client/verb/show_character_directory()
set name = "Character Directory"
set category = "OOC"
set category = "OOC.Game"
set desc = "Shows a listing of all active characters, along with their associated OOC notes, flavor text, and more."
// This is primarily to stop malicious users from trying to lag the server by spamming this verb
+2 -2
View File
@@ -1,6 +1,6 @@
/client/verb/ignore(key_to_ignore as text)
set name = "Ignore"
set category = "OOC"
set category = "OOC.Chat Settings"
set desc = "Makes OOC and Deadchat messages from a specific player not appear to you."
if(!key_to_ignore)
@@ -20,7 +20,7 @@
/client/verb/unignore()
set name = "Unignore"
set category = "OOC"
set category = "OOC.Chat Settings"
set desc = "Reverts your ignoring of a specific player."
if(!prefs)
+3 -3
View File
@@ -1,7 +1,7 @@
/client/verb/ooc(msg as text)
set name = "OOC"
set category = "OOC"
set category = "OOC.Chat"
if(say_disabled) //This is here to try to identify lag problems
to_chat(usr, span_warning("Speech is currently admin-disabled."))
@@ -84,7 +84,7 @@
/client/verb/looc(msg as text)
set name = "LOOC"
set desc = "Local OOC, seen only by those in view."
set category = "OOC"
set category = "OOC.Chat"
if(say_disabled) //This is here to try to identify lag problems
to_chat(usr, span_danger("Speech is currently admin-disabled."))
@@ -198,7 +198,7 @@
/client/verb/fit_viewport()
set name = "Fit Viewport"
set category = "OOC"
set category = "OOC.Client Settings"
set desc = "Fit the width of the map window to match the viewport"
// Fetch aspect ratio
+14 -3
View File
@@ -1,5 +1,16 @@
/client/verb/update_ping(time as num)
set instant = TRUE
set name = ".update_ping"
var/ping = pingfromtime(time)
lastping = ping
if (!avgping)
avgping = ping
else
avgping = MC_AVERAGE_SLOW(avgping, ping)
/client/proc/pingfromtime(time)
return ((world.time+world.tick_lag*world.tick_usage/100)-time)*100
return ((world.time+world.tick_lag*TICK_USAGE_REAL/100)-time)*100
/client/verb/display_ping(time as num)
set instant = TRUE
@@ -8,5 +19,5 @@
/client/verb/ping()
set name = "Ping"
set category = "OOC"
winset(src, null, "command=.display_ping+[world.time+world.tick_lag*world.tick_usage/100]")
set category = "OOC.Debug"
winset(src, null, "command=.display_ping+[world.time+world.tick_lag*TICK_USAGE_REAL/100]")
+1 -1
View File
@@ -80,7 +80,7 @@
/*
/mob/living/silicon/pai/verb/suicide()
set category = "pAI Commands"
set category = "Abilities.pAI Commands"
set desc = "Kill yourself and become a ghost (You will receive a confirmation prompt)"
set name = "pAI Suicide"
var/answer = tgui_alert(usr, "REALLY kill yourself? This action can't be undone.", "Suicide", list("Yes","No"))
+1 -1
View File
@@ -1,6 +1,6 @@
/client/verb/who()
set name = "Who"
set category = "OOC"
set category = "OOC.Resources"
var/msg = span_bold("Current Players:") + "\n"