Skip to content

Commit

Permalink
jarvis, turn his helmet on and shit him up
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxilmaniac committed Dec 21, 2024
1 parent ee37c67 commit 98d17e1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions modular_doppler/modsuit_pda_app/tap_to_control.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/datum/computer_file/program/maintenance/modsuit_control/tap(atom/tapped_atom, mob/living/user, params)
. = ..()

if(!ishuman(tapped_atom))
return
var/mob/living/carbon/human/john_modsuit = tapped_atom
for(var/obj/item/mod/control/target_suit in john_modsuit.contents)
if(!do_after(user, 5 SECONDS, john_modsuit))
return
var/response = tgui_alert(
john_modsuit,
"[user] is attempting to link their PDA to your MOD, [target_suit]. This gives them TOTAL control of your suit, do you let them?",
"Connection Attempt",
list(
"Connect",
"Refuse",
),
)
if(response == "Connect")
sync_modsuit(target_suit, user)
playsound(target_suit, 'sound/effects/industrial_scan/industrial_scan2.ogg', 50, TRUE)
else
return
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -6842,6 +6842,7 @@
#include "modular_doppler\lore\overrides\station_traits\neutral_traits.dm"
#include "modular_doppler\lore\overrides\station_traits\positive_traits.dm"
#include "modular_doppler\loud_asay\code\loud_asay.dm"
#include "modular_doppler\modsuit_pda_app\tap_to_control.dm"
#include "modular_doppler\modular_antagonists\_dynamic_rulesets.dm"
#include "modular_doppler\modular_antagonists\changeling\changeling.dm"
#include "modular_doppler\modular_antagonists\datums\antag_recipes.dm"
Expand Down

0 comments on commit 98d17e1

Please sign in to comment.