diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-12-22 18:55:10 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-12-22 18:55:10 +0100 |
commit | d08e202346192c50072450a3eaa3b28cad852b84 (patch) | |
tree | fcb449a63df2c21178fba742d2121cb98c0ff6ab /advtrains_train_industrial | |
parent | f806ed9eee8c13eb0b4868641311d25257c63f46 (diff) | |
download | advtrains-d08e202346192c50072450a3eaa3b28cad852b84.tar.gz advtrains-d08e202346192c50072450a3eaa3b28cad852b84.tar.bz2 advtrains-d08e202346192c50072450a3eaa3b28cad852b84.zip |
remove train type concept and calculate train's capabilities based on used wagons
Diffstat (limited to 'advtrains_train_industrial')
-rw-r--r-- | advtrains_train_industrial/init.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/advtrains_train_industrial/init.lua b/advtrains_train_industrial/init.lua index 93c75af..379832c 100644 --- a/advtrains_train_industrial/init.lua +++ b/advtrains_train_industrial/init.lua @@ -1,6 +1,8 @@ -advtrains.register_wagon("engine_industrial", "electric",{ +advtrains.register_wagon("engine_industrial", { mesh="advtrains_engine_industrial.b3d", textures = {"advtrains_engine_industrial.png"}, + drives_on={default=true}, + max_speed=20, seats = { { name="Driver Stand (left)", @@ -21,10 +23,12 @@ advtrains.register_wagon("engine_industrial", "electric",{ collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, drops={"default:steelblock 4"}, }, "Industrial Train Engine", "advtrains_engine_industrial_inv.png") -advtrains.register_wagon("wagon_tank", "electric",{ +advtrains.register_wagon("wagon_tank", { mesh="advtrains_wagon_tank.b3d", textures = {"advtrains_wagon_tank.png"}, seats = {}, + drives_on={default=true}, + max_speed=20, visual_size = {x=1, y=1}, wagon_span=2.2, collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, @@ -40,10 +44,12 @@ advtrains.register_wagon("wagon_tank", "electric",{ box=8*6, }, }, "Industrial tank wagon", "advtrains_wagon_tank_inv.png") -advtrains.register_wagon("wagon_wood", "electric",{ +advtrains.register_wagon("wagon_wood", { mesh="advtrains_wagon_wood.b3d", textures = {"advtrains_wagon_wood.png"}, seats = {}, + drives_on={default=true}, + max_speed=20, visual_size = {x=1, y=1}, wagon_span=1.8, collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, |