Adds the new health analyser noises to PDA scanners and mech scanners (#14860)

This commit is contained in:
Jaraci
2022-10-04 09:00:02 +01:00
committed by GitHub
parent 7123acd5a4
commit 4a72baca43
4 changed files with 25 additions and 3 deletions

View File

@@ -146,9 +146,13 @@
else
to_chat(user, SPAN_WARNING("\The [src] does not have a card or item stored in the card slot."))
/obj/item/modular_computer/attack(mob/living/M, mob/living/user)
/obj/item/modular_computer/attack(mob/living/M, mob/living/user, var/sound_scan)
sound_scan = FALSE
if(last_scan <= world.time - 20) //Spam limiter.
last_scan = world.time
sound_scan = TRUE
if(scan_mode == SCANNER_MEDICAL)
health_scan_mob(M, user, TRUE)
health_scan_mob(M, user, TRUE, sound_scan = sound_scan)
/obj/item/modular_computer/afterattack(atom/A, mob/user, proximity_flag, click_parameters)
. = ..()

View File

@@ -25,6 +25,7 @@
var/pAI_lock = FALSE // Toggles whether pAI can interact with the modular computer while installed in it
var/obj/item/card/id/registered_id = null // ID used for chat client registering
var/scan_mode = null // Mode used for health/reagent scanners
var/last_scan = 0 // Used for the PDA analyser spam detection
var/silent = FALSE
var/doorcode = "smindicate"
var/hidden = FALSE