mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Modifies tick_lag to 0.6. It shouldn't cause any problems, but just in case, Game Masters have been given the ability to modify tick_lag on the fly. This SHOULD make the game feel a lot smoother.
Fix for people being unable to modify NTSL code. Fix for not being able to use pills as pill-satchels properly. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3401 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -163,13 +163,13 @@
|
|||||||
if("editcode")
|
if("editcode")
|
||||||
if(editingcode == usr) return
|
if(editingcode == usr) return
|
||||||
if(usr in viewingcode) return
|
if(usr in viewingcode) return
|
||||||
winset(editingcode, "tcscode", "text=\"\"")
|
|
||||||
|
|
||||||
if(!editingcode)
|
if(!editingcode)
|
||||||
lasteditor = usr
|
lasteditor = usr
|
||||||
editingcode = usr
|
editingcode = usr
|
||||||
winshow(editingcode, "Telecomms IDE", 1) // show the IDE
|
winshow(editingcode, "Telecomms IDE", 1) // show the IDE
|
||||||
winset(editingcode, "tcscode", "is-disabled=false")
|
winset(editingcode, "tcscode", "is-disabled=false")
|
||||||
|
winset(editingcode, "tcscode", "text=\"\"")
|
||||||
var/showcode = dd_replacetext(storedcode, "\\\"", "\\\\\"")
|
var/showcode = dd_replacetext(storedcode, "\\\"", "\\\\\"")
|
||||||
showcode = dd_replacetext(storedcode, "\"", "\\\"")
|
showcode = dd_replacetext(storedcode, "\"", "\\\"")
|
||||||
winset(editingcode, "tcscode", "text=\"[showcode]\"")
|
winset(editingcode, "tcscode", "text=\"[showcode]\"")
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ datum/controller/game_controller
|
|||||||
if(!tension_master)
|
if(!tension_master)
|
||||||
tension_master = new /datum/tension()
|
tension_master = new /datum/tension()
|
||||||
|
|
||||||
world.tick_lag = 0.9
|
world.tick_lag = 0.6
|
||||||
|
|
||||||
setup_objects()
|
setup_objects()
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ datum/controller/game_controller
|
|||||||
|
|
||||||
ticker.process()
|
ticker.process()
|
||||||
|
|
||||||
sleep(world.timeofday+10-start_time)
|
sleep(world.timeofday+12-start_time)
|
||||||
|
|
||||||
spawn process()
|
spawn process()
|
||||||
|
|
||||||
|
|||||||
@@ -141,6 +141,7 @@
|
|||||||
verbs += /client/proc/everyone_random
|
verbs += /client/proc/everyone_random
|
||||||
verbs += /client/proc/only_one // Fateweaver suggested I do this - Doohl
|
verbs += /client/proc/only_one // Fateweaver suggested I do this - Doohl
|
||||||
verbs += /client/proc/deadmin_self
|
verbs += /client/proc/deadmin_self
|
||||||
|
verbs += /client/proc/cmd_admin_ticklag
|
||||||
|
|
||||||
if (holder.level >= 5)//Game Admin********************************************************************
|
if (holder.level >= 5)//Game Admin********************************************************************
|
||||||
verbs += /obj/admins/proc/view_txt_log
|
verbs += /obj/admins/proc/view_txt_log
|
||||||
@@ -419,6 +420,7 @@
|
|||||||
verbs -= /client/proc/startSinglo
|
verbs -= /client/proc/startSinglo
|
||||||
verbs -= /client/proc/jumptocoord
|
verbs -= /client/proc/jumptocoord
|
||||||
verbs -= /client/proc/everyone_random
|
verbs -= /client/proc/everyone_random
|
||||||
|
verbs -= /client/proc/cmd_admin_ticklag
|
||||||
//verbs -= /client/proc/cmd_switch_radio
|
//verbs -= /client/proc/cmd_switch_radio
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -366,7 +366,18 @@ 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)
|
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)
|
/client/proc/cmd_admin_dress(var/mob/living/carbon/human/M in world)
|
||||||
|
|||||||
@@ -1586,7 +1586,6 @@
|
|||||||
icon_state = "pill[rand(1,20)]"
|
icon_state = "pill[rand(1,20)]"
|
||||||
|
|
||||||
attackby(obj/item/weapon/W as obj, mob/user as mob)
|
attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||||
..()
|
|
||||||
if (istype(W, /obj/item/weapon/storage/pill_bottle))
|
if (istype(W, /obj/item/weapon/storage/pill_bottle))
|
||||||
var/obj/item/weapon/storage/pill_bottle/P = W
|
var/obj/item/weapon/storage/pill_bottle/P = W
|
||||||
if (P.mode == 1)
|
if (P.mode == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user