mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Small sound fixes
This commit is contained in:
parent
998b1deb15
commit
e936a27d40
@ -247,18 +247,13 @@
|
|||||||
// ],
|
// ],
|
||||||
// threshold: 0.5,
|
// threshold: 0.5,
|
||||||
//),
|
//),
|
||||||
LevelUp:(
|
// unused for now
|
||||||
files: [
|
// Jump: (
|
||||||
"voxygen.audio.sfx.character.level_up_sound_-_shorter_wind_up",
|
|
||||||
],
|
|
||||||
threshold: 0.5,
|
|
||||||
),
|
|
||||||
//Jump: (
|
|
||||||
// files: [
|
// files: [
|
||||||
// // Event not implemented?
|
// "voxygen.audio.sfx.utterance.humanmale_hurt1"
|
||||||
// ],
|
// ],
|
||||||
// threshold: 0.25,
|
// threshold: 0.25,
|
||||||
//),
|
// ),
|
||||||
//Fall: (
|
//Fall: (
|
||||||
// files: [
|
// files: [
|
||||||
// // Event not implemented?
|
// // Event not implemented?
|
||||||
@ -272,18 +267,17 @@
|
|||||||
],
|
],
|
||||||
threshold: 0.25,
|
threshold: 0.25,
|
||||||
),
|
),
|
||||||
//Climb: (
|
Climb: (
|
||||||
// files: [
|
files: [
|
||||||
// TODO: sync with animation
|
// TODO: sync with animation
|
||||||
// "voxygen.audio.sfx.footsteps.stepgrass_1",
|
"voxygen.audio.sfx.footsteps.stepdirt_1",
|
||||||
// "voxygen.audio.sfx.footsteps.stepgrass_2",
|
"voxygen.audio.sfx.footsteps.stepdirt_2",
|
||||||
// "voxygen.audio.sfx.footsteps.stepgrass_3",
|
"voxygen.audio.sfx.footsteps.stepdirt_3",
|
||||||
// "voxygen.audio.sfx.footsteps.stepgrass_4",
|
"voxygen.audio.sfx.footsteps.stepdirt_4",
|
||||||
// "voxygen.audio.sfx.footsteps.stepgrass_5",
|
"voxygen.audio.sfx.footsteps.stepdirt_5",
|
||||||
// "voxygen.audio.sfx.footsteps.stepgrass_6",
|
],
|
||||||
// ],
|
threshold: 1.2,
|
||||||
// threshold: 0.25,
|
),
|
||||||
//),
|
|
||||||
GliderOpen: (
|
GliderOpen: (
|
||||||
files: [
|
files: [
|
||||||
"voxygen.audio.sfx.character.glider_open",
|
"voxygen.audio.sfx.character.glider_open",
|
||||||
@ -619,37 +613,37 @@
|
|||||||
),
|
),
|
||||||
Inventory(CollectedItem("Diamond")): (
|
Inventory(CollectedItem("Diamond")): (
|
||||||
files: [
|
files: [
|
||||||
"voxygen.audio.sfx.weapon.staff_out",
|
"voxygen.audio.sfx.inventory.collect_gemstone",
|
||||||
],
|
],
|
||||||
threshold: 0.3,
|
threshold: 0.3,
|
||||||
),
|
),
|
||||||
Inventory(CollectedItem("Ruby")): (
|
Inventory(CollectedItem("Ruby")): (
|
||||||
files: [
|
files: [
|
||||||
"voxygen.audio.sfx.weapon.staff_out",
|
"voxygen.audio.sfx.inventory.collect_gemstone",
|
||||||
],
|
],
|
||||||
threshold: 0.3,
|
threshold: 0.3,
|
||||||
),
|
),
|
||||||
Inventory(CollectedItem("Emerald")): (
|
Inventory(CollectedItem("Emerald")): (
|
||||||
files: [
|
files: [
|
||||||
"voxygen.audio.sfx.weapon.staff_out",
|
"voxygen.audio.sfx.inventory.collect_gemstone",
|
||||||
],
|
],
|
||||||
threshold: 0.3,
|
threshold: 0.3,
|
||||||
),
|
),
|
||||||
Inventory(CollectedItem("Sapphire")): (
|
Inventory(CollectedItem("Sapphire")): (
|
||||||
files: [
|
files: [
|
||||||
"voxygen.audio.sfx.weapon.staff_out",
|
"voxygen.audio.sfx.inventory.collect_gemstone",
|
||||||
],
|
],
|
||||||
threshold: 0.3,
|
threshold: 0.3,
|
||||||
),
|
),
|
||||||
Inventory(CollectedItem("Topaz")): (
|
Inventory(CollectedItem("Topaz")): (
|
||||||
files: [
|
files: [
|
||||||
"voxygen.audio.sfx.weapon.staff_out",
|
"voxygen.audio.sfx.inventory.collect_gemstone",
|
||||||
],
|
],
|
||||||
threshold: 0.3,
|
threshold: 0.3,
|
||||||
),
|
),
|
||||||
Inventory(CollectedItem("Amethyst")): (
|
Inventory(CollectedItem("Amethyst")): (
|
||||||
files: [
|
files: [
|
||||||
"voxygen.audio.sfx.weapon.staff_out",
|
"voxygen.audio.sfx.inventory.collect_gemstone",
|
||||||
],
|
],
|
||||||
threshold: 0.3,
|
threshold: 0.3,
|
||||||
),
|
),
|
||||||
|
BIN
assets/voxygen/audio/sfx/character/level_up_sound_-_shorter_wind_up.ogg
(Stored with Git LFS)
BIN
assets/voxygen/audio/sfx/character/level_up_sound_-_shorter_wind_up.ogg
(Stored with Git LFS)
Binary file not shown.
BIN
assets/voxygen/audio/sfx/inventory/collect_gemstone.ogg
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/audio/sfx/inventory/collect_gemstone.ogg
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -10,6 +10,30 @@
|
|||||||
(
|
(
|
||||||
tracks:
|
tracks:
|
||||||
[
|
[
|
||||||
|
Individual((
|
||||||
|
title: "Follow the Signs",
|
||||||
|
path: "voxygen.audio.soundtrack.town.follow_the_signs",
|
||||||
|
length: 154.0,
|
||||||
|
timing: Some(Night),
|
||||||
|
biomes: [
|
||||||
|
(Forest, 1),
|
||||||
|
],
|
||||||
|
site: Some(Void),
|
||||||
|
music_state: Activity(Explore),
|
||||||
|
artist: "Oolnokk",
|
||||||
|
)),
|
||||||
|
Individual((
|
||||||
|
title: "Travel By Night",
|
||||||
|
path: "voxygen.audio.soundtrack.town.travel_by_night",
|
||||||
|
length: 66.0,
|
||||||
|
timing: Some(Night),
|
||||||
|
biomes: [
|
||||||
|
(Forest, 2),
|
||||||
|
],
|
||||||
|
site: Some(Void),
|
||||||
|
music_state: Activity(Explore),
|
||||||
|
artist: "Oolnokk",
|
||||||
|
)),
|
||||||
Individual((
|
Individual((
|
||||||
title: "Cobbled Halls",
|
title: "Cobbled Halls",
|
||||||
path: "voxygen.audio.soundtrack.dungeon.cobbled_halls",
|
path: "voxygen.audio.soundtrack.dungeon.cobbled_halls",
|
||||||
@ -193,7 +217,7 @@
|
|||||||
length: 169.0,
|
length: 169.0,
|
||||||
timing: Some(Day),
|
timing: Some(Day),
|
||||||
biomes: [
|
biomes: [
|
||||||
(Forest, 1),
|
(Forest, 2),
|
||||||
],
|
],
|
||||||
site: Some(Void),
|
site: Some(Void),
|
||||||
music_state: Activity(Explore),
|
music_state: Activity(Explore),
|
||||||
@ -332,7 +356,7 @@
|
|||||||
length: 206.0,
|
length: 206.0,
|
||||||
timing: Some(Night),
|
timing: Some(Night),
|
||||||
biomes: [
|
biomes: [
|
||||||
(Forest, 1),
|
(Forest, 2),
|
||||||
],
|
],
|
||||||
site: Some(Void),
|
site: Some(Void),
|
||||||
music_state: Activity(Explore),
|
music_state: Activity(Explore),
|
||||||
@ -344,7 +368,7 @@
|
|||||||
length: 184.0,
|
length: 184.0,
|
||||||
timing: Some(Night),
|
timing: Some(Night),
|
||||||
biomes: [
|
biomes: [
|
||||||
(Forest, 1),
|
(Forest, 2),
|
||||||
(Jungle, 1),
|
(Jungle, 1),
|
||||||
],
|
],
|
||||||
site: Some(Void),
|
site: Some(Void),
|
||||||
@ -358,7 +382,7 @@
|
|||||||
timing: Some(Day),
|
timing: Some(Day),
|
||||||
biomes: [
|
biomes: [
|
||||||
(Grassland, 1),
|
(Grassland, 1),
|
||||||
(Forest, 1),
|
(Forest, 2),
|
||||||
],
|
],
|
||||||
site: Some(Void),
|
site: Some(Void),
|
||||||
music_state: Activity(Explore),
|
music_state: Activity(Explore),
|
||||||
@ -442,7 +466,7 @@
|
|||||||
length: 100.0,
|
length: 100.0,
|
||||||
timing: Some(Night),
|
timing: Some(Night),
|
||||||
biomes: [
|
biomes: [
|
||||||
(Forest, 1),
|
(Forest, 2),
|
||||||
],
|
],
|
||||||
site: Some(Void),
|
site: Some(Void),
|
||||||
music_state: Activity(Explore),
|
music_state: Activity(Explore),
|
||||||
@ -476,7 +500,7 @@
|
|||||||
length: 175.0,
|
length: 175.0,
|
||||||
timing: Some(Day),
|
timing: Some(Day),
|
||||||
biomes: [
|
biomes: [
|
||||||
(Forest, 1),
|
(Forest, 2),
|
||||||
],
|
],
|
||||||
site: Some(Void),
|
site: Some(Void),
|
||||||
music_state: Activity(Explore),
|
music_state: Activity(Explore),
|
||||||
|
BIN
assets/voxygen/audio/soundtrack/overworld/follow_the_signs.ogg
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/audio/soundtrack/overworld/follow_the_signs.ogg
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/audio/soundtrack/overworld/travel_by_night.ogg
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/audio/soundtrack/overworld/travel_by_night.ogg
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -319,11 +319,11 @@ impl MusicMgr {
|
|||||||
if matches!(music_state, MusicState::Activity(MusicActivity::Explore))
|
if matches!(music_state, MusicState::Activity(MusicActivity::Explore))
|
||||||
&& matches!(client.current_site(), SitesKind::Settlement)
|
&& matches!(client.current_site(), SitesKind::Settlement)
|
||||||
{
|
{
|
||||||
rng.gen_range(90.0..180.0)
|
rng.gen_range(100.0..130.0)
|
||||||
} else if matches!(music_state, MusicState::Activity(MusicActivity::Explore)) {
|
} else if matches!(music_state, MusicState::Activity(MusicActivity::Explore)) {
|
||||||
rng.gen_range(60.0..120.0)
|
rng.gen_range(90.0..180.0)
|
||||||
} else {
|
} else {
|
||||||
0.0
|
rng.gen_range(30.0..60.0)
|
||||||
};
|
};
|
||||||
|
|
||||||
let is_dark = (state.get_day_period().is_dark()) as bool;
|
let is_dark = (state.get_day_period().is_dark()) as bool;
|
||||||
|
@ -168,6 +168,7 @@ impl MovementEventMapper {
|
|||||||
if &previous_state.event == event {
|
if &previous_state.event == event {
|
||||||
match event {
|
match event {
|
||||||
SfxEvent::Run(_) => previous_state.distance_travelled >= item.threshold,
|
SfxEvent::Run(_) => previous_state.distance_travelled >= item.threshold,
|
||||||
|
SfxEvent::Climb => previous_state.distance_travelled >= item.threshold,
|
||||||
SfxEvent::QuadRun(_) => previous_state.distance_travelled >= item.threshold,
|
SfxEvent::QuadRun(_) => previous_state.distance_travelled >= item.threshold,
|
||||||
_ => previous_state.time.elapsed().as_secs_f32() >= item.threshold,
|
_ => previous_state.time.elapsed().as_secs_f32() >= item.threshold,
|
||||||
}
|
}
|
||||||
|
@ -568,9 +568,6 @@ impl SfxMgr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Outcome::ExpChange { .. }
|
|
||||||
| Outcome::ComboChange { .. }
|
|
||||||
| Outcome::SummonedCreature { .. } => {},
|
|
||||||
Outcome::Glider { pos, wielded } => {
|
Outcome::Glider { pos, wielded } => {
|
||||||
if *wielded {
|
if *wielded {
|
||||||
let sfx_trigger_item = triggers.get_key_value(&SfxEvent::GliderOpen);
|
let sfx_trigger_item = triggers.get_key_value(&SfxEvent::GliderOpen);
|
||||||
@ -580,6 +577,9 @@ impl SfxMgr {
|
|||||||
audio.emit_sfx(sfx_trigger_item, *pos, Some(1.0), false);
|
audio.emit_sfx(sfx_trigger_item, *pos, Some(1.0), false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Outcome::ExpChange { .. }
|
||||||
|
| Outcome::ComboChange { .. }
|
||||||
|
| Outcome::SummonedCreature { .. } => {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user