mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-07-16 10:12:23 +01:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user