mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Areas can now set their sound environments. Default is still 2 (room). For now only hallways and asteroid areas have different ones (hallway and stoneroom respectively)
This commit is contained in:
@@ -56,7 +56,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
|
|||||||
var/air_doors_activated = 0
|
var/air_doors_activated = 0
|
||||||
var/list/ambience = list('sound/ambience/ambigen1.ogg','sound/ambience/ambigen3.ogg','sound/ambience/ambigen4.ogg','sound/ambience/ambigen5.ogg','sound/ambience/ambigen6.ogg','sound/ambience/ambigen7.ogg','sound/ambience/ambigen8.ogg','sound/ambience/ambigen9.ogg','sound/ambience/ambigen10.ogg','sound/ambience/ambigen11.ogg','sound/ambience/ambigen12.ogg','sound/ambience/ambigen14.ogg')
|
var/list/ambience = list('sound/ambience/ambigen1.ogg','sound/ambience/ambigen3.ogg','sound/ambience/ambigen4.ogg','sound/ambience/ambigen5.ogg','sound/ambience/ambigen6.ogg','sound/ambience/ambigen7.ogg','sound/ambience/ambigen8.ogg','sound/ambience/ambigen9.ogg','sound/ambience/ambigen10.ogg','sound/ambience/ambigen11.ogg','sound/ambience/ambigen12.ogg','sound/ambience/ambigen14.ogg')
|
||||||
var/sound/forced_ambience = null
|
var/sound/forced_ambience = null
|
||||||
|
var/sound_env = 2 //reverb preset for sounds played in this area, see sound datum reference for more
|
||||||
/*Adding a wizard area teleport list because motherfucking lag -- Urist*/
|
/*Adding a wizard area teleport list because motherfucking lag -- Urist*/
|
||||||
/*I am far too lazy to make it a proper list of areas so I'll just make it run the usual telepot routine at the start of the game*/
|
/*I am far too lazy to make it a proper list of areas so I'll just make it run the usual telepot routine at the start of the game*/
|
||||||
var/list/teleportlocs = list()
|
var/list/teleportlocs = list()
|
||||||
@@ -808,6 +808,9 @@ area/space/atmosalert()
|
|||||||
|
|
||||||
//Hallway
|
//Hallway
|
||||||
|
|
||||||
|
/area/hallway/primary/
|
||||||
|
sound_env = 12 //hallway
|
||||||
|
|
||||||
/area/hallway/primary/fore
|
/area/hallway/primary/fore
|
||||||
name = "\improper Fore Primary Hallway"
|
name = "\improper Fore Primary Hallway"
|
||||||
icon_state = "hallF"
|
icon_state = "hallF"
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
/area/mine
|
/area/mine
|
||||||
icon_state = "mining"
|
icon_state = "mining"
|
||||||
music = 'sound/ambience/song_game.ogg'
|
music = 'sound/ambience/song_game.ogg'
|
||||||
|
sound_env = 5 //stoneroom
|
||||||
|
|
||||||
/area/mine/explored
|
/area/mine/explored
|
||||||
name = "Mine"
|
name = "Mine"
|
||||||
|
|||||||
@@ -88,8 +88,11 @@ var/const/FALLOFF_SOUNDS = 0.5
|
|||||||
// The y value is for above your head, but there is no ceiling in 2d spessmens.
|
// The y value is for above your head, but there is no ceiling in 2d spessmens.
|
||||||
S.y = 1
|
S.y = 1
|
||||||
S.falloff = (falloff ? falloff : FALLOFF_SOUNDS)
|
S.falloff = (falloff ? falloff : FALLOFF_SOUNDS)
|
||||||
|
|
||||||
if(!is_global)
|
if(!is_global)
|
||||||
S.environment = 2
|
var/area/A = get_area(src)
|
||||||
|
S.environment = A.sound_env
|
||||||
|
|
||||||
src << S
|
src << S
|
||||||
|
|
||||||
/client/proc/playtitlemusic()
|
/client/proc/playtitlemusic()
|
||||||
|
|||||||
Reference in New Issue
Block a user