1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-23 15:20:19 +01:00
minetest_game/mods/doors/textures
Auke Kok 9de43cdf7d Doors: Allow falling nodes to fall onto doors.
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.
2016-03-21 06:17:27 +00:00
..
doors_blank.png Doors: Allow falling nodes to fall onto doors. 2016-03-21 06:17:27 +00:00
doors_door_glass.png New mesh door models, and extensive door API 2016-02-13 03:47:28 +00:00
doors_door_obsidian_glass.png New mesh door models, and extensive door API 2016-02-13 03:47:28 +00:00
doors_door_steel.png New mesh door models, and extensive door API 2016-02-13 03:47:28 +00:00
doors_door_wood.png New mesh door models, and extensive door API 2016-02-13 03:47:28 +00:00
doors_item_glass.png Doors: Update glass door item textures to new design 2016-03-15 16:23:05 +00:00
doors_item_obsidian_glass.png Doors: Update glass door item textures to new design 2016-03-15 16:23:05 +00:00
doors_item_steel.png New mesh door models, and extensive door API 2016-02-13 03:47:28 +00:00
doors_item_wood.png New mesh door models, and extensive door API 2016-02-13 03:47:28 +00:00
doors_trapdoor_side.png Better trapdoor side appearance. 2016-01-20 22:17:25 +00:00
doors_trapdoor_steel_side.png Steel Trapdoor. 2016-01-03 02:11:40 +00:00
doors_trapdoor_steel.png Steel Trapdoor. 2016-01-03 02:11:40 +00:00
doors_trapdoor.png Optimize textures and model (use *.b3d instead *.x) 2015-02-28 22:33:19 +01:00