mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 04:17:33 +01:00
even in death i serve the omnissiah (#18479)
This commit is contained in:
@@ -517,3 +517,25 @@
|
||||
|
||||
// Clear the user's cache so they get resent.
|
||||
usr.client.sent_assets = list()
|
||||
|
||||
/**
|
||||
* Used to generate lag and load the MC to test how things work under live server stress
|
||||
*/
|
||||
/client/proc/cmd_generate_lag()
|
||||
set name = "Generate Lag"
|
||||
set category = "Debug"
|
||||
set desc = "Generate lag, to be used for LOCAL TESTS ONLY"
|
||||
|
||||
var/mollyguard = tgui_alert(src, "This is to be used only on local instances, DO NOT USE IT ON LIVE, YOU CANNOT UNDO THIS, do you understand?", "Molly Guard", list("No", "Yes"))
|
||||
|
||||
if(mollyguard != "Yes")
|
||||
return
|
||||
|
||||
var/tick_offenses = tgui_input_number(src, "Tick usage offset from 100?", "Tick Offset", 0, min_value = -100, round_value=TRUE)
|
||||
var/jitter = tgui_input_number(src, "What jitter should be applied?", "Jitter", 0, min_value = 0, round_value=TRUE)
|
||||
|
||||
while(TRUE)
|
||||
var/jitter_this_run = rand(0, jitter)
|
||||
for(var/atom/an_atom in world)
|
||||
if(world.tick_usage > (100+(tick_offenses+jitter_this_run)))
|
||||
stoplag()
|
||||
|
||||
Reference in New Issue
Block a user