Industrial scanning sound (#87189)

## About The Pull Request
For:
- gas analyzer
- scanner gate
- plant analyzer
- t-ray scanner
- slime scanner
- scanning mining geysers


https://github.com/user-attachments/assets/24fde731-e567-483b-b88e-6f7fcbacf52a
## Why It's Good For The Game
it sounds nice
## Changelog
🆑 grungussuss
sound: added new scanning sound
/🆑
This commit is contained in:
grungussuss
2024-10-17 23:16:13 +03:00
committed by lessthanthree
parent 6f119804d5
commit 18dfefdbb2
15 changed files with 22 additions and 2 deletions

View File

@@ -277,3 +277,4 @@ GLOBAL_LIST_INIT(announcer_keys, list(
#define SFX_VOID_DEFLECT "void_deflect"
#define SFX_LOW_HISS "low_hiss"
#define SFX_INDUSTRIAL_SCAN "industrial_scan"

View File

@@ -193,6 +193,7 @@
var/beep = FALSE
var/color = null
var/detected_thing = null
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
switch(scangate_mode)
if(SCANGATE_NONE)
return

View File

@@ -183,6 +183,7 @@
var/icon = target
var/message = list()
playsound(user, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
if(!silent && isliving(user))
user.visible_message(span_notice("[user] uses the analyzer on [icon2html(icon, viewers(user))] [target]."), span_notice("You use the analyzer on [icon2html(icon, user)] [target]."))
message += span_boldnotice("Results of analysis of [icon2html(icon, user)] [target].")

View File

@@ -22,6 +22,7 @@
to_chat(user, span_warning("This device can only scan slimes!"))
return ITEM_INTERACT_BLOCKING
var/mob/living/basic/slime/scanned_slime = interacting_with
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
slime_scan(scanned_slime, user)
return ITEM_INTERACT_SUCCESS

View File

@@ -21,6 +21,7 @@
return TOXLOSS
/obj/item/t_scanner/proc/toggle_on()
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
on = !on
icon_state = copytext_char(icon_state, 1, -1) + "[on]"
if(on)

View File

@@ -115,7 +115,7 @@
visible_message(span_warning("[user] starts scanning [interacting_with] with [src]"))
to_chat(interacting_with, span_userdanger("[user] is trying to scan you for contraband!"))
balloon_alert_to_viewers("scanning...")
playsound(src, 'sound/effects/genetics.ogg', 40, FALSE)
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
COOLDOWN_START(src, scanning_person, 4 SECONDS)
if(!do_after(user, 4 SECONDS, interacting_with))
return ITEM_INTERACT_BLOCKING

View File

@@ -60,6 +60,7 @@
/obj/structure/geyser/attackby(obj/item/item, mob/user, params)
if(!istype(item, /obj/item/mining_scanner) && !istype(item, /obj/item/t_scanner/adv_mining_scanner))
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
return ..() //this runs the plunger code
if(discovered)

View File

@@ -730,4 +730,10 @@
'sound/effects/hallucinations/over_here2.ogg',
'sound/effects/hallucinations/over_here3.ogg',
)
if(SFX_INDUSTRIAL_SCAN)
soundin = pick(
'sound/effects/industrial_scan/industrial_scan1.ogg',
'sound/effects/industrial_scan/industrial_scan2.ogg',
'sound/effects/industrial_scan/industrial_scan3.ogg',
)
return soundin

View File

@@ -106,7 +106,7 @@
// Can remotely scan objects and mobs.
if((get_dist(scanned_atom, user) > range) || (!(scanned_atom in view(range, user)) && view_check) || (loc != user))
return TRUE
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
scanner_busy = TRUE

View File

@@ -78,6 +78,7 @@
*/
/datum/experiment/proc/perform_experiment(datum/component/experiment_handler/experiment_handler, ...)
var/action_succesful = perform_experiment_actions(arglist(args))
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
if(is_complete())
finish_experiment(experiment_handler)
return action_succesful

View File

@@ -74,21 +74,26 @@
*/
/obj/item/plant_analyzer/proc/do_plant_stats_scan(atom/scan_target, mob/user)
if(istype(scan_target, /obj/machinery/hydroponics))
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
to_chat(user, examine_block(scan_tray_stats(scan_target)))
return TRUE
if(istype(scan_target, /obj/structure/glowshroom))
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
var/obj/structure/glowshroom/shroom_plant = scan_target
to_chat(user, examine_block(scan_plant_stats(shroom_plant.myseed)))
return TRUE
if(istype(scan_target, /obj/item/graft))
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
to_chat(user, examine_block(get_graft_text(scan_target)))
return TRUE
if(isitem(scan_target))
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
var/obj/item/scanned_object = scan_target
if(scanned_object.get_plant_seed() || istype(scanned_object, /obj/item/seeds))
to_chat(user, examine_block(scan_plant_stats(scanned_object)))
return TRUE
if(isliving(scan_target))
playsound(src, SFX_INDUSTRIAL_SCAN, 20, TRUE, -2, TRUE, FALSE)
var/mob/living/L = scan_target
if(L.mob_biotypes & MOB_PLANT)
plant_biotype_health_scan(scan_target, user)

View File

@@ -0,0 +1,2 @@
industrial scan:
SOUND - Radio Interference - During COVID-19 Quarantine by bolkmar -- https://freesound.org/s/511890/ -- License: Creative Commons 0

Binary file not shown.

Binary file not shown.

Binary file not shown.