Skip to content

Commit

Permalink
Merge pull request #2523 from Superlagg/time-to-sound-the-resources-w…
Browse files Browse the repository at this point in the history
…itha--rusty-nail

Forcefeeds resources to everyone
  • Loading branch information
Superlagg authored Jun 24, 2023
2 parents 11480bc + 03ad586 commit 3c6b3eb
Show file tree
Hide file tree
Showing 32 changed files with 25 additions and 1 deletion.
1 change: 0 additions & 1 deletion code/datums/looping_sounds/ambient_sounds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@
direct = TRUE
loop_delay = 1 MINUTES
mid_sounds = list(
SOUND_LOOP_ENTRY('sound/music/rocketridersprayer.ogg', 370 SECONDS, 1),
SOUND_LOOP_ENTRY('sound/f13/thats_life.ogg', 124 SECONDS, 10),
SOUND_LOOP_ENTRY('sound/f13/hanging_me.ogg', 185 SECONDS, 10),
SOUND_LOOP_ENTRY('sound/f13/rainmustfall.ogg', 148 SECONDS, 10),
Expand Down
25 changes: 25 additions & 0 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,31 @@ GLOBAL_LIST_INIT(warning_ckeys, list())
Export("##action=load_rsc", file)
stoplag()
#endif
preload_every_fucking_sound_file() // ha ha what a great idea

GLOBAL_LIST_EMPTY(every_fucking_sound_file)

/// Okay maybe not every sound file, just the important ones
/client/proc/populate_every_fucking_sound_file()
if(LAZYLEN(GLOB.every_fucking_sound_file))
return
var/list/fucking_sound_folders = list(
"sounds/f13npc/",
"sounds/f13weapons/",
"sounds/creatures/",
"sounds/voice/",
)
for(var/folder in fucking_sound_folders)
GLOB.every_fucking_sound_file |= pathwalk(folder)

/// Goes through every sound file in the universe and forcefeeds them all to the client
/// Cus this game doesnt have enough loading
/client/proc/preload_every_fucking_sound_file()
if(!LAZYLEN(GLOB.every_fucking_sound_file))
populate_every_fucking_sound_file()
for (var/file in GLOB.every_fucking_sound_file)
Export("##action=load_rsc", file)
stoplag()


//Hook, override it to run code when dir changes
Expand Down
Binary file removed sound/misc/Paradox.ogg
Binary file not shown.
Binary file modified sound/misc/deltakalaxon.ogg
Binary file not shown.
Binary file modified sound/misc/highlander.ogg
Binary file not shown.
Binary file modified sound/misc/highlander_delayed.ogg
Binary file not shown.
Binary file modified sound/misc/highlander_only_one.ogg
Binary file not shown.
Binary file removed sound/misc/i_did_not_grief_them.ogg
Binary file not shown.
Binary file removed sound/music/1.ogg
Binary file not shown.
Binary file removed sound/music/carmenmirandasghost.ogg
Binary file not shown.
Binary file removed sound/music/century21march.ogg
Binary file not shown.
Binary file removed sound/music/dawsonschristian.ogg
Binary file not shown.
Binary file removed sound/music/flyinghigh.ogg
Binary file not shown.
Binary file removed sound/music/flytothemoon_otomatone.ogg
Binary file not shown.
Binary file removed sound/music/gaytony.ogg
Binary file not shown.
Binary file removed sound/music/gi.ogg
Binary file not shown.
Binary file removed sound/music/goodbyemoonmen.ogg
Binary file not shown.
Binary file removed sound/music/indeep.ogg
Binary file not shown.
Binary file removed sound/music/milkyway.ogg
Binary file not shown.
Binary file removed sound/music/moonbaseoddity.ogg
Binary file not shown.
Binary file removed sound/music/oceanman.ogg
Binary file not shown.
Binary file removed sound/music/rocketridersprayer.ogg
Binary file not shown.
Binary file removed sound/music/samsara.ogg
Binary file not shown.
Binary file removed sound/music/shootingstars.ogg
Binary file not shown.
Binary file removed sound/music/space_asshole.ogg
Binary file not shown.
Binary file removed sound/music/space_oddity.ogg
Binary file not shown.
Binary file removed sound/music/starman.ogg
Binary file not shown.
Binary file removed sound/music/theend.ogg
Binary file not shown.
Binary file removed sound/music/torvus.ogg
Binary file not shown.
Binary file removed sound/music/twilight.ogg
Binary file not shown.
Binary file removed sound/voice/abomtheme.ogg
Binary file not shown.
Binary file modified sound/weather/rain.ogg
Binary file not shown.

0 comments on commit 3c6b3eb

Please sign in to comment.