Compare commits
3 Commits
a18d2cf459
...
63c4e81555
Author | SHA1 | Date |
---|---|---|
Alexsandro Percy | 63c4e81555 | |
Alexsandro Percy | cc004fc3ed | |
Alexsandro Percy | 425a09e1c6 |
|
@ -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,
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -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,
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue