Ports some sounds for toolbox/briefcase/switch (#21938)

This commit is contained in:
Henri215
2023-09-01 23:00:36 +01:00
committed by GitHub
parent 21150901d5
commit e5ca69bd06
7 changed files with 6 additions and 2 deletions
@@ -189,6 +189,7 @@
item_state = "sec-case"
flags = CONDUCT
hitsound = "swing_hit"
use_sound = 'sound/effects/briefcase.ogg'
force = 8
throw_speed = 2
throw_range = 4
@@ -201,7 +202,7 @@
if(loc == user && locked)
to_chat(usr, "<span class='warning'>[src] is locked and cannot be opened!</span>")
else if((loc == user) && !locked)
playsound(loc, "rustle", 50, 1, -5)
playsound(loc, 'sound/effects/briefcase.ogg', 50, TRUE, -5)
if(user.s_active)
user.s_active.close(user) //Close and re-open
show_to(user)