mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fixed r501 (underwear not showing) Cause: bad indentation A possible fix for some very odd bugs caused by restarting the MC related to the usr variable being passed into the MC. *shrug* Very hard to test. Removed the need for the world to be in Debug2 mode to edit ticklag as the verb is hidden behind another proc now anyway, and it's become more of an annoyance than a thing to stop people accidentally clicking it. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3695 316c924e-a436-60f5-8080-3fe189b3f50e
33 lines
1.4 KiB
Plaintext
33 lines
1.4 KiB
Plaintext
//Merged Doohl's and the existing ticklag as they both had good elements about them ~Carn
|
|
|
|
/client/proc/ticklag()
|
|
set category = "Debug"
|
|
set name = "Set Ticklag"
|
|
set desc = "Sets a new tick lag. Recommend you don't mess with this too much! Stable, time-tested ticklag value is 0.9"
|
|
|
|
if(src.holder)
|
|
if(!src.mob) return
|
|
|
|
if(src.holder.rank in list("Game Admin", "Game Master"))
|
|
var/newtick = input("Sets a new tick lag. Please don't mess with this too much! The stable, time-tested ticklag value is 0.9","Lag of Tick", world.tick_lag) as num|null
|
|
//I've used ticks of 2 before to help with serious singulo lags
|
|
if(newtick && newtick <= 2 && newtick > 0)
|
|
log_admin("[key_name(src)] has modified world.tick_lag to [newtick]", 0)
|
|
message_admins("[key_name(src)] has modified world.tick_lag to [newtick]", 0)
|
|
world.tick_lag = newtick
|
|
feedback_add_details("admin_verb","TICKLAG") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
switch(alert("Enable Tick Compensation?","Tick Comp is currently: [config.Tickcomp]","Yes","No"))
|
|
if("Yes")
|
|
config.Tickcomp = 1
|
|
else
|
|
config.Tickcomp = 0
|
|
|
|
return
|
|
|
|
src << "\red Error: ticklag(): Invalid world.ticklag value. No changes made."
|
|
return
|
|
|
|
src << "\red Error: ticklag(): You are not authorised to use this. Game Admins and higher only."
|
|
return
|