From fcee9bcec00604072d364f83926bba427cd1d30e Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Wed, 24 Jan 2018 00:48:42 +0300 Subject: icon and horn for the locomotive --- init.lua | 13 +++++++------ sounds/advtrains_engine_diesel_horn.ogg | Bin 0 -> 43447 bytes textures/advtrains_engine_diesel_inv.png | Bin 0 -> 292 bytes 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 sounds/advtrains_engine_diesel_horn.ogg create mode 100644 textures/advtrains_engine_diesel_inv.png diff --git a/init.lua b/init.lua index f9d79da..6e8d03e 100755 --- a/init.lua +++ b/init.lua @@ -36,7 +36,7 @@ advtrains.register_wagon("diesel_lokomotive", { }, assign_to_seat_group = {"dstand"}, visual_size = {x=1, y=1}, - wagon_span=1.85, + wagon_span=1.95, collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, update_animation=function(self, velocity) if self.old_anim_velocity~=advtrains.abs_ceil(velocity) then @@ -71,7 +71,8 @@ advtrains.register_wagon("diesel_lokomotive", { attached = self.object, }) end, - drops={"advtrains:engine_diesel"}, + drops={"advtrains:diesel_lokomotive"}, + horn_sound = "advtrains_engine_diesel_horn" }, S("diesel Engine"), "advtrains_engine_diesel_inv.png") advtrains.register_wagon("wagon_gravel", { @@ -81,7 +82,7 @@ advtrains.register_wagon("wagon_gravel", { max_speed=10, seats = {}, visual_size = {x=1, y=1}, - wagon_span=1.6, + wagon_span=1.55, collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0}, drops={"advtrains:wagon_gravel"}, has_inventory = true, @@ -103,7 +104,7 @@ advtrains.register_wagon("wagon_track", { max_speed=10, seats = {}, visual_size = {x=1, y=1}, - wagon_span=1.6, + wagon_span=1.55, collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0}, drops={"advtrains:wagon_track"}, has_inventory = true, @@ -127,7 +128,7 @@ advtrains.register_wagon("wagon_lava", { max_speed=10, seats = {}, visual_size = {x=1, y=1}, - wagon_span=1.6, + wagon_span=1.55, collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0}, drops={"advtrains:wagon_lava"}, has_inventory = true, @@ -150,7 +151,7 @@ advtrains.register_wagon("wagon_tree", { max_speed=10, seats = {}, visual_size = {x=1, y=1}, - wagon_span=1.6, + wagon_span=1.55, collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0}, drops={"advtrains:wagon_tree"}, has_inventory = true, diff --git a/sounds/advtrains_engine_diesel_horn.ogg b/sounds/advtrains_engine_diesel_horn.ogg new file mode 100644 index 0000000..6f2e66c Binary files /dev/null and b/sounds/advtrains_engine_diesel_horn.ogg differ diff --git a/textures/advtrains_engine_diesel_inv.png b/textures/advtrains_engine_diesel_inv.png new file mode 100644 index 0000000..cdb5f69 Binary files /dev/null and b/textures/advtrains_engine_diesel_inv.png differ -- cgit v1.2.3