mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Tg panel patch 2 (#8085)
Co-authored-by: Cadyn Bombaci <cadynspacetechguy@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
22
modular_chomp/code/modules/client/verbs/ping.dm
Normal file
22
modular_chomp/code/modules/client/verbs/ping.dm
Normal 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]")
|
||||
Reference in New Issue
Block a user