mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-31 07:58:22 +01:00
Merged Doohl's ticklag thing and the pre-existing one because we don't need two.
All admins that should be able to delete can now do so again. gave the adminverb procs a much needed spring-clean. Added some missing returns. moved comments around. Made the verblists more legible. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3403 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -366,20 +366,6 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
||||
message_admins("[key_name_admin(src)] has turned the experimental radio system [GLOBAL_RADIO_TYPE ? "on" : "off"].", 0)
|
||||
|
||||
|
||||
/client/proc/cmd_admin_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"
|
||||
|
||||
var/newtick = input("Sets a new tick lag. Recommend you don't mess with this too much! Stable, time-tested ticklag value is 0.9",, 0.9) as num|null
|
||||
if(newtick)
|
||||
if(newtick <= 1 && 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
|
||||
|
||||
|
||||
/client/proc/cmd_admin_dress(var/mob/living/carbon/human/M in world)
|
||||
set category = "Fun"
|
||||
set name = "Select equipment"
|
||||
|
||||
@@ -1,20 +1,26 @@
|
||||
/client/proc/ticklag(number as num)
|
||||
//Merged Doohl's and the existing ticklag as they both had good elements about them ~Carn
|
||||
|
||||
/client/proc/ticklag()
|
||||
set category = "Debug"
|
||||
set name = "Ticklag"
|
||||
set desc = "Ticklag"
|
||||
set hidden = 1
|
||||
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.authenticated && src.holder)
|
||||
if(!src.mob)
|
||||
return
|
||||
if(src.holder.rank in list("Game Admin", "Game Master"))
|
||||
world.tick_lag = number
|
||||
log_admin("[key_name(src.mob)] set tick_lag to [number]")
|
||||
message_admins("[key_name_admin(usr)] modified world's tick_lag to [number]")
|
||||
else
|
||||
alert("Fuck off, no crashing dis server")
|
||||
return
|
||||
else
|
||||
alert("Debugging is disabled")
|
||||
return
|
||||
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
|
||||
Reference in New Issue
Block a user