many changes
change how vehicles are registered, add yellow Mesecar, many braking/speed/turning tweaks
49
126r.lua
@ -1,32 +1,25 @@
|
||||
|
||||
local name = "car_126r"
|
||||
local definition = ...
|
||||
|
||||
local definition = {
|
||||
description = "126r car",
|
||||
collisionbox = {-0.7, -0.5, -0.7, 0.7, 0.7, 0.7},
|
||||
onplace_position_adj = 0,
|
||||
is_boat = false,
|
||||
player_rotation = {x=0,y=90,z=0},
|
||||
driver_attach_at = {x=-2,y=10,z=0},
|
||||
driver_eye_offset = {x=0, y=0, z=0},
|
||||
number_of_passengers = 0,
|
||||
passenger_attach_at = {x=0,y=0,z=0},
|
||||
passenger_eye_offset = {x=0, y=0, z=0},
|
||||
inventory_image = "car_126r_inventory.png",
|
||||
wield_image = "car_126r_wield.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
visual = "mesh",
|
||||
mesh = "car_126r.x",
|
||||
textures = {"car_126r.png"},
|
||||
visual_size = {x=1, y=1},
|
||||
stepheight = 1.1,
|
||||
max_speed_forward = 20,
|
||||
max_speed_reverse = 10,
|
||||
accel = 2,
|
||||
braking = 6,
|
||||
turn_speed = 3,
|
||||
drop_on_destroy = "",
|
||||
recipe = {}
|
||||
}
|
||||
definition.description = "126r car"
|
||||
-- adjust to change how vehicle reacts while driving
|
||||
definition.max_speed_forward = 20
|
||||
definition.max_speed_reverse = 10
|
||||
definition.accel = 3
|
||||
definition.braking = 6
|
||||
definition.turn_speed = 4
|
||||
definition.stepheight = 1.1
|
||||
-- model specific stuff
|
||||
definition.mesh = "car_126r.x"
|
||||
definition.collisionbox = {-0.7, -0.5, -0.7, 0.7, 0.7, 0.7}
|
||||
definition.onplace_position_adj = 0
|
||||
definition.inventory_image = "car_126r_inventory.png"
|
||||
definition.wield_image = "car_126r_wield.png"
|
||||
definition.textures = {"car_126r.png"}
|
||||
-- player specific stuff
|
||||
definition.driver_attach_at = {x=-2,y=10,z=0}
|
||||
-- recipe
|
||||
definition.recipe = {}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_black"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Black car"
|
||||
definition.inventory_image = "inv_car_black.png"
|
||||
definition.wield_image = "inv_car_black.png"
|
||||
definition.textures = {"car_black.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
4
blue.lua
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_blue"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Blue car"
|
||||
definition.inventory_image = "inv_car_blue.png"
|
||||
definition.wield_image = "inv_car_blue.png"
|
||||
definition.textures = {"car_blue.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
2
boat.lua
@ -29,4 +29,4 @@ local definition = {
|
||||
recipe = {}
|
||||
}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_brown"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Brown car"
|
||||
definition.inventory_image = "inv_car_brown.png"
|
||||
definition.wield_image = "inv_car_brown.png"
|
||||
definition.textures = {"car_brown.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,22 +0,0 @@
|
||||
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 = {}
|
||||
}
|
4
cyan.lua
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_cyan"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Cyan car"
|
||||
definition.inventory_image = "inv_car_cyan.png"
|
||||
definition.wield_image = "inv_car_cyan.png"
|
||||
definition.textures = {"car_cyan.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_dark_green"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Dark green car"
|
||||
definition.inventory_image = "inv_car_dark_green.png"
|
||||
definition.wield_image = "inv_car_dark_green.png"
|
||||
definition.textures = {"car_dark_green.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_dark_grey"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Dark grey car"
|
||||
definition.inventory_image = "inv_car_dark_grey.png"
|
||||
definition.wield_image = "inv_car_dark_grey.png"
|
||||
definition.textures = {"car_dark_grey.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
49
f1.lua
@ -1,32 +1,25 @@
|
||||
|
||||
local name = "car_f1"
|
||||
local definition = ...
|
||||
|
||||
local definition = {
|
||||
description = "F1 car",
|
||||
collisionbox = {-0.5, -0.4, -0.5, 0.5, 0.5, 0.5},
|
||||
onplace_position_adj = -0.1,
|
||||
is_boat = false,
|
||||
player_rotation = {x=0,y=90,z=0},
|
||||
driver_attach_at = {x=0,y=8,z=0},
|
||||
driver_eye_offset = {x=0, y=0, z=0},
|
||||
number_of_passengers = 0,
|
||||
passenger_attach_at = {x=0,y=0,z=0},
|
||||
passenger_eye_offset = {x=0, y=0, z=0},
|
||||
inventory_image = "car_f1_inventory.png",
|
||||
wield_image = "car_f1_wield.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
visual = "mesh",
|
||||
mesh = "car_f1.x",
|
||||
textures = {"car_f1.png"},
|
||||
visual_size = {x=1, y=1},
|
||||
stepheight = 0.6,
|
||||
max_speed_forward = 25,
|
||||
max_speed_reverse = 15,
|
||||
accel = 3,
|
||||
braking = 6,
|
||||
turn_speed = 4,
|
||||
drop_on_destroy = "",
|
||||
recipe = {}
|
||||
}
|
||||
definition.description = "F1 car"
|
||||
-- adjust to change how vehicle reacts while driving
|
||||
definition.max_speed_forward = 25
|
||||
definition.max_speed_reverse = 15
|
||||
definition.accel = 4
|
||||
definition.braking = 8
|
||||
definition.turn_speed = 4
|
||||
definition.stepheight = 0.6
|
||||
-- model specific stuff
|
||||
definition.mesh = "car_f1.x"
|
||||
definition.collisionbox = {-0.5, -0.4, -0.5, 0.5, 0.5, 0.5}
|
||||
definition.onplace_position_adj = -0.1
|
||||
definition.inventory_image = "car_f1_inventory.png"
|
||||
definition.wield_image = "car_f1_wield.png"
|
||||
definition.textures = {"car_f1.png"}
|
||||
-- player specific stuff
|
||||
definition.driver_attach_at = {x=0,y=8,z=0}
|
||||
-- recipe
|
||||
definition.recipe = {}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -63,7 +63,7 @@ local function DetachPlayer(self, clicker, is_driver)
|
||||
return nil
|
||||
end
|
||||
|
||||
function vehicle_mash:register_vehicle(name, def)
|
||||
function vehicle_mash.register_vehicle(name, def)
|
||||
minetest.register_entity(name, {
|
||||
collisionbox = def.collisionbox,
|
||||
is_boat = def.is_boat,
|
||||
@ -315,11 +315,3 @@ function vehicle_mash:register_vehicle(name, def)
|
||||
-- recipe = def.recipe
|
||||
-- })
|
||||
end
|
||||
|
||||
function vehicle_mash_table_copy(tbl)
|
||||
local tbl2 = {}
|
||||
for k,v in pairs(tbl) do
|
||||
tbl2[k]=v
|
||||
end
|
||||
return tbl2
|
||||
end
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_green"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Green car"
|
||||
definition.inventory_image = "inv_car_green.png"
|
||||
definition.wield_image = "inv_car_green.png"
|
||||
definition.textures = {"car_green.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
4
grey.lua
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_grey"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Grey car"
|
||||
definition.inventory_image = "inv_car_grey.png"
|
||||
definition.wield_image = "inv_car_grey.png"
|
||||
definition.textures = {"car_grey.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_hot_rod"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Hot Rod car"
|
||||
definition.inventory_image = "inv_car_red.png"
|
||||
definition.wield_image = "inv_car_red.png"
|
||||
definition.textures = {"hot_rod.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -29,4 +29,4 @@ local definition = {
|
||||
recipe = {}
|
||||
}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
155
init.lua
@ -1,45 +1,133 @@
|
||||
|
||||
-- settings
|
||||
|
||||
-- end settings
|
||||
|
||||
-- get mod path
|
||||
local mpath = minetest.get_modpath("vehicle_mash")
|
||||
|
||||
-- load framework
|
||||
dofile(mpath.."/framework.lua")
|
||||
|
||||
|
||||
-- ***********************
|
||||
-- load vehicles down here
|
||||
-- ***********************
|
||||
|
||||
-- Cars
|
||||
dofile(mpath.."/126r.lua")
|
||||
dofile(mpath.."/f1.lua")
|
||||
dofile(mpath.."/car01_def.lua")
|
||||
dofile(mpath.."/black.lua")
|
||||
dofile(mpath.."/blue.lua")
|
||||
dofile(mpath.."/brown.lua")
|
||||
dofile(mpath.."/cyan.lua")
|
||||
dofile(mpath.."/dark_green.lua")
|
||||
dofile(mpath.."/dark_grey.lua")
|
||||
dofile(mpath.."/green.lua")
|
||||
dofile(mpath.."/grey.lua")
|
||||
dofile(mpath.."/magenta.lua")
|
||||
dofile(mpath.."/orange.lua")
|
||||
dofile(mpath.."/pink.lua")
|
||||
dofile(mpath.."/red.lua")
|
||||
dofile(mpath.."/violet.lua")
|
||||
dofile(mpath.."/white.lua")
|
||||
dofile(mpath.."/yellow.lua")
|
||||
dofile(mpath.."/hot_rod.lua")
|
||||
dofile(mpath.."/nyan_ride.lua")
|
||||
dofile(mpath.."/oerkki_bliss.lua")
|
||||
dofile(mpath.."/road_master.lua")
|
||||
dofile(mpath.."/mese_blue.lua")
|
||||
dofile(mpath.."/mese_pink.lua")
|
||||
dofile(mpath.."/mese_purple.lua")
|
||||
-- ** 126r and F1 **
|
||||
------------------------------------------------------------------------------
|
||||
-- create Cars common def
|
||||
local cars_def = {
|
||||
--model specific stuff
|
||||
is_boat = false,
|
||||
visual = "mesh",
|
||||
visual_size = {x=1, y=1},
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
--player specific stuff
|
||||
player_rotation = {x=0,y=90,z=0},
|
||||
driver_eye_offset = {x=0, y=0, z=0},
|
||||
number_of_passengers = 0,
|
||||
passenger_attach_at = {x=0,y=0,z=0},
|
||||
passenger_eye_offset = {x=0, y=0, z=0},
|
||||
--drop
|
||||
drop_on_destroy = ""
|
||||
}
|
||||
|
||||
-- change definition values in the following files if
|
||||
-- you want a specific vehicle to act differently
|
||||
loadfile(mpath.."/126r.lua")(table.copy(cars_def))
|
||||
loadfile(mpath.."/f1.lua")(table.copy(cars_def))
|
||||
|
||||
|
||||
-- ** CAR01s **
|
||||
------------------------------------------------------------------------------
|
||||
-- create CAR01 common def
|
||||
local car01_def = {
|
||||
--adjust to change how vehicle reacts while driving
|
||||
max_speed_forward = 10,
|
||||
max_speed_reverse = 5,
|
||||
accel = 2,
|
||||
braking = 4,
|
||||
turn_speed = 2,
|
||||
stepheight = 1.1,
|
||||
--model specific stuff
|
||||
is_boat = false,
|
||||
visual = "mesh",
|
||||
mesh = "car.x",
|
||||
visual_size = {x=1, y=1},
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
collisionbox = {-0.6, -0.05, -0.6, 0.6, 1, 0.6},
|
||||
onplace_position_adj = -0.45,
|
||||
--player specific stuff
|
||||
player_rotation = {x=0,y=90,z=0},
|
||||
driver_attach_at = {x=3.5,y=12,z=3.5},
|
||||
driver_eye_offset = {x=-4, y=0, z=0},
|
||||
number_of_passengers = 1,
|
||||
passenger_attach_at = {x=3.5,y=12,z=-3.5},
|
||||
passenger_eye_offset = {x=4, y=0, z=0},
|
||||
--drop and recipe
|
||||
drop_on_destroy = "",
|
||||
recipe = {}
|
||||
}
|
||||
|
||||
-- change definition values in the following files if
|
||||
-- you want a specific vehicle to act differently
|
||||
loadfile(mpath.."/black.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/blue.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/brown.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/cyan.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/dark_green.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/dark_grey.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/green.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/grey.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/magenta.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/orange.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/pink.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/red.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/violet.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/white.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/yellow.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/hot_rod.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/nyan_ride.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/oerkki_bliss.lua")(table.copy(car01_def))
|
||||
loadfile(mpath.."/road_master.lua")(table.copy(car01_def))
|
||||
|
||||
|
||||
-- ** MeseCars **
|
||||
------------------------------------------------------------------------------
|
||||
-- create Mesecar common def
|
||||
local mese_def = {
|
||||
--adjust to change how vehicle reacts while driving
|
||||
max_speed_forward = 15,
|
||||
max_speed_reverse = 7,
|
||||
accel = 3,
|
||||
braking = 6,
|
||||
turn_speed = 4,
|
||||
stepheight = 0.6,
|
||||
--model specific stuff
|
||||
is_boat = false,
|
||||
visual = "cube",
|
||||
mesh = "",
|
||||
visual_size = {x=1.5, y=1.5},
|
||||
--visual = "mesh",
|
||||
--mesh = "mesecar.b3d",
|
||||
--visual_size = {x=0.5, y=0.5},
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
onplace_position_adj = 0.2,
|
||||
--player specific stuff
|
||||
player_rotation = {x=0,y=0,z=0},
|
||||
driver_attach_at = {x=0,y=0,z=0},
|
||||
driver_eye_offset = {x=0, y=0, z=0},
|
||||
number_of_passengers = 0,
|
||||
passenger_attach_at = {x=0,y=0,z=0},
|
||||
passenger_eye_offset = {x=0, y=0, z=0},
|
||||
--drop
|
||||
drop_on_destroy = ""
|
||||
}
|
||||
|
||||
-- change definition values in the following files if
|
||||
-- you want a specific vehicle to act differently
|
||||
loadfile(mpath.."/mese_blue.lua")(table.copy(mese_def))
|
||||
loadfile(mpath.."/mese_pink.lua")(table.copy(mese_def))
|
||||
loadfile(mpath.."/mese_purple.lua")(table.copy(mese_def))
|
||||
loadfile(mpath.."/mese_Yellow.lua")(table.copy(mese_def))
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
-- Boats
|
||||
dofile(mpath.."/boat.lua")
|
||||
@ -47,3 +135,8 @@ dofile(mpath.."/rowboat.lua")
|
||||
|
||||
-- Hovercraft
|
||||
--dofile(mpath.."/hover_blue.lua")
|
||||
|
||||
-- free unneeded global(s)
|
||||
core.after(10, function()
|
||||
vehicle_mash.register_vehicle = nil
|
||||
end)
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_magenta"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Magenta car"
|
||||
definition.inventory_image = "inv_car_magenta.png"
|
||||
definition.wield_image = "inv_car_magenta.png"
|
||||
definition.textures = {"car_magenta.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,39 +1,18 @@
|
||||
|
||||
local name = "mesecar_blue"
|
||||
local definition = ...
|
||||
|
||||
local definition = {
|
||||
description = "Mesecar blue",
|
||||
collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75},
|
||||
onplace_position_adj = 0.25,
|
||||
is_boat = false,
|
||||
player_rotation = {x=0,y=90,z=0},
|
||||
driver_attach_at = {x=-2.1,y=3,z=0},
|
||||
driver_eye_offset = {x=0, y=0, z=0},
|
||||
number_of_passengers = 0,
|
||||
passenger_attach_at = {x=0,y=0,z=0},
|
||||
passenger_eye_offset = {x=0, y=0, z=0},
|
||||
inventory_image = "mesecar_car1front.png",
|
||||
wield_image = "mesecar_car1front.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
visual = "cube",
|
||||
mesh = "",
|
||||
textures = {
|
||||
definition.description = "Blue Mesecar"
|
||||
definition.inventory_image = "mesecar_car1front.png"
|
||||
definition.wield_image = "mesecar_car1front.png"
|
||||
definition.textures = {
|
||||
"mesecar_car1top.png",
|
||||
"mesecar_carbase.png",
|
||||
"mesecar_car1front.png",
|
||||
"mesecar_car1back.png",
|
||||
"mesecar_car1rightside.png",
|
||||
"mesecar_car1leftside.png",
|
||||
"mesecar_car1rightside.png"
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
stepheight = 0.6,
|
||||
max_speed_forward = 20,
|
||||
max_speed_reverse = 10,
|
||||
accel = 2,
|
||||
braking = 4,
|
||||
turn_speed = 2,
|
||||
drop_on_destroy = "",
|
||||
recipe = {}
|
||||
"mesecar_car1front.png",
|
||||
"mesecar_car1back.png"
|
||||
}
|
||||
definition.recipe = {}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,39 +1,18 @@
|
||||
|
||||
local name = "mesecar_pink"
|
||||
local definition = ...
|
||||
|
||||
local definition = {
|
||||
description = "Mesecar pink",
|
||||
collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75},
|
||||
onplace_position_adj = 0.25,
|
||||
is_boat = false,
|
||||
player_rotation = {x=0,y=90,z=0},
|
||||
driver_attach_at = {x=-2.1,y=3,z=0},
|
||||
driver_eye_offset = {x=0, y=0, z=0},
|
||||
number_of_passengers = 0,
|
||||
passenger_attach_at = {x=0,y=0,z=0},
|
||||
passenger_eye_offset = {x=0, y=0, z=0},
|
||||
inventory_image = "mesecar_car3front.png",
|
||||
wield_image = "mesecar_car3front.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
visual = "cube",
|
||||
mesh = "",
|
||||
textures = {
|
||||
definition.description = "Pink Mesecar"
|
||||
definition.inventory_image = "mesecar_car3front.png"
|
||||
definition.wield_image = "mesecar_car3front.png"
|
||||
definition.textures = {
|
||||
"mesecar_car3top.png",
|
||||
"mesecar_carbase.png",
|
||||
"mesecar_car3front.png",
|
||||
"mesecar_car3back.png",
|
||||
"mesecar_car3rightside.png",
|
||||
"mesecar_car3leftside.png",
|
||||
"mesecar_car3rightside.png"
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
stepheight = 0.6,
|
||||
max_speed_forward = 20,
|
||||
max_speed_reverse = 10,
|
||||
accel = 2,
|
||||
braking = 4,
|
||||
turn_speed = 2,
|
||||
drop_on_destroy = "",
|
||||
recipe = {}
|
||||
"mesecar_car3front.png",
|
||||
"mesecar_car3back.png"
|
||||
}
|
||||
definition.recipe = {}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,39 +1,18 @@
|
||||
|
||||
local name = "mesecar_purple"
|
||||
local definition = ...
|
||||
|
||||
local definition = {
|
||||
description = "Mesecar purple",
|
||||
collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75},
|
||||
onplace_position_adj = 0.25,
|
||||
is_boat = false,
|
||||
player_rotation = {x=0,y=90,z=0},
|
||||
driver_attach_at = {x=-2.1,y=3,z=0},
|
||||
driver_eye_offset = {x=0, y=0, z=0},
|
||||
number_of_passengers = 0,
|
||||
passenger_attach_at = {x=0,y=0,z=0},
|
||||
passenger_eye_offset = {x=0, y=0, z=0},
|
||||
inventory_image = "mesecar_car2front.png",
|
||||
wield_image = "mesecar_car2front.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
visual = "cube",
|
||||
mesh = "",
|
||||
textures = {
|
||||
definition.description = "Purple Mesecar"
|
||||
definition.inventory_image = "mesecar_car2front.png"
|
||||
definition.wield_image = "mesecar_car2front.png"
|
||||
definition.textures = {
|
||||
"mesecar_car2top.png",
|
||||
"mesecar_carbase.png",
|
||||
"mesecar_car2front.png",
|
||||
"mesecar_car2back.png",
|
||||
"mesecar_car2rightside.png",
|
||||
"mesecar_car2leftside.png",
|
||||
"mesecar_car2rightside.png"
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
stepheight = 0.6,
|
||||
max_speed_forward = 20,
|
||||
max_speed_reverse = 10,
|
||||
accel = 2,
|
||||
braking = 4,
|
||||
turn_speed = 2,
|
||||
drop_on_destroy = "",
|
||||
recipe = {}
|
||||
"mesecar_car2front.png",
|
||||
"mesecar_car2back.png"
|
||||
}
|
||||
definition.recipe = {}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
18
mese_yellow.lua
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
local name = "mesecar_yellow"
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Yellow Mesecar"
|
||||
definition.inventory_image = "mesecar_car4front.png"
|
||||
definition.wield_image = "mesecar_car4front.png"
|
||||
definition.textures = {
|
||||
"mesecar_car4top.png",
|
||||
"mesecar_carbase.png",
|
||||
"mesecar_car4rightside.png",
|
||||
"mesecar_car4leftside.png",
|
||||
"mesecar_car4front.png",
|
||||
"mesecar_car4back.png"
|
||||
}
|
||||
definition.recipe = {}
|
||||
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
Before Width: | Height: | Size: 139 KiB |
5028
models/car_f1_2.x
Before Width: | Height: | Size: 125 KiB |
@ -1,32 +1,10 @@
|
||||
|
||||
local name = "car_nyan_ride"
|
||||
local definition = ...
|
||||
|
||||
local definition = {
|
||||
description = "Nyan Ride car",
|
||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
||||
onplace_position_adj = -0.45,
|
||||
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 = {"nyan_ride.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 = {}
|
||||
}
|
||||
definition.description = "Nyan Ride car"
|
||||
definition.inventory_image = "inv_car_pink.png"
|
||||
definition.wield_image = "inv_car_pink.png"
|
||||
definition.textures = {"nyan_ride.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,32 +1,10 @@
|
||||
|
||||
local name = "car_oerkki_bliss"
|
||||
local definition = ...
|
||||
|
||||
local definition = {
|
||||
description = "Oerkki Bliss car",
|
||||
collisionbox = {-0.4, -0.05, -0.4, 0.4, 1.5, 0.4},
|
||||
onplace_position_adj = -0.45,
|
||||
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 = {"oerkki_bliss.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 = {}
|
||||
}
|
||||
definition.description = "Oerkki Bliss car"
|
||||
definition.inventory_image = "inv_car_black.png"
|
||||
definition.wield_image = "inv_car_black.png"
|
||||
definition.textures = {"oerkki_bliss.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_orange"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Orange car"
|
||||
definition.inventory_image = "inv_car_orange.png"
|
||||
definition.wield_image = "inv_car_orange.png"
|
||||
definition.textures = {"car_orange.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
4
pink.lua
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_pink"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Pink car"
|
||||
definition.inventory_image = "inv_car_pink.png"
|
||||
definition.wield_image = "inv_car_pink.png"
|
||||
definition.textures = {"car_pink.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
4
red.lua
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_red"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Red car"
|
||||
definition.inventory_image = "inv_car_red.png"
|
||||
definition.wield_image = "inv_car_red.png"
|
||||
definition.textures = {"car_red.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_road_master"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Road Master car"
|
||||
definition.inventory_image = "inv_car_brown.png"
|
||||
definition.wield_image = "inv_car_brown.png"
|
||||
definition.textures = {"road_master.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -33,4 +33,4 @@ local definition = {
|
||||
}
|
||||
}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -29,4 +29,4 @@ local definition = {
|
||||
}
|
||||
|
||||
-- nothing to change down here
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 183 B |
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 193 B |
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 145 B After Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 283 B |
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 241 B |
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 145 B After Width: | Height: | Size: 167 B |
BIN
textures/mesecar_car4back.png
Normal file
After Width: | Height: | Size: 202 B |
BIN
textures/mesecar_car4front.png
Normal file
After Width: | Height: | Size: 212 B |
BIN
textures/mesecar_car4leftside.png
Normal file
After Width: | Height: | Size: 259 B |
BIN
textures/mesecar_car4rightside.png
Normal file
After Width: | Height: | Size: 258 B |
BIN
textures/mesecar_car4top.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/mesetest.png
Normal file
After Width: | Height: | Size: 23 KiB |
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_violet"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Violet car"
|
||||
definition.inventory_image = "inv_car_violet.png"
|
||||
definition.wield_image = "inv_car_violet.png"
|
||||
definition.textures = {"car_violet.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_white"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "White car"
|
||||
definition.inventory_image = "inv_car_white.png"
|
||||
definition.wield_image = "inv_car_white.png"
|
||||
definition.textures = {"car_white.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
local name = "car_yellow"
|
||||
local definition = vehicle_mash_table_copy(vehicle_mash.car01_definition)
|
||||
local definition = ...
|
||||
|
||||
definition.description = "Yellow car"
|
||||
definition.inventory_image = "inv_car_yellow.png"
|
||||
definition.wield_image = "inv_car_yellow.png"
|
||||
definition.textures = {"car_yellow.png"}
|
||||
|
||||
vehicle_mash:register_vehicle("vehicle_mash:"..name, definition)
|
||||
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
||||
|