improved drift sound parameters

This commit is contained in:
Alexsandro Percy 2023-04-30 11:36:30 -03:00
parent da644f9698
commit 75a259c57b
6 changed files with 24 additions and 27 deletions

View File

@ -538,13 +538,12 @@ minetest.register_entity("automobiles_buggy:buggy", {
self._last_time_drift_snd > 0.6 then self._last_time_drift_snd > 0.6 then
self._last_time_drift_snd = 0 self._last_time_drift_snd = 0
minetest.sound_play("automobiles_drifting", { minetest.sound_play("automobiles_drifting", {
to_player = self.driver_name, pos = curr_pos,
pos = curr_pos, max_hear_distance = 20,
max_hear_distance = 5, gain = 3.0,
gain = 1.0, fade = 0.0,
fade = 0.0, pitch = 1.0,
pitch = 1.0, ephemeral = true,
ephemeral = true,
}) })
end end

View File

@ -551,8 +551,8 @@ minetest.register_entity("automobiles_catrelle:catrelle", {
self._last_time_drift_snd = 0 self._last_time_drift_snd = 0
minetest.sound_play("automobiles_drifting", { minetest.sound_play("automobiles_drifting", {
pos = curr_pos, pos = curr_pos,
max_hear_distance = 5, max_hear_distance = 20,
gain = 1.0, gain = 3.0,
fade = 0.0, fade = 0.0,
pitch = 1.0, pitch = 1.0,
ephemeral = true, ephemeral = true,

View File

@ -554,13 +554,12 @@ minetest.register_entity("automobiles_coupe:coupe", {
self._last_time_drift_snd > 0.6 then self._last_time_drift_snd > 0.6 then
self._last_time_drift_snd = 0 self._last_time_drift_snd = 0
minetest.sound_play("automobiles_drifting", { minetest.sound_play("automobiles_drifting", {
to_player = self.driver_name, pos = curr_pos,
pos = curr_pos, max_hear_distance = 20,
max_hear_distance = 5, gain = 3.0,
gain = 1.0, fade = 0.0,
fade = 0.0, pitch = 1.0,
pitch = 1.0, ephemeral = true,
ephemeral = true,
}) })
end end

View File

@ -706,8 +706,8 @@ minetest.register_entity("automobiles_delorean:delorean", {
self._last_time_drift_snd = 0 self._last_time_drift_snd = 0
minetest.sound_play("automobiles_drifting", { minetest.sound_play("automobiles_drifting", {
pos = curr_pos, pos = curr_pos,
max_hear_distance = 5, max_hear_distance = 20,
gain = 1.0, gain = 3.0,
fade = 0.0, fade = 0.0,
pitch = 1.0, pitch = 1.0,
ephemeral = true, ephemeral = true,

View File

@ -510,13 +510,12 @@ minetest.register_entity("automobiles_roadster:roadster", {
self._last_time_drift_snd > 0.6 then self._last_time_drift_snd > 0.6 then
self._last_time_drift_snd = 0 self._last_time_drift_snd = 0
minetest.sound_play("automobiles_drifting", { minetest.sound_play("automobiles_drifting", {
to_player = self.driver_name, pos = curr_pos,
pos = curr_pos, max_hear_distance = 20,
max_hear_distance = 5, gain = 3.0,
gain = 1.0, fade = 0.0,
fade = 0.0, pitch = 1.0,
pitch = 1.0, ephemeral = true,
ephemeral = true,
}) })
end end

View File

@ -625,8 +625,8 @@ minetest.register_entity("automobiles_trans_am:trans_am", {
self._last_time_drift_snd = 0 self._last_time_drift_snd = 0
minetest.sound_play("automobiles_drifting", { minetest.sound_play("automobiles_drifting", {
pos = curr_pos, pos = curr_pos,
max_hear_distance = 5, max_hear_distance = 20,
gain = 1.0, gain = 3.0,
fade = 0.0, fade = 0.0,
pitch = 1.0, pitch = 1.0,
ephemeral = true, ephemeral = true,