mirror of
https://github.com/APercy/automobiles_pck
synced 2025-11-09 00:08:01 +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
|
||||
minetest.sound_play("automobiles_drifting", {
|
||||
to_player = self.driver_name,
|
||||
pos = curr_pos,
|
||||
max_hear_distance = 5,
|
||||
gain = 1.0,
|
||||
fade = 0.0,
|
||||
pitch = 1.0,
|
||||
ephemeral = true,
|
||||
pos = curr_pos,
|
||||
max_hear_distance = 20,
|
||||
gain = 3.0,
|
||||
fade = 0.0,
|
||||
pitch = 1.0,
|
||||
ephemeral = true,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
@ -551,8 +551,8 @@ minetest.register_entity("automobiles_catrelle:catrelle", {
|
||||
self._last_time_drift_snd = 0
|
||||
minetest.sound_play("automobiles_drifting", {
|
||||
pos = curr_pos,
|
||||
max_hear_distance = 5,
|
||||
gain = 1.0,
|
||||
max_hear_distance = 20,
|
||||
gain = 3.0,
|
||||
fade = 0.0,
|
||||
pitch = 1.0,
|
||||
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
|
||||
minetest.sound_play("automobiles_drifting", {
|
||||
to_player = self.driver_name,
|
||||
pos = curr_pos,
|
||||
max_hear_distance = 5,
|
||||
gain = 1.0,
|
||||
fade = 0.0,
|
||||
pitch = 1.0,
|
||||
ephemeral = true,
|
||||
pos = curr_pos,
|
||||
max_hear_distance = 20,
|
||||
gain = 3.0,
|
||||
fade = 0.0,
|
||||
pitch = 1.0,
|
||||
ephemeral = true,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
@ -706,8 +706,8 @@ minetest.register_entity("automobiles_delorean:delorean", {
|
||||
self._last_time_drift_snd = 0
|
||||
minetest.sound_play("automobiles_drifting", {
|
||||
pos = curr_pos,
|
||||
max_hear_distance = 5,
|
||||
gain = 1.0,
|
||||
max_hear_distance = 20,
|
||||
gain = 3.0,
|
||||
fade = 0.0,
|
||||
pitch = 1.0,
|
||||
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
|
||||
minetest.sound_play("automobiles_drifting", {
|
||||
to_player = self.driver_name,
|
||||
pos = curr_pos,
|
||||
max_hear_distance = 5,
|
||||
gain = 1.0,
|
||||
fade = 0.0,
|
||||
pitch = 1.0,
|
||||
ephemeral = true,
|
||||
pos = curr_pos,
|
||||
max_hear_distance = 20,
|
||||
gain = 3.0,
|
||||
fade = 0.0,
|
||||
pitch = 1.0,
|
||||
ephemeral = true,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
@ -625,8 +625,8 @@ minetest.register_entity("automobiles_trans_am:trans_am", {
|
||||
self._last_time_drift_snd = 0
|
||||
minetest.sound_play("automobiles_drifting", {
|
||||
pos = curr_pos,
|
||||
max_hear_distance = 5,
|
||||
gain = 1.0,
|
||||
max_hear_distance = 20,
|
||||
gain = 3.0,
|
||||
fade = 0.0,
|
||||
pitch = 1.0,
|
||||
ephemeral = true,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user