VaultSuit Sounds

A music jingle and a sound effect that play once on first equip and a sound effect that plays on each subsequent equip.
This commit is contained in:
SquishyRolls
2022-04-29 03:41:14 +01:00
parent a6d7529d48
commit 083ed77850
4 changed files with 21 additions and 1 deletions
+21 -1
View File
@@ -156,4 +156,24 @@ obj/item/clothing/neck/stole/black
icon_state = "vaultsuit"
alternate_worn_icon = 'hyperstation/icons/mobs/uniforms.dmi'
item_state = "b_suit"
can_adjust = FALSE
can_adjust = FALSE
var/firstpickup = TRUE
var/pickupsound = TRUE
/obj/item/clothing/under/vaultsuit/no_sound
pickupsound = FALSE
/obj/item/clothing/under/vaultsuit/equipped(mob/user, slot)
. = ..()
if(!pickupsound)
return
if(!ishuman(user))
return
if(slot == SLOT_W_UNIFORM)
if(!firstpickup)
SEND_SOUND(user, sound('hyperstation/sound/effects/vaultsuit/FalloutEXPUp.ogg', volume = 50))
else
firstpickup = FALSE
SEND_SOUND(user, sound('hyperstation/sound/effects/vaultsuit/FalloutLevelUp.ogg', volume = 50))
SEND_SOUND(user, sound('hyperstation/sound/effects/vaultsuit/InkSpotsSting.ogg', volume = 50))
return