rewrite how CAR01 vehicles are defined
so that all CAR01 vehicles start from the same definiton fix CAR01 model and related collision box so that box is always centered. reduce box size so that car can turn without box exeeding model excessively
This commit is contained in:
parent
222cf8e9f1
commit
6003914bef
32
black.lua
32
black.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_black"
|
local name = "car_black"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Black car"
|
||||||
description = "Black car",
|
definition.inventory_image = "inv_car_black.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_black.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_black.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_black.png",
|
|
||||||
wield_image = "inv_car_black.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_black.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
32
blue.lua
32
blue.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_blue"
|
local name = "car_blue"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Blue car"
|
||||||
description = "Blue car",
|
definition.inventory_image = "inv_car_blue.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_blue.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_blue.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_blue.png",
|
|
||||||
wield_image = "inv_car_blue.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_blue.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
32
brown.lua
32
brown.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_brown"
|
local name = "car_brown"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Brown car"
|
||||||
description = "Brown car",
|
definition.inventory_image = "inv_car_brown.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_brown.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_brown.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_brown.png",
|
|
||||||
wield_image = "inv_car_brown.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_brown.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
22
car01_def.lua
Normal file
22
car01_def.lua
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
vehicle_mash.car01_definition = {
|
||||||
|
onplace_position_adj = -0.45,
|
||||||
|
is_boat = false,
|
||||||
|
player_rotation = {x=0,y=90,z=0},
|
||||||
|
collisionbox = {-0.6, -0.05, -0.6, 0.6, 1, 0.6},
|
||||||
|
driver_attach_at = {x=3.5,y=12,z=3.5},
|
||||||
|
passenger_attach_at = {x=3.5,y=12,z=-3.5},
|
||||||
|
number_of_passengers = 1,
|
||||||
|
passenger_eye_offset = {x=8, y=0, z=0},
|
||||||
|
wield_scale = {x=1, y=1, z=1},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "car.x",
|
||||||
|
visual_size = {x=1, y=1},
|
||||||
|
stepheight = 1.1,
|
||||||
|
max_speed_forward = 20,
|
||||||
|
max_speed_reverse = 10,
|
||||||
|
accel = 2,
|
||||||
|
braking = 4,
|
||||||
|
turn_speed = 2,
|
||||||
|
drop_on_destroy = "",
|
||||||
|
recipe = {}
|
||||||
|
}
|
32
cyan.lua
32
cyan.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_cyan"
|
local name = "car_cyan"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Cyan car"
|
||||||
description = "Cyan car",
|
definition.inventory_image = "inv_car_cyan.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_cyan.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_cyan.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_cyan.png",
|
|
||||||
wield_image = "inv_car_cyan.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_cyan.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_dark_green"
|
local name = "car_dark_green"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Dark green car"
|
||||||
description = "Dark green car",
|
definition.inventory_image = "inv_car_dark_green.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_dark_green.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_dark_green.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_dark_green.png",
|
|
||||||
wield_image = "inv_car_dark_green.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_dark_green.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_dark_grey"
|
local name = "car_dark_grey"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Dark grey car"
|
||||||
description = "Dark grey car",
|
definition.inventory_image = "inv_car_dark_grey.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_dark_grey.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_dark_grey.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_dark_grey.png",
|
|
||||||
wield_image = "inv_car_dark_grey.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_dark_grey.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
@ -316,3 +316,10 @@ function vehicle_mash:register_vehicle(name, def)
|
|||||||
-- })
|
-- })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function vehicle_mash_table_copy(tbl)
|
||||||
|
local tbl2 = {}
|
||||||
|
for k,v in pairs(tbl) do
|
||||||
|
tbl2[k]=v
|
||||||
|
end
|
||||||
|
return tbl2
|
||||||
|
end
|
||||||
|
32
green.lua
32
green.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_green"
|
local name = "car_green"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Green car"
|
||||||
description = "Green car",
|
definition.inventory_image = "inv_car_green.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_green.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_green.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_green.png",
|
|
||||||
wield_image = "inv_car_green.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_green.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
32
grey.lua
32
grey.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_grey"
|
local name = "car_grey"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Grey car"
|
||||||
description = "Grey car",
|
definition.inventory_image = "inv_car_grey.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_grey.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_grey.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_grey.png",
|
|
||||||
wield_image = "inv_car_grey.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_grey.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
32
hot_rod.lua
32
hot_rod.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_hot_rod"
|
local name = "car_hot_rod"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Hot Rod car"
|
||||||
description = "Hot Rod car",
|
definition.inventory_image = "inv_car_red.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_red.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"hot_rod.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_red.png",
|
|
||||||
wield_image = "inv_car_red.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"hot_rod.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
1
init.lua
1
init.lua
@ -17,6 +17,7 @@ dofile(mpath.."/framework.lua")
|
|||||||
-- Cars
|
-- Cars
|
||||||
dofile(mpath.."/126r.lua")
|
dofile(mpath.."/126r.lua")
|
||||||
dofile(mpath.."/f1.lua")
|
dofile(mpath.."/f1.lua")
|
||||||
|
dofile(mpath.."/car01_def.lua")
|
||||||
dofile(mpath.."/black.lua")
|
dofile(mpath.."/black.lua")
|
||||||
dofile(mpath.."/blue.lua")
|
dofile(mpath.."/blue.lua")
|
||||||
dofile(mpath.."/brown.lua")
|
dofile(mpath.."/brown.lua")
|
||||||
|
32
magenta.lua
32
magenta.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_magenta"
|
local name = "car_magenta"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Magenta car"
|
||||||
description = "Magenta car",
|
definition.inventory_image = "inv_car_magenta.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_magenta.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_magenta.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_magenta.png",
|
|
||||||
wield_image = "inv_car_magenta.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_magenta.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
5393
models/car.x
5393
models/car.x
File diff suppressed because it is too large
Load Diff
32
orange.lua
32
orange.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_orange"
|
local name = "car_orange"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Orange car"
|
||||||
description = "Orange car",
|
definition.inventory_image = "inv_car_orange.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_orange.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_orange.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_orange.png",
|
|
||||||
wield_image = "inv_car_orange.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_orange.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
32
pink.lua
32
pink.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_pink"
|
local name = "car_pink"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Pink car"
|
||||||
description = "Pink car",
|
definition.inventory_image = "inv_car_pink.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_pink.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_pink.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_pink.png",
|
|
||||||
wield_image = "inv_car_pink.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_pink.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
32
red.lua
32
red.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_red"
|
local name = "car_red"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Red car"
|
||||||
description = "Red car",
|
definition.inventory_image = "inv_car_red.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_red.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_red.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_red.png",
|
|
||||||
wield_image = "inv_car_red.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_red.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_road_master"
|
local name = "car_road_master"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Road Master car"
|
||||||
description = "Road Master car",
|
definition.inventory_image = "inv_car_brown.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_brown.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"road_master.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_brown.png",
|
|
||||||
wield_image = "inv_car_brown.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"road_master.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
32
violet.lua
32
violet.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_violet"
|
local name = "car_violet"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Violet car"
|
||||||
description = "Violet car",
|
definition.inventory_image = "inv_car_violet.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_violet.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_violet.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_violet.png",
|
|
||||||
wield_image = "inv_car_violet.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_violet.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
32
white.lua
32
white.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_white"
|
local name = "car_white"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "White car"
|
||||||
description = "White car",
|
definition.inventory_image = "inv_car_white.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_white.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_white.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_white.png",
|
|
||||||
wield_image = "inv_car_white.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_white.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
32
yellow.lua
32
yellow.lua
@ -1,32 +1,10 @@
|
|||||||
|
|
||||||
local name = "car_yellow"
|
local name = "car_yellow"
|
||||||
|
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||||
|
|
||||||
local definition = {
|
definition.description = "Yellow car"
|
||||||
description = "Yellow car",
|
definition.inventory_image = "inv_car_yellow.png"
|
||||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
definition.wield_image = "inv_car_yellow.png"
|
||||||
onplace_position_adj = -0.45,
|
definition.textures = {"car_yellow.png"}
|
||||||
is_boat = false,
|
|
||||||
player_rotation = {x=0,y=90,z=0},
|
|
||||||
driver_attach_at = {x=0,y=12,z=0},
|
|
||||||
driver_eye_offset = {x=0, y=0, z=0},
|
|
||||||
number_of_passengers = 1,
|
|
||||||
passenger_attach_at = {x=0,y=12,z=-8},
|
|
||||||
passenger_eye_offset = {x=8, y=0, z=0},
|
|
||||||
inventory_image = "inv_car_yellow.png",
|
|
||||||
wield_image = "inv_car_yellow.png",
|
|
||||||
wield_scale = {x=1, y=1, z=1},
|
|
||||||
visual = "mesh",
|
|
||||||
mesh = "car.x",
|
|
||||||
textures = {"car_yellow.png"},
|
|
||||||
visual_size = {x=1, y=1},
|
|
||||||
stepheight = 1.1,
|
|
||||||
max_speed_forward = 20,
|
|
||||||
max_speed_reverse = 10,
|
|
||||||
accel = 2,
|
|
||||||
braking = 4,
|
|
||||||
turn_speed = 2,
|
|
||||||
drop_on_destroy = "",
|
|
||||||
recipe = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user