From 59fc5ae82f21081ed0e9bafa06253fff68502ceb Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 4 Nov 2021 10:47:26 +0000 Subject: [PATCH] [MIRROR] Fixes exploit that allowed players to disable the safety of holodeck consoles without the proper conditions being followed [MDB IGNORE] (#9235) * Fixes exploit that allowed players to disable the safety of holodeck consoles without the proper conditions being followed (#62563) About The Pull Request As the title says. Players were able to disable the safety of the holodeck without the console being emagged, and without being a robot. Why It's Good For The Game I think it would be interesting to add some sort of replacement to this, like players with high gamer skill could disable the safety. Changelog cl fix: Fixes an exploit that allowed players to disable holodeck safety without following the proper conditions /cl * Fixes exploit that allowed players to disable the safety of holodeck consoles without the proper conditions being followed Co-authored-by: CocaColaTastesGood <47264839+CocaColaTastesGood@users.noreply.github.com> --- code/modules/holodeck/computer.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/holodeck/computer.dm b/code/modules/holodeck/computer.dm index 87a7c8ce131..b89db243719 100644 --- a/code/modules/holodeck/computer.dm +++ b/code/modules/holodeck/computer.dm @@ -170,6 +170,8 @@ GLOBAL_LIST_INIT(typecache_holodeck_linked_floorcheck_ok, typecacheof(list(/turf if(program_to_load) load_program(program_to_load) if("safety") + if (!(obj_flags & EMAGGED) || !issilicon(usr)) + return if((obj_flags & EMAGGED) && program) emergency_shutdown() nerf(obj_flags & EMAGGED,FALSE)