mirror of
https://github.com/APercy/automobiles_pck
synced 2025-11-18 12:38:00 +01:00
improved drift sound parameters
This commit is contained in:
parent
da644f9698
commit
75a259c57b
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user