From d57a33b027b5496e47e61aea0a91900a8cf715f3 Mon Sep 17 00:00:00 2001 From: Doubleumc Date: Tue, 28 Nov 2023 02:03:08 -0500 Subject: [PATCH] GM button: delete nearby xenos (#74) --- code/modules/admin/game_master/game_master.dm | 9 +++++++ tgui/packages/tgui/interfaces/GameMaster.js | 24 ++++++++++++++----- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/code/modules/admin/game_master/game_master.dm b/code/modules/admin/game_master/game_master.dm index 6472563af5..1e2cbd3cc2 100644 --- a/code/modules/admin/game_master/game_master.dm +++ b/code/modules/admin/game_master/game_master.dm @@ -209,6 +209,15 @@ GLOBAL_VAR_INIT(radio_communication_clarity, 100) return + if("delete_xenos_in_view") + if(tgui_alert(ui.user, "Do you want to delete all xenos within your view range?", "Confirmation", list("Yes", "No")) != "Yes") + return + + for(var/mob/living/carbon/xenomorph/viewed_xeno in view(ui.user.client)) + qdel(viewed_xeno) + + return + //Behavior Section if("set_selected_behavior") selected_behavior = params["new_behavior"] diff --git a/tgui/packages/tgui/interfaces/GameMaster.js b/tgui/packages/tgui/interfaces/GameMaster.js index b3a4dce486..6814a89394 100644 --- a/tgui/packages/tgui/interfaces/GameMaster.js +++ b/tgui/packages/tgui/interfaces/GameMaster.js @@ -76,12 +76,24 @@ export const GameMasterSpawningPanel = (props, context) => { -