mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Commented out the authentication system. It was the remnants of the old goon authentication stuff (or maybe even older) and wasn't actually used in our code at all (at least not in any useful way, it was merely called and short-circuited to 1, so all those if(authenticated) were totally pointless. This has removed 3 unused variables from every client, a bunch of unused variables from the config and two empty text files! Committed (as a config option) a feature requested by Apoc station. It causes a 'reply to' window to popup when an admin PMs a non-admin player. It's meant to grab their attention so they can't say "I didn't see your PM". It defaults to off. To turn it on just uncomment the #POPUP_ADMIN_PM line in config/config.txt Fixed a derp in isday where it was fetching the month instead of the day. Removed medal references from Gib() Removed the medal_hub global variables because they aren't used in any way shape or form. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3444 316c924e-a436-60f5-8080-3fe189b3f50e
26 lines
1.2 KiB
Plaintext
26 lines
1.2 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(Debug2)
|
|
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",, 0.9) 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
|
|
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
|
|
else
|
|
src << "\red Error: ticklag(): You must first enable Debugging mode."
|
|
return |