mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
Creates a Preference toggle for Drop Sounds (#6397)
This commit is contained in:
@@ -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()
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user