9de43cdf7d
We were cleverly attempting to use an airlike node as the top half of the doors, but as airlike nodes are not walkable, falling nodes would not stop falling and thus remain an entity stuck on top of a door. After inspecting the builtin/game/falling.lua code, I considered the remaining options: (a) revert doors such that the top part is actually the door, (b) play with nodedef fields and see if other flags may work, or (c) modify the hidden door part to another drawtype that properly prevents this issue. (a) seemed way over the top for now, although it would solve the issue, it would cause a rewrite of most of the code including the old-door-conversion. (b) turned up nothing. (c) turned out to be relatively simple. So, here's the implementation where I turn the hidden door top into a tiny, non-targetable but walkable nodebox that is entirely inside the door hinge. It's entirely transparent, so you still can't see it, can't hit it, nor can you place anything in it or make liquids flow through it. The top part is placed in the right position on placement and not touched further. Falling nodes will properly stop on top of these doors. I've adjusted the door conversion code to properly account for the issue as well, so the only thing remaining is people who have been running a git branch - those can upgrade by re-placing the door. |
||
---|---|---|
.. | ||
models | ||
sounds | ||
textures | ||
depends.txt | ||
init.lua | ||
README.txt |
Minetest Game mod: doors ======================== version: 2.0 License of source code: ----------------------- Copyright (C) 2012 PilzAdam modified by BlockMen (added sounds, glassdoors[glass, obsidian glass], trapdoor) Steel trapdoor added by sofar. Copyright (C) 2016 sofar@foo-projects.org Re-implemented most of the door algorithms, added meshes, UV wrapped texture Added doors API to facilitate coding mods accessing and operating doors. Added Fence Gate model, code, and sounds This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more details. License of textures -------------------------------------- following Textures created by Fernando Zapata (CC BY-SA 3.0): door_wood.png door_wood_a.png door_wood_a_r.png door_wood_b.png door_wood_b_r.png following Textures created by BlockMen (WTFPL): door_trapdoor.png door_obsidian_glass_side.png following textures created by celeron55 (CC BY-SA 3.0): door_glass_a.png door_glass_b.png following Textures created by PenguinDad (CC BY-SA 4.0): door_glass.png door_obsidian_glass.png following textures created by sofar (CC-BY-SA-3.0) doors_trapdoor_steel.png doors_trapdoor_steel_side.png door_trapdoor_side.png Obsidian door textures by red-001 based on textures by Pilzadam and BlockMen: WTFPL door_obsidian_glass.png Glass door textures by red-001 based on textures by celeron55: CC BY-SA 3.0 door_glass.png All other textures (created by PilzAdam): WTFPL Door textures were converted to the new texture map by sofar, paramat and red-001, under the same license as the originals. Models: -------------------------------------- Door 3d models by sofar (CC-BY-SA-3.0) - door_a.obj - door_b.obj Fence gate models by sofar (CC-BY-SA-3.0) - fencegate_open.obj - fencegate_closed.obj License of sounds -------------------------------------- Opening-Sound created by CGEffex (CC BY 3.0), modified by BlockMen door_open.ogg Closing-Sound created by bennstir (CC BY 3.0) door_close.ogg fencegate_open.ogg: http://www.freesound.org/people/mhtaylor67/sounds/126041/ - CC0 fencegate_close.ogg: http://www.freesound.org/people/BarkersPinhead/sounds/274807/ - CC-BY-3.0 http://www.freesound.org/people/rivernile7/sounds/249573/ - CC-BY-3.0 Steel door sounds (open & close (CC-BY-3.0) by HazMatt - http://www.freesound.org/people/HazMattt/sounds/187283/ doors_steel_door_open.ogg doors_steel_door_close.ogg