Fix sounds so right closing doors sound like they're closing, also add
support for mesecons to both doors and gates.
TODO: handle already placed doors better
Just a minimal code reduction, but big reduction in code
duplication. This could help if in the future, support for
different "internationalization" mods will be added, or in
case Minetest supports I18N/L10N internally in the engine.
To enable, uncomment "use_texture_alpha" on lines 72 and 99 of
doors_and_gates.lua, and make sure that if you are using a texture pack,
that it has support for alpha on these doors. (HDX does, as do the
default textures).
Note that alpha support is glitchy - without shaders it will not work at all,
and the doors' nodeboxes will be screwed up. With shaders, it mostly works,
but the whole door is slightly translucent where it should not be.
Dropped support for punching doors to open them - only right-click now.
Moved gates out of fences and into doors file, renamed that file to
doors_and_gates.lua.
Changed gates to also use right click to open, and in the process
completely rewrote how gates are defined and managed; this necessitated
creating some duplicate textures. Some of them are blank, and texture
pack authors may find the extra filenames useful anyway.
Node names for all gates have changed, aliases are provided for backward
compatibility.