Tg panel patch 2 (#8085)

Co-authored-by: Cadyn Bombaci <cadynspacetechguy@gmail.com>
This commit is contained in:
Kashargul
2024-05-15 13:42:13 +02:00
committed by GitHub
parent a63a919fcb
commit e28fa96705
264 changed files with 993 additions and 823 deletions

View File

@@ -10,7 +10,7 @@
/client/verb/toggle_random_emote_pitch()
set name = "Toggle Random Emote Pitch"
set category = "Preferences"
set category = "Preferences.Character"
set desc = "Toggles whether or not emotes with sound you make will have random pitch."
var/pref_path = /datum/client_preference/random_emote_pitch
@@ -25,7 +25,7 @@
/client/verb/toggle_autotranscore()
set name = "Toggle Automatic Transcore Notification"
set category = "Preferences"
set category = "Preferences.Character"
set desc = "Toggles whether or not your death with a backup implant will automatically trigger a transcore notification after a few minutes."
var/pref_path = /datum/client_preference/autotranscore

View File

@@ -0,0 +1,22 @@
/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*TICK_USAGE_REAL/100)-time)*100
/client/verb/display_ping(time as num)
set instant = TRUE
set name = ".display_ping"
to_chat(src, span_notice("Round trip ping took [round(pingfromtime(time),1)]ms"))
/client/verb/ping()
set name = "Ping"
set category = "OOC.Debug"
winset(src, null, "command=.display_ping+[world.time+world.tick_lag*TICK_USAGE_REAL/100]")