2017-09-18 07:19:27 -05:00
|
|
|
|
|
|
|
carts = {}
|
|
|
|
carts.modpath = minetest.get_modpath("carts")
|
|
|
|
carts.railparams = {}
|
|
|
|
|
|
|
|
-- Maximal speed of the cart in m/s (min = -1)
|
|
|
|
carts.speed_max = 7
|
|
|
|
-- Set to -1 to disable punching the cart from inside (min = -1)
|
|
|
|
carts.punch_speed_max = 5
|
2019-03-29 22:57:13 -04:00
|
|
|
-- Maximal distance for the path correction (for dtime peaks)
|
|
|
|
carts.path_distance_max = 3
|
2017-09-18 07:19:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
dofile(carts.modpath.."/functions.lua")
|
|
|
|
dofile(carts.modpath.."/rails.lua")
|
|
|
|
dofile(carts.modpath.."/cart_entity.lua")
|