Compare commits

...

3 Commits

Author SHA1 Message Date
Alexsandro Percy 63c4e81555 improved drift sound start 2023-12-27 12:11:10 -03:00
Alexsandro Percy cc004fc3ed adjusted drift sound start 2023-12-27 12:03:04 -03:00
Alexsandro Percy 425a09e1c6 sounds improvement 2023-12-27 11:11:56 -03:00
6 changed files with 9 additions and 3 deletions

View File

@ -406,11 +406,13 @@ auto_beetle.car_properties1 = {
_painting_load = auto_beetle.paint,
_transmission_state = 1,
_horn_sound = 'beetle_horn',
_LONGIT_DRAG_FACTOR = 0.12*0.12,
_LATER_DRAG_FACTOR = 6.0,
_max_acc_factor = 5,
_max_speed = 14,
_min_later_speed = 2,
_min_later_speed = 3,
get_staticdata = automobiles_lib.get_staticdata,

BIN
automobiles_beetle/sounds/beetle_engine.ogg Normal file → Executable file

Binary file not shown.

Binary file not shown.

View File

@ -262,7 +262,7 @@ minetest.register_entity("automobiles_buggy:buggy", {
_LATER_DRAG_FACTOR = 6.0,
_max_acc_factor = 5,
_max_speed = 15,
_min_later_speed = 2.5,
_min_later_speed = 4.0,
get_staticdata = automobiles_lib.get_staticdata,

View File

@ -414,7 +414,9 @@ function automobiles_lib.on_step(self, dtime)
--sets the engine running - but sets a delay also, cause keypress
if self._last_time_command > 0.8 then
self._last_time_command = 0
minetest.sound_play({name = "automobiles_horn"},
local horn_sound = "automobiles_horn"
if self._horn_sound then horn_sound = self._horn_sound end
minetest.sound_play({name = horn_sound},
{object = self.object, gain = 0.6, pitch = 1.0, max_hear_distance = 32, loop = false,})
end
end

View File

@ -285,6 +285,8 @@ minetest.register_entity("automobiles_roadster:roadster", {
_gauge_pointer_ent = 'automobiles_roadster:pointer',
_front_lights = 'automobiles_roadster:lights',
_horn_sound = 'roadster_horn',
_LONGIT_DRAG_FACTOR = 0.16*0.16,
_LATER_DRAG_FACTOR = 20.0,
_max_acc_factor = 5,