From 5f2c1939dd1ce66a6888236642118f227f35a655 Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Sat, 29 Sep 2018 23:13:56 +0200 Subject: [PATCH] Ajout du mod nalc_doors. --- nalc_doors/depends.txt | 2 + nalc_doors/init.lua | 668 ++++++++++++++++++ nalc_doors/models/door3_a.obj | 42 ++ nalc_doors/models/door3_b.obj | 42 ++ nalc_doors/textures/doors3_item_cherry.png | Bin 0 -> 286 bytes nalc_doors/textures/doors3_item_glass.png | Bin 0 -> 341 bytes .../textures/doors3_item_obsidian_glass.png | Bin 0 -> 449 bytes nalc_doors/textures/doors3_item_prison.png | Bin 0 -> 263 bytes nalc_doors/textures/doors3_item_steel.png | Bin 0 -> 410 bytes nalc_doors/textures/doors3_item_wood.png | Bin 0 -> 631 bytes nalc_doors/textures/doors_door3_cherry.png | Bin 0 -> 614 bytes nalc_doors/textures/doors_door3_glass.png | Bin 0 -> 632 bytes .../textures/doors_door3_obsidian_glass.png | Bin 0 -> 288 bytes nalc_doors/textures/doors_door3_prison.png | Bin 0 -> 227 bytes nalc_doors/textures/doors_door3_steel.png | Bin 0 -> 2116 bytes nalc_doors/textures/doors_door3_wood.png | Bin 0 -> 319 bytes .../textures/doors_door_gardengate_white.png | Bin 0 -> 608 bytes nalc_doors/textures/doors_door_prison.png | Bin 0 -> 227 bytes nalc_doors/textures/doors_door_tin.png | Bin 0 -> 402 bytes .../textures/doors_item_gardengate_white.png | Bin 0 -> 352 bytes nalc_doors/textures/doors_item_prison.png | Bin 0 -> 279 bytes nalc_doors/textures/doors_item_tin.png | Bin 0 -> 211 bytes 22 files changed, 754 insertions(+) create mode 100644 nalc_doors/depends.txt create mode 100644 nalc_doors/init.lua create mode 100644 nalc_doors/models/door3_a.obj create mode 100644 nalc_doors/models/door3_b.obj create mode 100644 nalc_doors/textures/doors3_item_cherry.png create mode 100644 nalc_doors/textures/doors3_item_glass.png create mode 100644 nalc_doors/textures/doors3_item_obsidian_glass.png create mode 100644 nalc_doors/textures/doors3_item_prison.png create mode 100755 nalc_doors/textures/doors3_item_steel.png create mode 100644 nalc_doors/textures/doors3_item_wood.png create mode 100644 nalc_doors/textures/doors_door3_cherry.png create mode 100644 nalc_doors/textures/doors_door3_glass.png create mode 100644 nalc_doors/textures/doors_door3_obsidian_glass.png create mode 100644 nalc_doors/textures/doors_door3_prison.png create mode 100644 nalc_doors/textures/doors_door3_steel.png create mode 100644 nalc_doors/textures/doors_door3_wood.png create mode 100644 nalc_doors/textures/doors_door_gardengate_white.png create mode 100644 nalc_doors/textures/doors_door_prison.png create mode 100644 nalc_doors/textures/doors_door_tin.png create mode 100644 nalc_doors/textures/doors_item_gardengate_white.png create mode 100644 nalc_doors/textures/doors_item_prison.png create mode 100644 nalc_doors/textures/doors_item_tin.png diff --git a/nalc_doors/depends.txt b/nalc_doors/depends.txt new file mode 100644 index 0000000..cad013c --- /dev/null +++ b/nalc_doors/depends.txt @@ -0,0 +1,2 @@ +doors + diff --git a/nalc_doors/init.lua b/nalc_doors/init.lua new file mode 100644 index 0000000..eb66fb4 --- /dev/null +++ b/nalc_doors/init.lua @@ -0,0 +1,668 @@ +-- Register MFF doors + +-- doors tin MFF +doors.register( + "door_tin", + { + tiles = { "doors_door_tin.png" }, + description = "Tin Door", + inventory_image = "doors_item_tin.png", + groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2,door=1}, + protected = true, + sounds = default.node_sound_stone_defaults(), + sunlight = false, + recipe = { + {"default:tin_ingot", "default:tin_ingot"}, + {"default:tin_ingot", "default:tin_ingot"}, + {"default:tin_ingot", "default:tin_ingot"} + } + }) + +if minetest.get_modpath("darkage") then + -- doors prison MFF + doors.register( + "door_prison", + { + tiles = { "doors_door_prison.png" }, + description = "Prison Door", + inventory_image = "doors_item_prison.png", + groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2,door=1}, + protected = true, + sounds = default.node_sound_stone_defaults(), + recipe = { + {"darkage:iron_stick", "darkage:iron_stick"}, + {"darkage:iron_stick", "darkage:iron_stick"}, + {"darkage:iron_stick", "darkage:iron_stick"} + } + }) +end + +if minetest.get_modpath("dye") then + -- MFF gardengate white + doors.register( + "doors:door_gardengate_white", + { + tiles = { "doors_door_gardengate_white.png" }, + description = "Garden Gate White Door", + inventory_image = "doors_item_gardengate_white.png", + groups = {choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, + sounds = default.node_sound_wood_defaults(), + recipe = { + {"dye:white", "group:stick", ""}, + {"group:stick", "group:stick", "group:stick"}, + {"group:wood", "group:wood", "group:wood"} + } + }) +end + +-- Redifinition of doors function to make the ability to register doors with 3 blocks height +local _doors = {} +_doors.registered_doors3 = {} --MFF doors3 + +local function replace_old_owner_information(pos) + local meta = minetest.get_meta(pos) + local owner = meta:get_string("doors_owner") + if owner and owner ~= "" then + meta:set_string("owner", owner) + meta:set_string("doors_owner", "") + end +end + +local doors_get = doors.get +doors.get = function(pos) + local node_name = minetest.get_node(pos).name + if _doors.registered_doors3[node_name] then + -- A normal upright door + return { + pos = pos, + open = function(self, player) + if self:state() then + return false + end + return _doors.door_toggle(self.pos, nil, player) + end, + close = function(self, player) + if not self:state() then + return false + end + return _doors.door_toggle(self.pos, nil, player) + end, + toggle = function(self, player) + return _doors.door_toggle(self.pos, nil, player) + end, + state = function(self) + local state = minetest.get_meta(self.pos):get_int("state") + return state %2 == 1 + end + } + else + return doors_get(pos) + end +end + +-- table used to aid door opening/closing +local transform = { + { + {v = "_a", param2 = 3}, + {v = "_a", param2 = 0}, + {v = "_a", param2 = 1}, + {v = "_a", param2 = 2}, + }, + { + {v = "_b", param2 = 1}, + {v = "_b", param2 = 2}, + {v = "_b", param2 = 3}, + {v = "_b", param2 = 0}, + }, + { + {v = "_b", param2 = 1}, + {v = "_b", param2 = 2}, + {v = "_b", param2 = 3}, + {v = "_b", param2 = 0}, + }, + { + {v = "_a", param2 = 3}, + {v = "_a", param2 = 0}, + {v = "_a", param2 = 1}, + {v = "_a", param2 = 2}, + }, +} + +local function get_double_doors(pos, dir, p1, b) + local pos2 = nil + if b == "a" then + if p1 == 0 then + if dir == 1 then + pos2 = {x=pos.x, y=pos.y, z=pos.z-1} + elseif dir == 2 then + pos2 = {x=pos.x-1, y=pos.y, z=pos.z} + elseif dir == 3 then + pos2 = {x=pos.x, y=pos.y, z=pos.z+1} + else + pos2 = {x=pos.x+1, y=pos.y, z=pos.z} + end + elseif p1 == 3 then + if dir == 1 then + pos2 = {x=pos.x+1, y=pos.y, z=pos.z} + elseif dir == 2 then + pos2 = {x=pos.x, y=pos.y, z=pos.z-1} + elseif dir == 3 then + pos2 = {x=pos.x-1, y=pos.y, z=pos.z} + else + pos2 = {x=pos.x, y=pos.y, z=pos.z+1} + end + end + else + if p1 == 1 then + if dir == 1 then + pos2 = {x=pos.x+1, y=pos.y, z=pos.z} + elseif dir == 2 then + pos2 = {x=pos.x, y=pos.y, z=pos.z-1} + elseif dir == 3 then + pos2 = {x=pos.x-1, y=pos.y, z=pos.z} + else + pos2 = {x=pos.x, y=pos.y, z=pos.z+1} + end + elseif p1 == 2 then + if dir == 1 then + pos2 = {x=pos.x, y=pos.y, z=pos.z+1} + elseif dir == 2 then + pos2 = {x=pos.x+1, y=pos.y, z=pos.z} + elseif dir == 3 then + pos2 = {x=pos.x, y=pos.y, z=pos.z-1} + else + pos2 = {x=pos.x-1, y=pos.y, z=pos.z} + end + end + end + return pos2 +end + +function _doors.door_toggle(pos, node, clicker) + local meta = minetest.get_meta(pos) + node = node or minetest.get_node(pos) + local def = minetest.registered_nodes[node.name] + local name = def.door.name + + local state = meta:get_string("state") + if state == "" then + -- fix up lvm-placed right-hinged doors, default closed + if node.name:sub(-2) == "_b" then + state = 2 + else + state = 0 + end + else + state = tonumber(state) + end + + replace_old_owner_information(pos) + + if clicker and not default.can_interact_with_node(clicker, pos) then + return false + end + + local old = state + -- until Lua-5.2 we have no bitwise operators :( + if state % 2 == 1 then + state = state - 1 + else + state = state + 1 + end + + local dir = node.param2 + minetest.swap_node( + pos, + { + name = name .. transform[state + 1][dir+1].v, + param2 = transform[state + 1][dir+1].param2 + }) + meta:set_int("state", state) + + --MFF double porte + local b = string.sub(node.name, -1) + local pos2 = get_double_doors(pos, dir, old, b) + if pos2 then + local node2 = minetest.get_node_or_nil(pos2) + if node2 and string.sub(node2.name, 0, -3) == name then + if b ~= string.sub(node2.name, -1) then + local state2 = minetest.get_meta(pos2):get_int("state") + if (old % 2) == (state2 % 2) then + _doors.door_toggle(pos2, node2, clicker) + return true + end + end + end + end + -- /double porte + + if state % 2 == 0 then + minetest.sound_play(def.door.sounds[1], {pos = pos, gain = 0.3, max_hear_distance = 10}) + else + minetest.sound_play(def.door.sounds[2], {pos = pos, gain = 0.3, max_hear_distance = 10}) + end + + return true +end + +local function on_place_node(place_to, newnode, placer, oldnode, itemstack, pointed_thing) + -- Run script hook + for _, callback in ipairs(minetest.registered_on_placenodes) do + -- Deepcopy pos, node and pointed_thing because callback can modify them + local place_to_copy = {x = place_to.x, y = place_to.y, z = place_to.z} + local newnode_copy = + {name = newnode.name, param1 = newnode.param1, param2 = newnode.param2} + local oldnode_copy = + {name = oldnode.name, param1 = oldnode.param1, param2 = oldnode.param2} + local pointed_thing_copy = { + type = pointed_thing.type, + above = vector.new(pointed_thing.above), + under = vector.new(pointed_thing.under), + ref = pointed_thing.ref, + } + callback(place_to_copy, newnode_copy, placer, oldnode_copy, itemstack, pointed_thing_copy) + end +end + +local function can_dig_door(pos, digger) + replace_old_owner_information(pos) + if default.can_interact_with_node(digger, pos) then + return true + else + minetest.record_protection_violation(pos, digger:get_player_name()) + return false + end +end + +-- door 3 nodes +function doors.register3(name, def) + if not name:find(":") then + name = "nalc_doors:" .. name + end + + -- replace old doors of this type automatically + minetest.register_lbm( + { + name = ":doors:replace_" .. name:gsub(":", "_"), + nodenames = {name.."_b_1", name.."_b_2"}, + action = function(pos, node) + local l = tonumber(node.name:sub(-1)) + local meta = minetest.get_meta(pos) + local h = meta:get_int("right") + 1 + local p2 = node.param2 + local replace = { + {{type = "a", state = 0}, {type = "a", state = 3}}, + {{type = "b", state = 1}, {type = "b", state = 2}} + } + local new = replace[l][h] + -- retain infotext and doors_owner fields + minetest.swap_node(pos, {name = name .. "_" .. new.type, param2 = p2}) + meta:set_int("state", new.state) + -- properly place doors:hidden at the right spot + local p3 = p2 + if new.state >= 2 then + p3 = (p3 + 3) % 4 + end + if new.state % 2 == 1 then + if new.state >= 2 then + p3 = (p3 + 1) % 4 + else + p3 = (p3 + 3) % 4 + end + end + -- wipe meta on top node as it's unused + minetest.set_node( + {x = pos.x, y = pos.y + 1, z = pos.z}, + {name = "doors:hidden", param2 = p3} + ) + minetest.set_node( + {x = pos.x, y = pos.y + 2, z = pos.z}, + {name = "doors:hidden", param2 = p3} + ) + end + }) + + minetest.register_craftitem( + ":" .. name, + { + description = def.description, + inventory_image = def.inventory_image, + groups = table.copy(def.groups), + + on_place = function(itemstack, placer, pointed_thing) + local pos + + if not pointed_thing.type == "node" then + return itemstack + end + + local node = minetest.get_node(pointed_thing.under) + local pdef = minetest.registered_nodes[node.name] + if pdef and pdef.on_rightclick and + not placer:get_player_control().sneak then + return pdef.on_rightclick(pointed_thing.under, + node, placer, itemstack, pointed_thing) + end + + if pdef and pdef.buildable_to then + pos = pointed_thing.under + else + pos = pointed_thing.above + node = minetest.get_node(pos) + pdef = minetest.registered_nodes[node.name] + if not pdef or not pdef.buildable_to then + return itemstack + end + end + + local above = {x = pos.x, y = pos.y + 1, z = pos.z} + local top_node = minetest.get_node_or_nil(above) + local topdef = top_node and minetest.registered_nodes[top_node.name] + + if not topdef or not topdef.buildable_to then + return itemstack + end + + local above2 = { x = pos.x, y = pos.y + 2, z = pos.z } + local top_node2 = minetest.get_node_or_nil(above2) + local topdef2 = top_node2 and minetest.registered_nodes[top_node2.name] + + if not topdef2 or not topdef2.buildable_to then + return itemstack + end + + local pn = placer:get_player_name() + if minetest.is_protected(pos, pn) or minetest.is_protected(above, pn) or minetest.is_protected(above2, pn) then + return itemstack + end + + local dir = minetest.dir_to_facedir(placer:get_look_dir()) + + local ref = { + {x = -1, y = 0, z = 0}, + {x = 0, y = 0, z = 1}, + {x = 1, y = 0, z = 0}, + {x = 0, y = 0, z = -1}, + } + + local aside = { + x = pos.x + ref[dir + 1].x, + y = pos.y + ref[dir + 1].y, + z = pos.z + ref[dir + 1].z, + } + + local state = 0 + if minetest.get_item_group(minetest.get_node(aside).name, "door") == 1 then + state = state + 2 + minetest.set_node(pos, {name = name .. "_b", param2 = dir}) + minetest.set_node(above, {name = "doors:hidden", param2 = (dir + 3) % 4}) + minetest.set_node(above2, {name = "doors:hidden", param2 = (dir + 3) % 4}) + else + minetest.set_node(pos, {name = name .. "_a", param2 = dir}) + minetest.set_node(above, {name = "doors:hidden", param2 = dir}) + minetest.set_node(above2, {name = "doors:hidden", param2 = dir}) + end + + local meta = minetest.get_meta(pos) + meta:set_int("state", state) + + if def.protected then + meta:set_string("owner", pn) + meta:set_string("infotext", "Owned by " .. pn) + end + + if not (creative and creative.is_enabled_for and creative.is_enabled_for(pn)) then + itemstack:take_item() + end + + minetest.sound_play(def.sounds.place, {pos = pos}) + + on_place_node(pos, minetest.get_node(pos), placer, node, itemstack, pointed_thing) + + return itemstack + end + }) + def.inventory_image = nil + + if def.recipe then + minetest.register_craft( + { + output = name, + recipe = def.recipe, + }) + end + def.recipe = nil + + if not def.sounds then + def.sounds = default.node_sound_wood_defaults() + end + + if not def.sound_open then + def.sound_open = "doors_door_open" + end + + if not def.sound_close then + def.sound_close = "doors_door_close" + end + + def.groups.not_in_creative_inventory = 1 + def.groups.door = 1 + def.drop = name + def.door = { + name = name, + sounds = { def.sound_close, def.sound_open }, + } + + def.on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) + _doors.door_toggle(pos, node, clicker) + return itemstack + end + def.after_dig_node = function(pos, node, meta, digger) + minetest.remove_node({x = pos.x, y = pos.y + 1, z = pos.z}) + minetest.remove_node({x = pos.x, y = pos.y + 2, z = pos.z}) + nodeupdate({x = pos.x, y = pos.y + 2, z = pos.z}) + end + def.on_rotate = false + + if def.protected then + def.can_dig = can_dig_door + def.on_blast = function() end + def.on_key_use = function(pos, player) + local door = doors.get(pos) + door:toggle(player) + end + def.on_skeleton_key_use = function(pos, player, newsecret) + replace_old_owner_information(pos) + local meta = minetest.get_meta(pos) + local owner = meta:get_string("owner") + local pname = player:get_player_name() + + -- verify placer is owner of lockable door + if owner ~= pname then + minetest.record_protection_violation(pos, pname) + minetest.chat_send_player(pname, "You do not own this locked door.") + return nil + end + + local secret = meta:get_string("key_lock_secret") + if secret == "" then + secret = newsecret + meta:set_string("key_lock_secret", secret) + end + + return secret, "a locked door", owner + end + else + def.on_blast = function(pos, intensity) + minetest.remove_node(pos) + -- hidden node doesn't get blasted away. + minetest.remove_node({x = pos.x, y = pos.y + 1, z = pos.z}) + minetest.remove_node({x = pos.x, y = pos.y + 2, z = pos.z}) + return {name} + end + end + + def.on_destruct = function(pos) + minetest.remove_node({x = pos.x, y = pos.y + 1, z = pos.z}) + minetest.remove_node({x = pos.x, y = pos.y + 2, z = pos.z}) + end + + def.drawtype = "mesh" + def.paramtype = "light" + def.paramtype2 = "facedir" + def.sunlight_propagates = true + def.walkable = true + def.is_ground_content = false + def.buildable_to = false + def.selection_box = {type = "fixed", fixed = {-1/2,-1/2,-1/2,1/2,2.5,-6/16}} + def.collision_box = {type = "fixed", fixed = {-1/2,-1/2,-1/2,1/2,2.5,-6/16}} + + def.mesh = "door3_a.obj" + minetest.register_node(":" .. name .. "_a", def) + + def.mesh = "door3_b.obj" + minetest.register_node(":" .. name .. "_b", def) + + _doors.registered_doors3[name .. "_a"] = true + _doors.registered_doors3[name .. "_b"] = true +end + +doors.register3( + "door3_wood", + { + tiles = {{ name = "doors_door3_wood.png", backface_culling = true }}, + description = "Wooden Door 3 Nodes", + inventory_image = "doors3_item_wood.png", + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 }, + recipe = { + {"", "", ""}, + {"", "doors:door_wood", ""}, + {"", "doors:door_wood", ""}, + } + }) +minetest.register_alias("doors:door3_wood", "nalc_doors:door3_wood") +minetest.register_alias("doors:door3_wood_a", "nalc_doors:door3_wood_a") +minetest.register_alias("doors:door3_wood_b", "nalc_doors:door3_wood_b") + +doors.register3( + "door3_steel", + { + tiles = {{ name = "doors_door3_steel.png", backface_culling = true }}, + description = "Steel Door 3 Nodes", + inventory_image = "doors3_item_steel.png", + protected = true, + groups = {cracky = 1, level = 2}, + sounds = default.node_sound_metal_defaults(), + sound_open = "doors_steel_door_open", + sound_close = "doors_steel_door_close", + recipe = { + {"", "", ""}, + {"", "doors:door_steel", ""}, + {"", "doors:door_steel", ""}, + } + }) +minetest.register_alias("doors:door3_steel", "nalc_doors:door3_steel") +minetest.register_alias("doors:door3_steel_a", "nalc_doors:door3_steel_a") +minetest.register_alias("doors:door3_steel_b", "nalc_doors:door3_steel_b") + +doors.register3( + "door3_glass", + { + tiles = { "doors_door3_glass.png"}, + description = "Glass Door 3 Nodes", + inventory_image = "doors3_item_glass.png", + groups = {cracky=3, oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), + sound_open = "doors_glass_door_open", + sound_close = "doors_glass_door_close", + recipe = { + {"", "", ""}, + {"", "doors:door_glass", ""}, + {"", "doors:door_glass", ""}, + } + }) +minetest.register_alias("doors:door3_glass", "nalc_doors:door3_glass") +minetest.register_alias("doors:door3_glass_a", "nalc_doors:door3_glass_a") +minetest.register_alias("doors:door3_glass_b", "nalc_doors:door3_glass_b") + +doors.register3( + "door3_obsidian_glass", + { + tiles = { "doors_door3_obsidian_glass.png" }, + description = "Obsidian Glass Door 3 Nodes", + inventory_image = "doors3_item_obsidian_glass.png", + groups = {cracky=3}, + sounds = default.node_sound_glass_defaults(), + sound_open = "doors_glass_door_open", + sound_close = "doors_glass_door_close", + recipe = { + {"", "", ""}, + {"", "doors:door_obsidian_glass", ""}, + {"", "doors:door_obsidian_glass", ""}, + }, + }) +minetest.register_alias("doors:door3_obsidian_glass", "nalc_doors:door3_obsidian_glass") +minetest.register_alias("doors:door3_obsidian_glass_a", "nalc_doors:door3_obsidian_glass_a") +minetest.register_alias("doors:door3_obsidian_glass_b", "nalc_doors:door3_obsidian_glass_b") + +if minetest.get_modpath("cherry_tree") then + -- From BFD: Cherry planks doors + doors.register3( + "door3_cherry", + { + tiles = { "doors_door3_cherry.png" }, + description = "Cherry Door 3 Nodes", + inventory_image = "doors3_item_cherry.png", + groups = {choppy=2, oddly_breakable_by_hand=2, flammable=2, door=1}, + sounds = default.node_sound_wood_defaults(), + recipe = { + {"", "", ""}, + {"", "doors:door_cherry", ""}, + {"", "doors:door_cherry", ""}, + }, + }) + minetest.register_alias("doors:door3_cherry", "nalc_doors:door3_cherry") + minetest.register_alias("doors:door3_cherry_a", "nalc_doors:door3_cherry_a") + minetest.register_alias("doors:door3_cherry_b", "nalc_doors:door3_cherry_b") + + ---fuels--- + minetest.register_craft( + { + type = "fuel", + recipe = "nalc:door3_cherry", + burntime = 21, + }) +end + +if minetest.get_modpath("darkage") then + -- doors prison MFF + doors.register3( + "door3_prison", + { + tiles = { "doors_door3_prison.png" }, + description = "Prison Door 3 Nodes", + inventory_image = "doors3_item_prison.png", + protected = true, + groups = {cracky = 1, level = 2}, + sounds = default.node_sound_metal_defaults(), + sound_open = "doors_steel_door_open", + sound_close = "doors_steel_door_close", + recipe = { + {"", "", ""}, + {"", "doors:door_prison", ""}, + {"", "doors:door_prison", ""}, + } + }) + minetest.register_alias("doors:door3_prison", "nalc_doors:door3_prison") + minetest.register_alias("doors:door3_prison_a", "nalc_doors:door3_prison_a") + minetest.register_alias("doors:door3_prison_b", "nalc_doors:door3_prison_b") +end + +---fuels--- +minetest.register_craft( + { + type = "fuel", + recipe = "nalc:door3_wood", + burntime = 21, + }) + diff --git a/nalc_doors/models/door3_a.obj b/nalc_doors/models/door3_a.obj new file mode 100644 index 0000000..1865e5e --- /dev/null +++ b/nalc_doors/models/door3_a.obj @@ -0,0 +1,42 @@ +# Blender v2.76 (sub 0) OBJ File: '3node_door.blend' +# www.blender.org +mtllib 3node_door.mtl +o Cube_Cube.001 +v -0.499000 -0.499000 -0.375000 +v 0.499000 -0.499000 -0.375000 +v 0.498998 2.498000 -0.375000 +v -0.499000 2.498000 -0.375000 +v -0.499000 2.498000 -0.499000 +v -0.499000 -0.499000 -0.499000 +v 0.498998 2.498000 -0.499000 +v 0.499000 -0.499000 -0.499000 +vt 0.842905 0.000000 +vt 0.421453 0.000000 +vt 0.421453 1.000000 +vt 0.842905 1.000000 +vt 0.895270 0.000000 +vt 0.895270 1.000000 +vt 1.000000 0.665999 +vt 0.947635 0.665999 +vt 0.947635 0.333000 +vt 1.000000 0.333000 +vt 0.000000 0.000000 +vt 0.000000 1.000000 +vt 0.947635 0.000000 +vt 0.947635 1.000000 +vt 1.000000 0.000000 +vn 0.000000 -0.000000 1.000000 +vn -1.000000 0.000000 0.000000 +vn 0.000000 1.000000 0.000000 +vn 0.000000 0.000000 -1.000000 +vn 1.000000 0.000000 0.000000 +vn 0.000000 -1.000000 -0.000000 +usemtl None +s off +f 1/1/1 2/2/1 3/3/1 4/4/1 +f 1/4/2 4/1/2 5/5/2 6/6/2 +f 3/7/3 7/8/3 5/9/3 4/10/3 +f 6/11/4 5/12/4 7/3/4 8/2/4 +f 2/5/5 8/13/5 7/14/5 3/6/5 +s 1 +f 8/13/6 2/15/6 1/10/6 6/9/6 diff --git a/nalc_doors/models/door3_b.obj b/nalc_doors/models/door3_b.obj new file mode 100644 index 0000000..27b6240 --- /dev/null +++ b/nalc_doors/models/door3_b.obj @@ -0,0 +1,42 @@ +# Blender v2.76 (sub 0) OBJ File: '3node_door_b.blend' +# www.blender.org +mtllib 3node_door_b.mtl +o Cube_Cube.001 +v -0.499000 -0.499000 -0.375000 +v 0.499000 -0.499000 -0.375000 +v 0.498998 2.498000 -0.375000 +v -0.499000 2.498000 -0.375000 +v -0.499000 2.498000 -0.499000 +v -0.499000 -0.499000 -0.499000 +v 0.498998 2.498000 -0.499000 +v 0.499000 -0.499000 -0.499000 +vt 0.421453 0.000000 +vt 0.842905 0.000000 +vt 0.842905 1.000000 +vt 0.421453 1.000000 +vt 0.895270 0.000000 +vt 0.895270 1.000000 +vt 1.000000 0.665999 +vt 0.947635 0.665999 +vt 0.947635 0.333000 +vt 1.000000 0.333000 +vt 0.000000 1.000000 +vt 0.000000 0.000000 +vt 0.947635 0.000000 +vt 0.947635 1.000000 +vt 1.000000 0.000000 +vn 0.000000 -0.000000 1.000000 +vn -1.000000 0.000000 0.000000 +vn 0.000000 1.000000 0.000000 +vn 0.000000 0.000000 -1.000000 +vn 1.000000 0.000000 0.000000 +vn 0.000000 -1.000000 -0.000000 +usemtl None +s off +f 1/1/1 2/2/1 3/3/1 4/4/1 +f 1/3/2 4/2/2 5/5/2 6/6/2 +f 3/7/3 7/8/3 5/9/3 4/10/3 +f 6/1/4 5/4/4 7/11/4 8/12/4 +f 2/5/5 8/13/5 7/14/5 3/6/5 +s 1 +f 8/13/6 2/15/6 1/10/6 6/9/6 diff --git a/nalc_doors/textures/doors3_item_cherry.png b/nalc_doors/textures/doors3_item_cherry.png new file mode 100644 index 0000000000000000000000000000000000000000..72ccb28f504bba295cf95703b0071244ecb284b7 GIT binary patch literal 286 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyW&u7Su0R?H;`KaI4SlNIlk2_G zCs}9Cb1z*H+PtBC{-&h9EuD*whfO>`dHa>ZlcpPBrHMwK0|i`2{mL zJiCzw6jf=4?Q8#wC?vpTPfzIGo}m&R$3sn#iQ+8`WX8 f&s1{ebp9jKzrXQb4sy)c2=b<d?-0{?gJymRNy z^SyhY969o2|Ni?oZoIyK|Mh_bkItNVao_+*@W6q`SFXGSat|GPa{m0Qqeq_}KmHUb ze&NE)ix*#AzWfR(1r!95Ky>QV^NSZ>U%2oJi2ncouPEYr4QQWoNswPK12Z!#tC*O& zx`u{^uC9lNmtRmsbWBW2T2@wJX=!6e$D|!sS86r^m6v+DIEGX(UcF>0#%##Id@+(O z_(tNM|FV~N21|tg&ziR*eYpwiibgq=75x))>@PR$(8?5dWA;*TZ|2dsut3@&Q=0e2 zx#C%cOC7CQv{XE*lTSMD2r}wXdpmW~+Uj*r)-AnL!8=2*_)pYyme1m<^M5>%pK`^T Z`BT2|^(%3|j{+UQ;OXk;vd$@?2>@K$r;h*t literal 0 HcmV?d00001 diff --git a/nalc_doors/textures/doors3_item_obsidian_glass.png b/nalc_doors/textures/doors3_item_obsidian_glass.png new file mode 100644 index 0000000000000000000000000000000000000000..2e452c5bb2c8f346a95ff9af809cecd0f1b9ade9 GIT binary patch literal 449 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dy69RlfT!Hi|5ct1y=bgQKpX}d% z|HzRi$BsQabLRh@JJ0XmfBpaee~5xJAOKPZ6bGsVDg!FMapN^m&4B}t&YXF1-~dSQ zz=6kCuDk?t4;^}P{`{+>N1q-){uC&F;lj&{7hhez{0b-q6aT|+}dSJ%VC%P%M*IwmG1Ei0?Aw6w9K zW73YeLyJ0q$~SqsIEGX(uD#T}?XZIc%Y&UdNsIl~{=NVIW!Hy{Nm-B9?B86W=H+s? zX!l00S&K8H7GxgMvUtw(tB^4&aYF7I{e00&TtBw|YA{SG7I;y6;1Ao{2mK7%MU}1l z|6Y2rJ9u_zz=vb^e{8LPp~9`oH+A~cmy?!=&I!JyIMXjJu6>F4e)Y-^32!Hfo&0(0 zg?jYt^9#kFO_K5Qv<}JBoj)N&chb*!A^Gn;E2D$La Op7nI~b6Mw<&;$VS6X+HI literal 0 HcmV?d00001 diff --git a/nalc_doors/textures/doors3_item_prison.png b/nalc_doors/textures/doors3_item_prison.png new file mode 100644 index 0000000000000000000000000000000000000000..cc9b3d414e71c9bd069c871bc1714b8c7a55eaeb GIT binary patch literal 263 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyP60k4u0WcZnVE%!g^!OgTe~DWM4f#k)j< literal 0 HcmV?d00001 diff --git a/nalc_doors/textures/doors3_item_steel.png b/nalc_doors/textures/doors3_item_steel.png new file mode 100755 index 0000000000000000000000000000000000000000..a87e23bda936198c649e2ac0860389c2439cb4f4 GIT binary patch literal 410 zcmV;L0cHM)P)kdg00002VoOIv048{V zrq2KX010qNS#tmY3ljhU3ljkVnw%H_000McNliru-v|s0Fe$0VU`0Q4?GCh$f_U`jYUQ_^b0TlRNJHyd47Q=V2x%2B0@P0Ep*+sJ?2C+Ek zdLYDojQg~{UvfYav>o4}tTo{2D0sKnzf5S0voHJ3Js$`pVp zV;h4^U%qPSlg$f7uQ^C~VIm$Bwvy3m%nJzy6&C=knAsp+u?uTufta%i-`;6y5m*3A zY80oQT8@SaEPq~$_=KOM0&jqzD1yU9hsnq3p5xGPZHF^xLTykQ+bC=3yG4Q3Z~+(4 zsr6j=t**4gC$XWWp{AxmX}P!TKyj3~UpaCe~jsvs*o)%d*B_`HD# zY?rS(pRWd=9|-aL1Cb_wfF^&S7JrZye=rbf^M`64%atczgLiZJNfrNanGZxWgrdkm@~F@PY;~`nw!g3|LVLJCq7}7egTe~DWM4f D2#CFM literal 0 HcmV?d00001 diff --git a/nalc_doors/textures/doors_door3_cherry.png b/nalc_doors/textures/doors_door3_cherry.png new file mode 100644 index 0000000000000000000000000000000000000000..c80eb6bcb98e7a14fd74f83334504e0aa8ef9814 GIT binary patch literal 614 zcmV-s0-61ZP)B0000sP)t-s0001A zE=XlDOnOISe@bVPJ87Orb*NQ?u!o_QVCozmVv0s-T zaYFfB1U+XKg|%26%);ZhjzN1I{a1>4e-oyu)SPR@kyZGu@BON<6-x;VVr);`gjOI% z97$&fEizA2v>!znDt_wA;mVgtC7GvDa;Vpwo&TDC5m)>@30v1z%3%LKM!DPdXfjgCt1O+&HE z<;apSE#@thf}RmOQ_z`$&J=W}pfd&iZwkU=yCb;ty#wsU%B|89T*^v_tqNN)@25Li z=nXD~de+{wwqhye{BB0000XP)t-sCMG5| z8VXD&4sbaYz`*1G|NkZ?Ccwbs#Khyw%;?|W@H1-V6951J26R$RQvd(}0001PrU#J# z00IC>L_t(|+U?olZiFBZ1Ymb5hw}ap+#4Vr18k^9Nw0B!)LRd~E3M+1Tf#1?!N~7M zU5zcGPJ0nu(hwEx#i=X}CN?G*A~q%srfOk%LTX~FT}--BeZBL>x-qdBeTty)r6Pt3 zd!3>v)nN=djCmgdu~PAGR`w7>H3@rX+lZw}5kuvPVdVXoBF>i(tEWkf1#%x2!f7l~ z5BB%45cU|V77KwGsyUeV>w4ru$LKj&zO;#@gSj|ns$hBKh1k4RqZ?wb7h<>FH_zYE zTkNZfDqjzNvoR*pVBHKb?`wGQ-#msri{k`rLVrf=>Cc}2?724oO@HPXRP9Z;9b;p< zOR0$c>}4`$Jfp8`!|@rtq1M%UMmI3t(M`;LMvt-L*iuzgjKgR27-g3bgczz4jx<*d zO`_&F>32ctaK6aZeOL&uk|WrwgwTbU-Jd!3Eh!yr$(7V{`ZFZPssSd3s)Qr$RijG1Y}esImtr6DjhOw#-uRs%#?Ld}G4l;c1$R7j SF#-$#0000D-sa>8fjv*C{Z)b*zF&pw6G22@7UwQh>SgHLbU*0Z1s?w&} zm*9KnVcn7Csh4H1DV9sPT$|3L*j%16VZzZ#tBh7?HeX40+oSyZd~4j><+2avemq&O z7RlK3lqEFvRO`KOXRd8gPV&s&u3WNdpNsnC=TgbC8afkCd|5s@^_TG7pELKXS>F8Z z>gwj^^i0P??{&1%rhQMB=}g`sbCN}KYTPqp1>NGhw3(lcpQpQAjA7Q8JwG)ix!3m2 ebqy=m7=|M|Wc6Q!1*HOg!QkoY=d#Wzp$P!}yl?>k literal 0 HcmV?d00001 diff --git a/nalc_doors/textures/doors_door3_prison.png b/nalc_doors/textures/doors_door3_prison.png new file mode 100644 index 0000000000000000000000000000000000000000..b6abf08c6bd0c2d6830c2ba4151310831b96578f GIT binary patch literal 227 zcmeAS@N?(olHy`uVBq!ia0vp^K0utn!3-oD)Kfx$lu&?Ah%1l=0x2meO-)T_XXpR_ z|9_X)W&{c`mIV0)GdMiEkp|?{d%8G=RNQ)d&5`SX0*}kZo{#_1^|_e7wtBN~L~ZxgkT(y^AGB0002bP)t-sdPie_ zN@u85gR)|d)N!Z#-0j!b*TTZW#l^+a($d1h!qU>x)z#J4*VowC*d`_>udlDLu&}qc zx4F5wy1Kf%ySu!+yuH1>zP`S{zrVo1z`?=6!otGC!^6bH#KpzM#>U3S$H&RZ$;!&g z%gf8n&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4|NsB56kk^W z000kkQchC<000000Qvp>{r>*`{{AcEBx(Qv2Ng*~K~z}7rI}lk-NX^cf8C=wUK^+^ zB&JBfsdB;^$XoLLze66A;22jKrxHwIuIpW&(RAlwM$+htL-cSonwxt1^6!7^$Q9qP zdkFx(KjGK2rw)Eo7b@3$}vM^bAl{|?#fAx zFdj&!GpK+RIb<9uvuv6=(^=lti8r^6E3b8C!6#P_gA@*!S^e=*+EB*@JlI0Ah@SV& z70T+J>#PtX5z4(wxQZLr2%iT@L%bmd2d5wR9OsHUBuG&1TC}|5Wp&!_1YPOO0c|W1 zs(lf72`}G5>bTW+grU7qKo|D|Kvs>FPU9*9+~m`y>n|Id4Sg?w&uaVHmQr*Hclteh z-A#*^H&-9r(@JM9-F4IT_1Jp1u4+(&>t?C@I-F!vQAO-HfWembHmqqP{$;i1XCrE4 z9%)aw<%0g6eO~(>@HT&|)_fphYt+~Q4WfF6>>76hQr4(}L#{qlkgQ*TpVQbVl(ui6 zqelL}YZ;sFbQNhCqrn#1(8ah@GUFmP&3~y>ZtK`ICX8DA&Rs$lY2H>yyRWpG;NAU5 zV?<&s_l|U-lN@F!$P#NFt^PBw|t$eAVN*@3V2m3rul$%k~&akc7vU&D~Ms1y@+^`|R{zK}wKF zsodo%-p$|508iX&M*LO&H}Ko=eLbLv&#ZhIZf25oG2NRxflnbfShLB^3y(=eQcOT3 z#V#QN&uUbD!jJO2@`^`@oz9%ByWsOW{-M3YKkE4J5m`mR>}6S&6lqQZB=3P=o1G?@ zD7-@{I>JSUaT~O{!^QN7fEDG5@N?;_f$hA@f?6BDAq$dUiW;)T9Os08VnIvB*^X~X zps)`L?g`S-_}ZH8vdMztfEqDvvY-_<>GJIJ@yG)2{6J-NAP#?;a?iv&8q^q&;>N=` z_ZpYA&Snwt4GgI9#5F)re=?v3e3K6=W3TN|{hPk-~MMT3CM%KW%m2i3r zz#k)qBf2W_2R15V?jj+iCuIc(u^FYY-du7|Di=%(a|eRk4RVn?*s32GgCc#}QR^K-|jb8&n(+!yM6WC|PyM zX}g&Edr=+9xBZQ0b7Vj#g8SE71{g@i>Kjy7 z#Bu3#BRJErY(iSyuWxd8QBd)mcdH)*!^-EZ7SHrF2REClx(mkiuqvF(xKkVni zF+Y_1G_~I>I5*18e#RXgFB9o-bD9eM4K5qMBby_5i4R;ffzK0-?$-gj{wSSl?V1uv zR|!j}B~reI%EnNO1QcWzI{JeOMZLrIphD?^zUr{wA}$TXMLYGjFp|3x$RPuP9J=+Vj?wlSOHjx134hIRmL90-ARR91%}w8#TN7E4y?W9ubJ5e0_X4Ucm67Un(U(pOr*lDs%JR;A+dXqyA>z@2h(}EulATA% z3Kmt#&Kr_RN|J`V9+k~y`I+OgdliUz14>k&^L6UJs%*1^`!(p-}M28an3B@lS*)Slp#h_qk-}d+`I4@@6wfkdo06Ezzr| z@@R!?Xo;_Qp)sFuAL34GtcqI7tGqeO*PYjo1A?QL uA^)g`loL84vk-mnuy$HUv-fXYJN*}ka&X>q1h2CI0000RRLg literal 0 HcmV?d00001 diff --git a/nalc_doors/textures/doors_door3_wood.png b/nalc_doors/textures/doors_door3_wood.png new file mode 100644 index 0000000000000000000000000000000000000000..3aefdba130c6a678eb633c67c40b17c86bdbb248 GIT binary patch literal 319 zcmV-F0l@x=P)B0000FP)t-s|Ns9c zCMGo+3QQ*sa5)uw{F>?j0004WQchCT zVw(;Uy`$MAZjatG`KDq;@1H9BM_XeF7fXncT#VGi@G-s^KE`g7Sz(w}n3;=ZMRZ=| zkriqCMPP5nU^^^*dI2U7>seqgz|3k)&2~RM5Iihba4{r~=z#?m*!ftTImVgejSs?c zjlS%No{N&F*kguD^Pg8^DQ^yz^7h8~Hg_`lcCQ7n6f@`9QjGD*R6GowJ@M!t!p9oqvKHPsA9WOcO!3-olcl~MvQe6Q)A+A9B_3PJf-n@DH_U*fO z@7}+E|KY=jj~_pN`t<4Z=g(iie*O0T;X7EU$@kI4|nVmOoMcB<*;?kfvd8^Bz z2|cq9s(8-H+kWPAn)h@S;~Cb@GoIhQBWBTDxWz&J@4C({?(L5=*tla}xH0U~+~U*b za$$p{fV%GF^-_myw)(u@+TEEHo_%YBX{GJ9yjRuVic$`{d@6f$^VI(QTbmD7W~5wR zC^^UU?;g#Q%YvpJzhLvW)%I=sGTj%;e?mvv4F FO#nDFQ2GD> literal 0 HcmV?d00001 diff --git a/nalc_doors/textures/doors_door_prison.png b/nalc_doors/textures/doors_door_prison.png new file mode 100644 index 0000000000000000000000000000000000000000..b013f07cefbdf1f87f892a8f68799889c9bab61b GIT binary patch literal 227 zcmeAS@N?(olHy`uVBq!ia0vp^YCx>O!3-olcl~MvQgQ)4A+A6g7jSoXpIZC#9#ER2 zB*-tAfsu)sgOiW{{=$VDfnqtHE{-7;x9(navLe6yp6 z15O4hE`C4rov?O7>S>9d`qPhg-c9FPcHR1{%K5gV^KTVgebl(eaiVGRsg2FLCL6Y; z%C1>IE A`Tzg` literal 0 HcmV?d00001 diff --git a/nalc_doors/textures/doors_door_tin.png b/nalc_doors/textures/doors_door_tin.png new file mode 100644 index 0000000000000000000000000000000000000000..6119c90ffca1a0f81a36449129e63f9bcad742a5 GIT binary patch literal 402 zcmV;D0d4+?P)a&u^Kb!&NeaC(7qeS~#@ zhjoF5fRB=bkCug#n2ML5jhdp6ou-wftE#%h(b3k=00002bW%=J0Dzk-P8a|H0P9Ia zK~#9!?UYRyf*=$`E2F{agTNx||NqY>NJnYos#UY_oIB?}o(p9a7Nyosr|+U@Pvsoi zHk>C#U@>T`F?bI{{M2c4jhSi8U;BmjSdS^1_%YFrld!3{Wbya5*^26HH#*H+9^?r0neM?d|RE?(XmJ@9^;O@$vEU^78ZIob&PL^Yioc^z`-h z_4e=4_V)Jo_xJet`1$qf`S$Jk`T6?#`uqF){QCO*{QUj>{r~^}b3;}n00004bW%=J z00000vy*0;00021Nkl&&Hzbbp`>zsr=e`r17stu`V|D@U07YW2 z1q#GY7ewZ_4v5N&QB8*n;7NVH-t7O4T%*D;2m-A`%^l1VTDoXh2wk=AFD;ZQ0E5w@ zKdzkL-gEev-OzHaX$VSN*Vt%MAs* uHnu0ZGNau;EuQRi-Qfpgz&gh7ImKN2-wEqQ&107XIl|M`&t;ucLK6V`v`bh3 literal 0 HcmV?d00001 diff --git a/nalc_doors/textures/doors_item_tin.png b/nalc_doors/textures/doors_item_tin.png new file mode 100644 index 0000000000000000000000000000000000000000..c2c4a42736f86bc0680b90e0b3c1166ec64d0958 GIT binary patch literal 211 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyq5(c3u0Yzs!67U;KC7gvprD|% zp?%e^BRjTCz5AG>__?wX!- zX_1d>r^s?QWW8h$Wxd`czhGME`P^+k4+ot2<*`znA?Olk0)vPo0~1f7jDtPHoTDe$ z9BO%anbVaWP8?p?t)z2zaa%*gn}iRmJOdu*FI?I$%IIIi)+l{AEFEYsgQu&X%Q~lo FCIHr|N|^uv literal 0 HcmV?d00001