Skip to content

Commit

Permalink
Added new Everest triggers for ambience and ambience volume
Browse files Browse the repository at this point in the history
Requires Everest 3731
  • Loading branch information
Cruor committed Jan 9, 2023
1 parent 83da793 commit a2a36e2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lang/en_gb.lang
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,17 @@ triggers.ambienceParamTrigger.attributes.description.from=Determines the volume
triggers.ambienceParamTrigger.attributes.description.parameter=Uses the ambience properties if left blank, otherwise uses FMOD's escape property.
triggers.ambienceParamTrigger.attributes.description.direction=Determines which direction the ambience comes from.

# Ambience
triggers.everest/ambienceTrigger.placements.name.ambience=Ambience
triggers.everest/ambienceTrigger.attributes.description.resetOnLeave=Resets the ambience when the player leaves the current zone after entering the trigger zone.
triggers.everest/ambienceTrigger.attributes.description.track=Changes the ambience track that plays when the player enters the trigger zone.

# Ambience Volume
triggers.everest/ambienceVolumeTrigger.placements.name.ambience_volume=Ambience Volume
triggers.everest/ambienceVolumeTrigger.attributes.description.to=Determines the volume of the ambience at farther distances.
triggers.everest/ambienceVolumeTrigger.attributes.description.from=Determines the volume of the ambience at closer distances.
triggers.everest/ambienceVolumeTrigger.attributes.description.direction=Determines which direction the ambience comes from.

# Bird Path
triggers.birdPathTrigger.placements.name.bird_path=Bird Path

Expand Down
22 changes: 22 additions & 0 deletions src/triggers/ambience.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
local enums = require("consts.celeste_enums")
local ambient_sounds = table.keys(enums.ambient_sounds)

table.sort(ambient_sounds)

local ambience = {}

ambience.name = "everest/ambienceTrigger"
ambience.fieldInformation = {
track = {
options = ambient_sounds
}
}
ambience.placements = {
name = "ambience",
data = {
track = "",
resetOnLeave = true
}
}

return ambience
21 changes: 21 additions & 0 deletions src/triggers/ambience_volume.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
local enums = require("consts.celeste_enums")

local ambienceVolume = {}

ambienceVolume.name = "everest/ambienceVolumeTrigger"
ambienceVolume.fieldInformation = {
direction = {
options = enums.trigger_position_modes,
editable = false
}
}
ambienceVolume.placements = {
name = "ambience_volume",
data = {
from = 0.0,
to = 0.0,
direction = "NoEffect"
}
}

return ambienceVolume

0 comments on commit a2a36e2

Please sign in to comment.