mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 01:22:13 +00:00
The Dev Flag and status is back in game! As of right now, you will have to play around with the values in regards to the defines in setup.dm (specifically with CCIAA), but everything works fine, besides maybe Devs having some verbs they shouldn't for some reason.. But besides that, it's peachy.
23 lines
1.2 KiB
Plaintext
23 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(!check_rights(R_DEBUG|R_DEV)) return
|
|
|
|
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
|
|
else
|
|
src << "\red Error: ticklag(): Invalid world.ticklag value. No changes made."
|