Commit Graph

24 Commits

Author SHA1 Message Date
Vanessa Ezekowitz
b483733540 Move table copy function out of signs lib and into init.lua, make it global. 2013-10-27 22:51:56 -04:00
Cy
2ffd00909a Bug fixes
Can't use vector.new right now because it's got a bug when x/y/z == 0

Also making sure to use the word "level" not "levels" <_<
2013-10-27 19:27:19 -07:00
Cy
fcc7414716 Merge branch 'master' into HEAD
Conflicts:
	doors_and_gates.lua
2013-10-27 19:24:03 -07:00
Cy
2ab7484e93 Fix nodedef of open gates 2013-10-27 19:15:20 -07:00
Cy
8030b60178 Remove spammy debug messages 2013-10-27 18:35:53 -07:00
Cy
51e88d5d2d Detecting whether existing doors are closed
Got calculate closed working

Fixed isSolid, figured out when closed has not been set, added a way to reset closed by punching for debugging
2013-10-27 18:35:35 -07:00
Cy
47d98410b5 Mesecons support, fix sounds
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
2013-10-26 23:16:20 -07:00
kaeza
10cef3dda1 Use a single `intllib.Getter' for all the texts.
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.
2013-10-21 22:31:54 -02:00
Vanessa Ezekowitz
e4c02a82d6 Split ownership checking and 6d facedir into separate files. Changed
related functions to use homedecor: and lib_6d: namespaces, as
necessary, instead of simple "homedecor_" name prefixes.
2013-10-13 13:20:42 -04:00
Vanessa Ezekowitz
e04a0e5e4f changed all "homedecor_" variable and function names to "homedecor."
(underscore -> period).  Similarly for intllib calls and the DEBUG variable.
2013-10-09 12:47:22 -04:00
Vanessa Ezekowitz
2550672352 Replaced most uses of get_modpath() with variables cached at the top of init.lua 2013-10-09 12:27:49 -04:00
Vanessa Ezekowitz
f383207166 limited door alpha usage to just the exterior fancy door
since it's the only one that actually needs it.
2013-07-14 17:56:00 -04:00
Vanessa Ezekowitz
2efa203185 Phased out all deprecated minetest.env:* uses in favor of minetest.* 2013-06-30 23:55:07 -04:00
Vanessa Ezekowitz
333a74418f corrected the syntax of the sound play commands for gates/doors 2013-06-09 20:02:07 -04:00
Vanessa Ezekowitz
1e6ba1103b fixed missing itemstack fields in on_rightclick calls in lights/doors 2013-06-07 13:33:37 -04:00
Vanessa Ezekowitz
35eaadfb8a Made all gates open/close any gates above and/or below if same type.
Reduced hear distance for doors and gates
2013-06-05 16:46:59 -04:00
Vanessa Ezekowitz
b5d319d3e5 Fixed a node replacement bug in doors
rewrote and streamlined the doors code in the process
also fixed missing detection of infinite stacks (e.g. default creative mode)
2013-04-29 07:07:05 -04:00
Vanessa Ezekowitz
68950ff4e1 reset sound gain to 1.0 for now, since larger values don't work anyway. 2013-04-29 05:32:54 -04:00
Vanessa Ezekowitz
0a0cf536a3 Added sounds to doors and gates 2013-04-29 05:27:18 -04:00
Vanessa Ezekowitz
ac25d1b851 Use homedecor_blanktile.png on the top face of bottom half of door and vice
versa.  Gets rid of the visual division between the two halves of the glass
door.
2013-04-28 01:59:48 -04:00
Vanessa Ezekowitz
b53043fa01 Made door alpha enabled by default - but you gotta be using shaders if
you are running an alpha-capable client!
2013-04-28 01:30:51 -04:00
Vanessa Ezekowitz
8f2090d3d3 Added experimental alpha support to fancy door, disabled by default.
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.
2013-04-27 06:51:38 -04:00
Vanessa Ezekowitz
276aac92c1 fixed broken gate recipes and a couple of swapped gate aliases. 2013-04-20 16:42:35 -04:00
Vanessa Ezekowitz
8fd34a9dc6 Several changes (see below)
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.
2013-04-20 00:11:31 -04:00