[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>
This commit is contained in:
SkyratBot
2021-11-04 10:47:26 +00:00
committed by GitHub
parent 1b1362da01
commit 59fc5ae82f
+2
View File
@@ -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)