Commit Graph

62 Commits

Author SHA1 Message Date
thetaepsilon-gamedev 8e53526b54 new flow logic: abms.lua: rename neighbour output helper to better indicate lack of rotation support 2017-10-01 21:20:30 +01:00
thetaepsilon-gamedev 76ebd0a0e1 devices.lua: make fountains functional under new flow logic using new neighbour output helper 2017-10-01 21:17:05 +01:00
thetaepsilon-gamedev 667eeb7d09 new flow logic: abms.lua: generalise spigot output code to support arbitary neighbour lists 2017-10-01 21:04:07 +01:00
thetaepsilon-gamedev df3d54f58a move flowable registration for flow sensor to devices.lua near node definition 2017-10-01 18:34:55 +01:00
thetaepsilon-gamedev de44593b41 move flowable registration for airtight entry panel to devices.lua near node definition 2017-10-01 18:30:32 +01:00
thetaepsilon-gamedev 13383770ef move spigot behaviour registration to devices.lua 2017-10-01 18:18:47 +01:00
thetaepsilon-gamedev a1fc493de1 migrate flowable registration for valve nodes to devices.lua 2017-10-01 18:05:44 +01:00
thetaepsilon-gamedev e6b55028fc move pump flow logic registration to devices.lua 2017-10-01 17:36:03 +01:00
thetaepsilon-gamedev caacc2a261 devices.lua: create local variables for device node names in preparation for flow logic registration 2017-10-01 17:24:39 +01:00
thetaepsilon-gamedev d6dcd51302 devices.lua: replace calls to add_node() with swap_node() to preserve node metadata 2017-09-27 16:42:15 +01:00
Vanessa Ezekowitz f44993cd84 allow external devices to connect to pipes
and use that feature to handle most of the existing devices)
also, fix the "xray" glitch in the grating
2017-04-12 07:10:48 -04:00
Vanessa Ezekowitz 64b2611d8a prevent being able to place "loaded" and "on" items
(forces them to "empty" and "off")
2017-03-17 11:04:59 -04:00
Vanessa Ezekowitz e5ee0dee90 add turn-to-vertical handling to valve, flow sensor
reuse the code from entry panel
2017-03-17 10:07:34 -04:00
Vanessa Ezekowitz 88ad79163d add screwdriver rotation handling on most pipes-related nodes
caveats:  in order to cleanly handle the entry panel, valve, and sensor
I had to rotate the valve and sensor models 90 degrees
so that their in-/outlet pipes point the same direction as the
entry panel.

This also enables proper handling of a valve or sensor turned vertically.

Some objects have rotation disabled entirely (as flipping them over/around makes
no sense)

When a valve is rotated, it is turned off automatically, to work around a glitch in
the rotation code.
2017-03-17 10:07:34 -04:00
Vanessa Ezekowitz bd4a27d172 make valve and pump turn on/off via on_rightclick
(instead of on_punch)
2017-03-17 10:07:34 -04:00
Auke Kok 66cfc745e1 Squelch a warning if no mesecons. 2016-04-14 22:24:43 -07:00
Vanessa Ezekowitz f80dec1220 drop direct support for dedicated protection mods
just use minetest's standard protection functions instead

(leave it up to those protection mods to do their job properly)
2015-03-23 17:40:00 -04:00
Vanessa Ezekowitz c4aa351fa0 add missing alias for entry panel
side effect left over from new_flow_logic tests
2015-03-12 10:21:55 -04:00
Vanessa Ezekowitz dad386b564 use animated water for pouring spigot
also remove a couple of extranous .mtl files and a redundant spigot texture
2015-01-16 04:38:17 -05:00
Vanessa Ezekowitz 50359104c7 Use mesh nodes for all nodebox-based pipe-related nodes 2015-01-15 06:25:41 -05:00
Vanessa Ezekowitz 28cef5e82f update to use current mesecons API
requires mesecons commit 5be179bf110b44bdc06df6dbfde4e61487cf0635 or newer.
2014-11-22 13:55:54 -05:00
Zefram a7cd0e3ddb Fix drops for storage tanks 2014-07-02 21:40:36 -04:00
Vanessa Ezekowitz e1435b1c2f fix a missed function name (due to being renamed) 2013-12-21 03:38:08 -05:00
Vanessa Ezekowitz 784634f0da local-ize a couple more variables 2013-12-21 03:35:39 -05:00
Vanessa Ezekowitz f57443e96f mesecons_rules must be global. made so, confined to pipeworks.{} table. 2013-12-21 03:33:06 -05:00
Vanessa Ezekowitz 2481c06bf0 fix incorrect variable name 2013-12-15 05:26:39 -05:00
Vanessa Ezekowitz 659b4e42b2 local-ize a few more variables, move all of the nodebox models
into their own file and confine them and pretty much everything
else to the pipeworks.{} table (still global though).  More to
come.
2013-12-15 04:35:59 -05:00
Vanessa Ezekowitz bd80f18cfc local-ize pretty muchg everything that was previously global except where
stuff needs to be globally-visible.  Also, fix a bad drop on valve.
2013-12-15 02:53:10 -05:00
Vanessa Ezekowitz 3dfe770272 Phased out old register_on_punchnode() calls in favor of per-node on_punch
callbacks.  Got rid of all the old backward-compat device aliases.
2013-11-28 02:33:31 -05:00
Vanessa Ezekowitz bf7993b802 get rid of some extraneous print statements 2013-11-25 23:59:52 -05:00
Vanessa Ezekowitz 1c7f2722d6 fix non-working water flow sensor, add proper side texture for it 2013-11-09 13:21:19 -05:00
Vanessa Ezekowitz 3d19cca557 Add fountainhead (vertical spigot, basically). 2013-10-27 22:38:19 -04:00
Vanessa Ezekowitz c0af957167 added ability to disable most components via config file in world folder
moved pipes out of init.lua and into a separate file.
some minor formatting changes
2013-07-13 22:39:25 -04:00
Vanessa Ezekowitz 2f843fdd76 remove a bunch of useless metadata and settings
("pipelike" everywhere, but it isn't used for anything)
2013-07-04 03:12:45 -04:00
Vanessa Ezekowitz 17ee4f6aab Phased out all deprecated minetest.env:* uses in favor of minetest.* 2013-06-30 23:55:07 -04:00
Vanessa Ezekowitz 5bf21e553e more minor lighting/texture tweaks 2013-06-09 19:19:28 -04:00
Vanessa Ezekowitz 807fae1943 Made spigot animated, so the water actually looks like it's pouring 2013-06-09 18:37:35 -04:00
Vanessa Ezekowitz a6cbee38ec added sunlight_propagates=true to most devices to fix lighting issues
adjusted size of spigot "pouring" segment.
2013-06-09 18:29:08 -04:00
Vanessa Ezekowitz b68a66ef4a Add vertical version of airtight pipe entry
if automatically rotates to connect to the thing you point at, if a connection
is possible.
2013-06-08 01:00:49 -04:00
Vanessa Ezekowitz d4dddc41ec add flow sensor. Sends mesecons signal when water is flowing through it. 2013-05-10 18:28:57 -04:00
Vanessa Ezekowitz 509fac3845 Make pumps and valves respond to mesecons signals 2013-05-10 17:44:26 -04:00
Vanessa Ezekowitz 9231f9fa01 made valves and airtight entry panels work.
Removed "flowing" spigot from creative inventory.
2013-05-10 17:28:11 -04:00
Anthony 1eaa8b0dbd Add inventory images for devices. 2013-03-18 22:58:39 -03:00
Vanessa Ezekowitz 3a7b9fa31c Added a little stub to the bottom of the spigot, showing the water texture,
so that when a spigot is flowing, it looks like water is actually pouring out
of it.
2013-01-14 14:34:55 -05:00
Vanessa Ezekowitz 14102d7c3a made storage tanks connect from top/bottom, made storage tank and pipe
textures use the ^ combine operator so they can show the actual liquid going
through the pipes/tanks.
2013-01-05 21:14:09 -05:00
Vanessa Ezekowitz 6419ecb117 First stage of integrating Mauvebic's water flowing code. This is experimental
and doesn't move water yet - but at least it doesn't break anything :-)
2013-01-04 00:15:23 -05:00
Vanessa Ezekowitz ae5a283685 Minor tweak to fix a bug in the spigot texture ordering 2013-01-01 22:44:30 -05:00
Vanessa Ezekowitz dc5617db89 changed default orientation of spigot to make it easier to place. 2013-01-01 18:00:16 -05:00
Vanessa Ezekowitz 1a562d23a8 added a "sealed" entry/exit panel (really just a horizontal pipe with a metal
panel overlayed into the middle).   Also, tweaked pipes to always drop the
empty ones.
2013-01-01 16:30:21 -05:00
Vanessa Ezekowitz 6cca6f9857 revamped pumps so that now they should sit in/on liquid and be connected only
from the top, relegated grates to decorational-only, added outlet spigot.  Got
rid of a few obsolete textures.  Got rid of that whole _x and _z naming thing,
now all directional devices (pumps, valves, spigots, tanks) use facedir.
Valves, spigots no longer auto-rotate to find nearby pipes.
2013-01-01 16:04:05 -05:00