mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-20 06:32:56 +00:00
## About The Pull Request <details> - renamed ai folder to announcer -- announcer -- - moved vox_fem to announcer - moved approachingTG to announcer - separated the ambience folder into ambience and instrumental -- ambience -- - created holy folder moved all related sounds there - created engineering folder and moved all related sounds there - created security folder and moved ambidet there - created general folder and moved ambigen there - created icemoon folder and moved all icebox-related ambience there - created medical folder and moved all medbay-related ambi there - created ruin folder and moves all ruins ambi there - created beach folder and moved seag and shore there - created lavaland folder and moved related ambi there - created aurora_caelus folder and placed its ambi there - created misc folder and moved the rest of the files that don't have a specific category into it -- instrumental -- - moved traitor folder here - created lobby_music folder and placed our songs there (title0 not used anywhere? - server-side modification?) -- items -- - moved secdeath to hailer - moved surgery to handling -- effects -- - moved chemistry into effects - moved hallucinations into effects - moved health into effects - moved magic into effects -- vehicles -- - moved mecha into vehicles created mobs folder -- mobs -- - moved creatures folder into mobs - moved voice into mobs renamed creatures to non-humanoids renamed voice to humanoids -- non-humanoids-- created cyborg folder created hiss folder moved harmalarm.ogg to cyborg -- humanoids -- -- misc -- moved ghostwhisper to misc moved insane_low_laugh to misc I give up trying to document this. </details> - [X] ambience - [x] announcer - [x] effects - [X] instrumental - [x] items - [x] machines - [x] misc - [X] mobs - [X] runtime - [X] vehicles - [ ] attributions ## Why It's Good For The Game This folder is so disorganized that it's vomit inducing, will make it easier to find and add new sounds, providng a minor structure to the sound folder. ## Changelog 🆑 grungussuss refactor: the sound folder in the source code has been reorganized, please report any oddities with sounds playing or not playing server: lobby music has been repathed to sound/music/lobby_music /🆑
71 lines
2.2 KiB
Plaintext
71 lines
2.2 KiB
Plaintext
/obj/structure/closet/crate/bin
|
|
desc = "A trash bin, place your trash here for the janitor to collect."
|
|
name = "trash bin"
|
|
icon_state = "trashbin"
|
|
base_icon_state = "trashbin"
|
|
open_sound = 'sound/effects/bin/bin_open.ogg'
|
|
close_sound = 'sound/effects/bin/bin_close.ogg'
|
|
anchored = TRUE
|
|
horizontal = FALSE
|
|
delivery_icon = null
|
|
can_install_electronics = FALSE
|
|
paint_jobs = null
|
|
elevation = 17
|
|
elevation_open = 17
|
|
can_weld_shut = FALSE
|
|
|
|
/obj/structure/closet/crate/bin/LateInitialize()
|
|
. = ..()
|
|
update_appearance(UPDATE_ICON)
|
|
var/static/list/loc_connections = list(
|
|
COMSIG_TURF_RECEIVE_SWEEPED_ITEMS = PROC_REF(ready_for_trash),
|
|
)
|
|
AddElement(/datum/element/connect_loc, loc_connections)
|
|
|
|
/obj/structure/closet/crate/bin/update_overlays()
|
|
. = ..()
|
|
. += emissive_appearance(icon, base_icon_state + "_empty", src, alpha = src.alpha)
|
|
if(contents.len == 0)
|
|
. += base_icon_state + "_empty"
|
|
return
|
|
if(contents.len >= storage_capacity)
|
|
. += base_icon_state + "_full"
|
|
return
|
|
. += base_icon_state + "_some"
|
|
|
|
/obj/structure/closet/crate/bin/attackby(obj/item/W, mob/user, params)
|
|
if(istype(W, /obj/item/storage/bag/trash) && !opened)
|
|
var/obj/item/storage/bag/trash/T = W
|
|
to_chat(user, span_notice("You fill the bag."))
|
|
for(var/obj/item/O in src)
|
|
T.atom_storage?.attempt_insert(O, user, TRUE)
|
|
T.update_appearance()
|
|
do_animate()
|
|
return TRUE
|
|
else
|
|
return ..()
|
|
|
|
/obj/structure/closet/crate/bin/proc/do_animate()
|
|
playsound(loc, open_sound, 15, TRUE, -3)
|
|
flick(base_icon_state + "_animate", src)
|
|
addtimer(CALLBACK(src, PROC_REF(do_close)), 1.1 SECONDS)
|
|
|
|
/obj/structure/closet/crate/bin/proc/do_close()
|
|
playsound(loc, close_sound, 15, TRUE, -3)
|
|
update_appearance()
|
|
|
|
///Called when a push broom is trying to sweep items onto the turf this object is standing on. Garbage will be moved inside.
|
|
/obj/structure/closet/crate/bin/proc/ready_for_trash(datum/source, obj/item/pushbroom/broom, mob/user, list/items_to_sweep)
|
|
SIGNAL_HANDLER
|
|
|
|
if(!items_to_sweep || !opened)
|
|
return
|
|
|
|
for (var/obj/item/garbage in items_to_sweep)
|
|
garbage.forceMove(loc)
|
|
|
|
items_to_sweep.Cut()
|
|
|
|
to_chat(user, span_notice("You sweep the pile of garbage into [src]."))
|
|
playsound(broom.loc, 'sound/items/weapons/thudswoosh.ogg', 30, TRUE, -1)
|