First commit

This commit is contained in:
blert2112 2015-05-06 00:13:25 -04:00
parent 1468413f87
commit 178a52cb6c
45 changed files with 7348 additions and 53 deletions

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_126r", {
description = "126r car",
is_boat = false,
player_attach_at = {x=-2,y=10,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.25,
drop_on_destroy = "",
recipe = {},
inventory_image = "car_126r_inventory.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_126r", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car_126r.x",
visual_size = {x=2, y=2},
visual_size = {x=1, y=1},
textures = {"car_126r.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_126r", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1/2, -1/2, -1/2, 1/2, 1/2, 1/2},
collisionbox = {-0.6, -0.25, -0.3, 0.6, 1/2, 0.3},
-- back, bottom, port, front, top, starboard
})

View File

@ -1,5 +1,5 @@
***Vehicles_mash***
- version: 1.2
- version: 1.3
- by blert2112
A merge of all the vehicles from:
@ -7,8 +7,9 @@ A merge of all the vehicles from:
- "Mesecars" by paramat
- "Car" by Esteban
- "Boats" by PilzAdam
- "Hovercraft" by Stuart Jones (experimental and disabled by default)
- 26 vehicles currently
- 26 vehicles currently (27 if you include the experimental hovercraft)
- Disable vehicles by commenting out it's 'dofile' line in init.lua
- Adding new vehicles is a simple matter of:
- create/aquire vehicle model and textures
@ -27,10 +28,15 @@ As far as the work I did... It's really just a fork of a fork of a fork of a for
- Default
***To Do***
- make little guy sit straight forward
- complete the addition of the hovercraft
- crafting
***Change Log***
v1.3 5/5/2015
- player now sits forward in vehicles
- tweaked player sit positions
- tweaked collison boxes
- proper placement on_ground/in_water
v1.2 5/1/2015
- added boats
- changed name so to not conflict with other mods
@ -61,6 +67,9 @@ v1.0 4/24/2015
- model: thetoon and Zeg9, modified by PavelS(SokolovPavel)
- License: WTFPL
- Hovercraft from "Hovercraft" by Stuart Jones
Licenses: textures CC-BY-SA
I am sure many others deserve mention. If you feel left out let me know and I will add you in.
Enjoy!

View File

@ -60,7 +60,7 @@ function vehicle_mash:register_car(name, def)
default.player_set_animation(clicker, "stand" , 30)
elseif not self.driver then
self.driver = clicker
clicker:set_attach(self.object, "", {x=0,y=5,z=0}, {x=0,y=0,z=0})
clicker:set_attach(self.object, "", def.player_attach_at, def.player_rotation)
default.player_attached[pname] = true
minetest.after(0.2, function()
default.player_set_animation(clicker, "sit" , 30)
@ -159,6 +159,7 @@ function vehicle_mash:register_car(name, def)
local p = self.object:getpos()
local new_velo = {x = 0, y = 0, z = 0}
local new_acce = {x = 0, y = 0, z = 0}
if def.is_boat then
p.y = p.y - 0.5
if not is_water(p) then
@ -205,6 +206,7 @@ function vehicle_mash:register_car(name, def)
end
self.object:setvelocity(new_velo)
self.object:setacceleration(new_acce)
if def.is_boat then
-- if boat comes to sudden stop then it has crashed, destroy boat and drop 3x wood
if self.v2 - self.v >= 3 then
@ -232,13 +234,14 @@ function vehicle_mash:register_car(name, def)
if pointed_thing.type ~= "node" then
return
end
if liquids_pointable then
if def.is_boat then
if not is_water(pointed_thing.under) then
return
end
pointed_thing.under.y = pointed_thing.under.y + 0.5
minetest.add_entity(pointed_thing.under, name)
else
pointed_thing.above.y = pointed_thing.above.y + def.onplace_position_adj
minetest.env:add_entity(pointed_thing.above, name)
end
itemstack:take_item()

View File

@ -2,13 +2,16 @@ vehicle_mash:register_car("vehicle_mash:car_black", {
description = "Black car",
inventory_image = "inv_car_black.png",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
wield_image = "inv_car_black.png",
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_black.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_black", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_blue", {
description = "Blue car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_blue.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_blue", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_blue.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_blue", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,5 +1,7 @@
vehicle_mash:register_car("vehicle_mash:boat", {
description = "Boat",
attach_player_at = {x=0,y=11,z=-3},
player_rotation = {x=0,y=0,z=0},
is_boat = true,
drop_on_destroy = "default:wood 3",
inventory_image = "boat_inventory.png",

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_brown", {
description = "Brown car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_brown.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_brown", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_brown.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_brown", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_cyan", {
description = "Cyan car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_cyan.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_cyan", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_cyan.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_cyan", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_dark_green", {
description = "Dark green car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_dark_green.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_dark_green", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_dark_green.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_dark_green", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_dark_grey", {
description = "Dark grey car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_dark_grey.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_dark_grey", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_dark_grey.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_dark_grey", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

8
f1.lua
View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_f1", {
description = "F1 car",
is_boat = false,
player_attach_at = {x=-5,y=11,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.25,
drop_on_destroy = "",
recipe = {},
inventory_image = "car_f1_inventory.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_f1", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car_f1.x",
visual_size = {x=2, y=2},
visual_size = {x=1, y=1},
textures = {"car_f1.png"},
stepheight = 0.6, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_f1", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1/2, -1/2, -1/2, 1/2, 1/2, 1/2},
collisionbox = {-0.7, -0.25, -0.4, 0.7, 0.25, 0.4},
-- back, bottom, port, front, top, starboard
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_green", {
description = "Green car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_green.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_green", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_green.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_green", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_grey", {
description = "Grey car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_grey.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_grey", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_grey.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_grey", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_hot_rod", {
description = "Hot Rod car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_red.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_hot_rod", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"hot_rod.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_hot_rod", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

23
hover_blue.lua Normal file
View File

@ -0,0 +1,23 @@
vehicle_mash:register_car("vehicle_mash:hover_blue", {
description = "Blue hovercraft",
is_boat = false,
player_attach_at = {x=-2,y=16.5,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = 0,
drop_on_destroy = "",
recipe = {},
inventory_image = "hovercraft_blue_inv.png",
wield_image = "hovercraft_blue_inv.png",
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "hovercraft.x",
visual_size = {x=1, y=1},
textures = {"hovercraft_blue.png"},
stepheight = 0.6, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 12,
max_speed_reverse = 0,
accel = 2.5,
braking = 1,
turn_speed = 2,
collisionbox = {-0.8,0,-0.8, 0.8,1.2,0.8},
})

View File

@ -30,3 +30,6 @@ dofile(minetest.get_modpath("vehicle_mash").."/mese_purple.lua")
-- Boats
dofile(minetest.get_modpath("vehicle_mash").."/boat.lua")
dofile(minetest.get_modpath("vehicle_mash").."/rowboat.lua")
-- Hovercraft
--dofile(minetest.get_modpath("vehicle_mash").."/hover_blue.lua")

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_magenta", {
description = "Magenta car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_magenta.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_magenta", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_magenta.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_magenta", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,11 +1,14 @@
vehicle_mash:register_car("vehicle_mash:mesecar_blue", {
description = "Mesecar blue",
is_boat = false,
player_attach_at = {x=-2.1,y=3,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = 0.25,
drop_on_destroy = "",
recipe = {},
inventory_image = "mesecar_car1front.png",
wield_image = "mesecar_car1front.png",
wield_scale = {x=2, y=2, z=2},
wield_scale = {x=1, y=1, z=1},
visual = "cube",
mesh = "",
visual_size = {x=1.5, y=1.5},
@ -23,5 +26,5 @@ vehicle_mash:register_car("vehicle_mash:mesecar_blue", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-0.53, -0.75, -0.53, 0.53, 0.75, 0.53},
collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75},
})

View File

@ -1,11 +1,14 @@
vehicle_mash:register_car("vehicle_mash:mesecar_pink", {
description = "Mesecar pink",
is_boat = false,
player_attach_at = {x=-2.1,y=3,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = 0.25,
drop_on_destroy = "",
recipe = {},
inventory_image = "mesecar_car3front.png",
wield_image = "mesecar_car3front.png",
wield_scale = {x=2, y=2, z=2},
wield_scale = {x=1, y=1, z=1},
visual = "cube",
mesh = "",
visual_size = {x=1.5, y=1.5},
@ -23,5 +26,5 @@ vehicle_mash:register_car("vehicle_mash:mesecar_pink", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-0.53, -0.75, -0.53, 0.53, 0.75, 0.53},
collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75},
})

View File

@ -1,11 +1,14 @@
vehicle_mash:register_car("vehicle_mash:mesecar_purple", {
description = "Mesecar purple",
is_boat = false,
player_attach_at = {x=-2.1,y=3,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = 0.25,
drop_on_destroy = "",
recipe = {},
inventory_image = "mesecar_car2front.png",
wield_image = "mesecar_car2front.png",
wield_scale = {x=2, y=2, z=2},
wield_scale = {x=1, y=1, z=1},
visual = "cube",
mesh = "",
visual_size = {x=1.5, y=1.5},
@ -23,5 +26,5 @@ vehicle_mash:register_car("vehicle_mash:mesecar_purple", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-0.53, -0.75, -0.53, 0.53, 0.75, 0.53},
collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75},
})

5028
models/car_f1_2.x Normal file

File diff suppressed because it is too large Load Diff

BIN
models/hovercraft.blend Normal file

Binary file not shown.

2132
models/hovercraft.x Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_nyan_ride", {
description = "Nyan Ride car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_pink.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_nyan_ride", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"nyan_ride.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_nyan_ride", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_oerkki_bliss", {
description = "Oerkki Bliss car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_black.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_oerkki_bliss", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"oerkki_bliss.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_oerkki_bliss", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_orange", {
description = "Orange car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_orange.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_orange", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_orange.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_orange", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_pink", {
description = "Pink car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_pink.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_pink", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_pink.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_pink", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_red", {
description = "Red car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_red.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_red", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_red.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_red", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_road_master", {
description = "Road Master car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_brown.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_road_master", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"road_master.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_road_master", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,5 +1,7 @@
vehicle_mash:register_car("vehicle_mash:rowboat", {
description = "Rowboat",
attach_player_at = {x=0,y=11,z=-3},
player_rotation = {x=0,y=0,z=0},
is_boat = true,
drop_on_destroy = "default:wood 3",
recipe = {

Binary file not shown.

BIN
sounds/hovercraft_jump.ogg Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

BIN
textures/hovercraft_red.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 889 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 909 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_violet", {
description = "Violet car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_violet.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_violet", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_violet.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_violet", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_white", {
description = "White car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_white.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_white", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_white.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_white", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})

View File

@ -1,6 +1,9 @@
vehicle_mash:register_car("vehicle_mash:car_yellow", {
description = "Yellow car",
is_boat = false,
player_attach_at = {x=0,y=12,z=0},
player_rotation = {x=0,y=90,z=0},
onplace_position_adj = -0.45,
drop_on_destroy = "",
recipe = {},
inventory_image = "inv_car_yellow.png",
@ -8,7 +11,7 @@ vehicle_mash:register_car("vehicle_mash:car_yellow", {
wield_scale = {x=1, y=1, z=1},
visual = "mesh",
mesh = "car.x",
visual_size = {x=1.3, y=1.3},
visual_size = {x=1, y=1},
textures = {"car_yellow.png"},
stepheight = 1.1, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
max_speed_forward = 20,
@ -16,5 +19,6 @@ vehicle_mash:register_car("vehicle_mash:car_yellow", {
accel = 2,
braking = 4,
turn_speed = 2,
collisionbox = {-1.5, -0, -1.5, 1.5, 1, 1.5},
collisionbox = {-1.6, -0.05, -1.3, 1.0, 1, 0.5},
-- back, bottom, starboard, front, top, port
})