From 875eb90acbc07636a02d28f8002e369b631eb961 Mon Sep 17 00:00:00 2001 From: mbb Date: Thu, 7 Dec 2017 21:29:17 +0100 Subject: Improve textures and models of industrial train and add new more powerful industrial engine --- advtrains_train_industrial/init.lua | 50 ++++++++++++++++++--- .../models/advtrains_engine_industrial.b3d | Bin 143659 -> 138641 bytes .../models/advtrains_engine_industrial_big.b3d | Bin 0 -> 283441 bytes .../models/advtrains_wagon_tank.b3d | Bin 223975 -> 155412 bytes .../models/advtrains_wagon_wood.b3d | Bin 193975 -> 182813 bytes .../sounds/advtrains_industrial_horn.ogg | Bin 24325 -> 54380 bytes .../textures/advtrains_engine_industrial.png | Bin 59019 -> 23044 bytes .../textures/advtrains_engine_industrial_big.png | Bin 0 -> 23765 bytes .../textures/advtrains_wagon_tank.png | Bin 8975 -> 23411 bytes .../textures/advtrains_wagon_wood.png | Bin 5974 -> 21622 bytes 10 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 advtrains_train_industrial/models/advtrains_engine_industrial_big.b3d create mode 100644 advtrains_train_industrial/textures/advtrains_engine_industrial_big.png diff --git a/advtrains_train_industrial/init.lua b/advtrains_train_industrial/init.lua index 42804f3..a60bf74 100644 --- a/advtrains_train_industrial/init.lua +++ b/advtrains_train_industrial/init.lua @@ -13,22 +13,23 @@ advtrains.register_wagon("engine_industrial", { max_speed=20, seats = { { - name=S("Driver Stand (left)"), - attach_offset={x=-5, y=10, z=-10}, - view_offset={x=0, y=10, z=0}, + name=S("Driver Stand (right)"), + attach_offset={x=5, y=7, z=-8}, + view_offset={x=5.2, y=-4, z=0}, driving_ctrl_access=true, group = "dstand", }, { - name=S("Driver Stand (right)"), - attach_offset={x=5, y=10, z=-10}, - view_offset={x=0, y=10, z=0}, + name=S("Driver Stand (left)"), + attach_offset={x=5, y=7, z=-8}, + view_offset={x=-5.2, y=-4, z=0}, driving_ctrl_access=true, group = "dstand", }, }, seat_groups = { dstand={ + name = "Driver Stand", access_to = {}, }, @@ -41,6 +42,43 @@ advtrains.register_wagon("engine_industrial", { drops={"default:steelblock 4"}, horn_sound = "advtrains_industrial_horn", }, S("Industrial Train Engine"), "advtrains_engine_industrial_inv.png") +--big-- +advtrains.register_wagon("engine_industrial_big", { + mesh="advtrains_engine_industrial_big.b3d", + textures = {"advtrains_engine_industrial_big.png"}, + drives_on={default=true}, + max_speed=30, + seats = { + { + name=S("Driver Stand (right)"), + attach_offset={x=5, y=7, z=20}, + view_offset={x=5.2, y=-4, z=11}, + driving_ctrl_access=true, + group = "dstand", + }, + { + name=S("Driver Stand (left)"), + attach_offset={x=5, y=7, z=-8}, + view_offset={x=-5.2, y=-4, z=0}, + driving_ctrl_access=true, + group = "dstand", + }, + }, + seat_groups = { + dstand={ + + name = "Driver Stand", + access_to = {}, + }, + }, + assign_to_seat_group = {"dstand"}, + visual_size = {x=1, y=1}, + wagon_span=4, + is_locomotive=true, + collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, + drops={"default:steelblock 4"}, + horn_sound = "advtrains_industrial_horn", +}, S("Big Industrial Train Engine"), "advtrains_engine_industrial_inv.png") advtrains.register_wagon("wagon_tank", { mesh="advtrains_wagon_tank.b3d", textures = {"advtrains_wagon_tank.png"}, diff --git a/advtrains_train_industrial/models/advtrains_engine_industrial.b3d b/advtrains_train_industrial/models/advtrains_engine_industrial.b3d index f1ea485..58010c7 100644 Binary files a/advtrains_train_industrial/models/advtrains_engine_industrial.b3d and b/advtrains_train_industrial/models/advtrains_engine_industrial.b3d differ diff --git a/advtrains_train_industrial/models/advtrains_engine_industrial_big.b3d b/advtrains_train_industrial/models/advtrains_engine_industrial_big.b3d new file mode 100644 index 0000000..e8a50a2 Binary files /dev/null and b/advtrains_train_industrial/models/advtrains_engine_industrial_big.b3d differ diff --git a/advtrains_train_industrial/models/advtrains_wagon_tank.b3d b/advtrains_train_industrial/models/advtrains_wagon_tank.b3d index af2604b..4f28d6c 100644 Binary files a/advtrains_train_industrial/models/advtrains_wagon_tank.b3d and b/advtrains_train_industrial/models/advtrains_wagon_tank.b3d differ diff --git a/advtrains_train_industrial/models/advtrains_wagon_wood.b3d b/advtrains_train_industrial/models/advtrains_wagon_wood.b3d index 0e7fb4b..023bf9a 100644 Binary files a/advtrains_train_industrial/models/advtrains_wagon_wood.b3d and b/advtrains_train_industrial/models/advtrains_wagon_wood.b3d differ diff --git a/advtrains_train_industrial/sounds/advtrains_industrial_horn.ogg b/advtrains_train_industrial/sounds/advtrains_industrial_horn.ogg index 2bc42c2..e8f31b3 100644 Binary files a/advtrains_train_industrial/sounds/advtrains_industrial_horn.ogg and b/advtrains_train_industrial/sounds/advtrains_industrial_horn.ogg differ diff --git a/advtrains_train_industrial/textures/advtrains_engine_industrial.png b/advtrains_train_industrial/textures/advtrains_engine_industrial.png index 38a872f..ac81bc7 100644 Binary files a/advtrains_train_industrial/textures/advtrains_engine_industrial.png and b/advtrains_train_industrial/textures/advtrains_engine_industrial.png differ diff --git a/advtrains_train_industrial/textures/advtrains_engine_industrial_big.png b/advtrains_train_industrial/textures/advtrains_engine_industrial_big.png new file mode 100644 index 0000000..0fcdc94 Binary files /dev/null and b/advtrains_train_industrial/textures/advtrains_engine_industrial_big.png differ diff --git a/advtrains_train_industrial/textures/advtrains_wagon_tank.png b/advtrains_train_industrial/textures/advtrains_wagon_tank.png index 79b1316..01100bf 100644 Binary files a/advtrains_train_industrial/textures/advtrains_wagon_tank.png and b/advtrains_train_industrial/textures/advtrains_wagon_tank.png differ diff --git a/advtrains_train_industrial/textures/advtrains_wagon_wood.png b/advtrains_train_industrial/textures/advtrains_wagon_wood.png index acc6f72..145dcd8 100644 Binary files a/advtrains_train_industrial/textures/advtrains_wagon_wood.png and b/advtrains_train_industrial/textures/advtrains_wagon_wood.png differ -- cgit v1.2.3