From dc67ff7226a2836863a0e709a5b81c90c977f288 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 6 Dec 2017 13:23:55 +0100 Subject: Implement sound api and some sounds - Level crossing bell - Horns - Subway train driving and door sounds ...to be continued... --- advtrains/api_doc.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'advtrains/api_doc.txt') diff --git a/advtrains/api_doc.txt b/advtrains/api_doc.txt index e86f16b..c944e30 100644 --- a/advtrains/api_doc.txt +++ b/advtrains/api_doc.txt @@ -57,10 +57,14 @@ advtrains.register_wagon(name, prototype, description, inventory_image) open={ [-1]={frames={x=0, y=20}, time=1}, -- open left doors [1]={frames={x=40, y=60}, time=1} -- open right doors + sound = + ^- The sound file of the doors opening. If none is specified, nothing is played. }, close={ [-1]={frames={x=20, y=40}, time=1}, -- close left doors [1]={frames={x=60, y=80}, time=1} -- close right doors + sound = + ^- The sound file of the doors closing. If none is specified, nothing is played. } }, door_entry={ 1.5, -1.5 } @@ -77,6 +81,8 @@ advtrains.register_wagon(name, prototype, description, inventory_image) extent_v = 2, ^- Determines the collision box extent in y direction. Defaults to 2 (=3). ^- The actual bounding box size is extent_v+1, so 0 means 1, 1 means 2, 2 means 3 a.s.o. + horn_sound = , + ^- The sound file of the horn. If none is specified, this wagon can't sound a horn. The specified sound file will be looped. drops = {"default:steelblock 3"} ^- List of itemstrings what to drop when the wagon is destroyed -- cgit v1.2.3