Added Basic sounds to all componets. (igniter,infrared, ect)

Added pickup_sound and drop_sound to all componets using the provided sounds, they are not all unique sounds, and share the same sound files, but i think its a nice little addition,

also added these sounds to the mousetrap as it fit nicely.
This commit is contained in:
timmyred456
2019-11-14 20:39:59 -05:00
parent 69ed08bf1c
commit aba80b9b45
10 changed files with 17 additions and 0 deletions

View File

@@ -27,6 +27,8 @@
var/datum/wires/connected = null var/datum/wires/connected = null
var/next_activate = 0 //When we're next allowed to activate - for spam control var/next_activate = 0 //When we're next allowed to activate - for spam control
drop_sound = 'sound/items/handling/component_drop.ogg'
pickup_sound = 'sound/items/handling/component_pickup.ogg'
/obj/item/assembly/get_part_rating() /obj/item/assembly/get_part_rating()
return 1 return 1

View File

@@ -5,6 +5,8 @@
custom_materials = list(/datum/material/iron=500, /datum/material/glass=50) custom_materials = list(/datum/material/iron=500, /datum/material/glass=50)
var/datum/effect_system/spark_spread/sparks var/datum/effect_system/spark_spread/sparks
heat = 1000 heat = 1000
drop_sound = 'sound/items/handling/component_drop.ogg'
pickup_sound = 'sound/items/handling/component_pickup.ogg'
/obj/item/assembly/igniter/suicide_act(mob/living/carbon/user) /obj/item/assembly/igniter/suicide_act(mob/living/carbon/user)
user.visible_message("<span class='suicide'>[user] is trying to ignite [user.p_them()]self with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>") user.visible_message("<span class='suicide'>[user] is trying to ignite [user.p_them()]self with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>")

View File

@@ -12,6 +12,8 @@
var/olddir = 0 var/olddir = 0
var/turf/listeningTo var/turf/listeningTo
var/hearing_range = 3 var/hearing_range = 3
drop_sound = 'sound/items/handling/component_drop.ogg'
pickup_sound = 'sound/items/handling/component_pickup.ogg'
/obj/item/assembly/infra/Initialize() /obj/item/assembly/infra/Initialize()
. = ..() . = ..()

View File

@@ -6,6 +6,8 @@
custom_materials = list(/datum/material/iron=100) custom_materials = list(/datum/material/iron=100)
attachable = TRUE attachable = TRUE
var/armed = FALSE var/armed = FALSE
drop_sound = 'sound/items/handling/component_drop.ogg'
pickup_sound = 'sound/items/handling/component_pickup.ogg'
/obj/item/assembly/mousetrap/examine(mob/user) /obj/item/assembly/mousetrap/examine(mob/user)

View File

@@ -10,6 +10,9 @@
var/time = 10 var/time = 10
var/sensitivity = 1 var/sensitivity = 1
var/hearing_range = 3 var/hearing_range = 3
drop_sound = 'sound/items/handling/component_drop.ogg'
pickup_sound = 'sound/items/handling/component_pickup.ogg'
/obj/item/assembly/prox_sensor/Initialize() /obj/item/assembly/prox_sensor/Initialize()
. = ..() . = ..()

View File

@@ -18,6 +18,8 @@
///Holds a reference string to the mob, decides how much of a gamer you are. ///Holds a reference string to the mob, decides how much of a gamer you are.
var/suicide_mob var/suicide_mob
var/hearing_range = 1 var/hearing_range = 1
drop_sound = 'sound/items/handling/component_drop.ogg'
pickup_sound = 'sound/items/handling/component_pickup.ogg'
/obj/item/assembly/signaler/suicide_act(mob/living/carbon/user) /obj/item/assembly/signaler/suicide_act(mob/living/carbon/user)
user.visible_message("<span class='suicide'>[user] eats \the [src]! If it is signaled, [user.p_they()] will die!</span>") user.visible_message("<span class='suicide'>[user] eats \the [src]! If it is signaled, [user.p_they()] will die!</span>")

View File

@@ -10,6 +10,8 @@
var/saved_time = 5 var/saved_time = 5
var/loop = FALSE var/loop = FALSE
var/hearing_range = 3 var/hearing_range = 3
drop_sound = 'sound/items/handling/component_drop.ogg'
pickup_sound = 'sound/items/handling/component_pickup.ogg'
/obj/item/assembly/timer/suicide_act(mob/living/user) /obj/item/assembly/timer/suicide_act(mob/living/user)
user.visible_message("<span class='suicide'>[user] looks at the timer and decides [user.p_their()] fate! It looks like [user.p_theyre()] going to commit suicide!</span>") user.visible_message("<span class='suicide'>[user] looks at the timer and decides [user.p_their()] fate! It looks like [user.p_theyre()] going to commit suicide!</span>")

View File

@@ -20,6 +20,8 @@
"exclusive", "exclusive",
"recognizer", "recognizer",
"voice sensor") "voice sensor")
drop_sound = 'sound/items/handling/component_drop.ogg'
pickup_sound = 'sound/items/handling/component_pickup.ogg'
/obj/item/assembly/voice/examine(mob/user) /obj/item/assembly/voice/examine(mob/user)
. = ..() . = ..()

Binary file not shown.

Binary file not shown.