[MIRROR] fixes equip/dequip noises from not playing (#6806)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Raeschen <rycoop29@gmail.com>
This commit is contained in:
CHOMPStation2
2023-08-15 08:00:22 +02:00
committed by GitHub
co-authored by Heroman3003 Raeschen
parent 6e28cd60a6
commit ff0a4d6930
+6 -8
View File
@@ -364,16 +364,14 @@
user.position_hud_item(src,slot)
if(user.client) user.client.screen |= src
if(user.pulling == src) user.stop_pulling()
// Chomp edit starts
if((slot_flags & slot))
if(equip_sound && !muffled_by_belly(user))
playsound(src, equip_sound, 20)
else if(!muffled_by_belly(user))
playsound(src, drop_sound, 20)
if(("[slot]" in slot_flags_enumeration) && (slot_flags & slot_flags_enumeration["[slot]"]))
if(equip_sound && !muffled_by_belly(user)) //ChompEDIT
playsound(src, equip_sound, 20, preference = /datum/client_preference/pickup_sounds)
else if(!muffled_by_belly(user)) //ChompEDIT
playsound(src, drop_sound, 20, preference = /datum/client_preference/pickup_sounds)
else if(slot == slot_l_hand || slot == slot_r_hand)
if(!muffled_by_belly(user))
if(!muffled_by_belly(user)) //ChompEDIT
playsound(src, pickup_sound, 20, preference = /datum/client_preference/pickup_sounds)
// Chomp edit stops
return
// As above but for items being equipped to an active module on a robot.