mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-22 05:17:38 +01:00
Adds new sounds to buckling, helmet and closets (#8188)
Also tweaks the coffee machine vending sound.
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
var/storage_capacity = 40 //Tying this to mob sizes was dumb
|
||||
//This is so that someone can't pack hundreds of items in a locker/crate
|
||||
//then open it in a populated area to crash clients.
|
||||
var/open_sound = 'sound/effects/locker_open.ogg'
|
||||
var/close_sound = 'sound/effects/locker_close.ogg'
|
||||
var/open_sound = 'sound/effects/closet_open.ogg'
|
||||
var/close_sound = 'sound/effects/closet_close.ogg'
|
||||
|
||||
var/store_misc = 1
|
||||
var/store_items = 1
|
||||
@@ -114,7 +114,7 @@
|
||||
|
||||
icon_state = icon_opened
|
||||
opened = 1
|
||||
playsound(loc, open_sound, 15, 1, -3)
|
||||
playsound(loc, open_sound, 25, 0, -3)
|
||||
density = 0
|
||||
return 1
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
var/can_dismantle = 1
|
||||
gfi_layer_rotation = GFI_ROTATION_DEFDIR
|
||||
var/apply_material_color = TRUE
|
||||
var/buckle_sound = 'sound/effects/buckle.ogg'
|
||||
|
||||
/obj/structure/bed/Initialize(mapload, var/new_material, var/new_padding_material)
|
||||
. = ..()
|
||||
@@ -39,6 +40,11 @@
|
||||
/obj/structure/bed/get_material()
|
||||
return material
|
||||
|
||||
/obj/structure/bed/buckle_mob(mob/living/M)
|
||||
. = ..()
|
||||
if(. && buckle_sound)
|
||||
playsound(src, buckle_sound, 20)
|
||||
|
||||
// Reuse the cache/code from stools, todo maybe unify.
|
||||
/obj/structure/bed/update_icon()
|
||||
// Prep icon.
|
||||
|
||||
Reference in New Issue
Block a user