Creates a Preference toggle for Drop Sounds (#6397)

This commit is contained in:
Conspiir
2019-05-19 15:49:14 +02:00
committed by Werner
parent 744a74390b
commit f659fa096c
10 changed files with 71 additions and 17 deletions
+4 -4
View File
@@ -200,11 +200,11 @@ var/list/slot_equipment_priority = list( \
addtimer(CALLBACK(src, .proc/make_item_drop_sound, item_dropped), 1)
/mob/proc/make_item_drop_sound(obj/item/I)
if(QDELETED(I))
return
if(QDELETED(I))
return
if(I.drop_sound)
playsound(I, I.drop_sound, 25, 0)
if(I.drop_sound)
playsound(I, I.drop_sound, 25, 0, required_asfx_toggles = ASFX_DROPSOUND)
/*
Removes the object from any slots the mob might have, calling the appropriate icon update proc.
@@ -139,11 +139,11 @@
last_x = x
last_y = y
if (m_intent == "run")
playsound(src, T.footstep_sound, 70, 1, is_footstep = TRUE)
playsound(src, T.footstep_sound, 70, 1, required_asfx_toggles = ASFX_FOOTSTEPS)
else
footstep++
if (footstep % 2)
playsound(src, T.footstep_sound, 40, 1, is_footstep = TRUE)
playsound(src, T.footstep_sound, 40, 1, required_asfx_toggles = ASFX_FOOTSTEPS)
/mob/living/carbon/human/mob_has_gravity()
. = ..()