mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
13 lines
459 B
Plaintext
13 lines
459 B
Plaintext
/client/proc/pingfromtime(time)
|
|
return ((world.time+world.tick_lag*world.tick_usage/100)-time)*100
|
|
|
|
/client/verb/display_ping(time as num)
|
|
set instant = TRUE
|
|
set name = ".display_ping"
|
|
to_chat(src, "<span class='notice'>Round trip ping took [round(pingfromtime(time),1)]ms</span>")
|
|
|
|
/client/verb/ping()
|
|
set name = "Ping"
|
|
set category = "OOC.Debug" //CHOMPEdit
|
|
winset(src, null, "command=.display_ping+[world.time+world.tick_lag*world.tick_usage/100]")
|