From 135b6d83b0f5db3bcfbd992cdfce3e2ba52c23f2 Mon Sep 17 00:00:00 2001 From: CocaColaTastesGood <47264839+CocaColaTastesGood@users.noreply.github.com> Date: Thu, 4 Nov 2021 07:08:41 +0200 Subject: [PATCH] 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 --- 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)