remove comments

master
MisterE123 2020-12-27 03:42:00 +00:00
parent d886dc64e0
commit dfa71c8c3a
1 changed files with 1 additions and 103 deletions

View File

@ -1,35 +1,6 @@
------------------- anti grav beam initiator broken --------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
-- minetest.register_node("ufowreck:alien_antigrav_broken", {
-- description = minetest.colorize("#0E0", "Alien ").."Antigrav Beam (Broken)",
-- tiles = {
-- {name="alien_ag_top.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.00},},
-- "alien_ag_bottom.png",
-- {name="alien_ag_side.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.00},},
-- {name="alien_ag_side.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.00},},
-- {name="alien_ag_side.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.00},},
-- {name="alien_ag_side.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.00},},
-- },
-- light_source = 5,
-- groups = {cracky=2,},
-- connect_sides = {"bottom"},
-- sounds = default.node_sound_metal_defaults(),
-- on_construct = function(pos,placer,itemstack)
-- local meta = minetest.get_meta(pos)
-- meta:set_string("infotext", minetest.colorize("#0E0", "Alien ").."Antigrav Beam (Broken)")
-- end,
-- on_rightclick = function(pos, node, clicker)
-- local meta = minetest.get_meta(pos)
-- meta:set_string("infotext", minetest.colorize("#0E0", "Alien ").."Antigrav Beam (Broken)")
-- end,
-- })
------------------- anti grav beam initiator off --------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
@ -50,22 +21,6 @@ minetest.register_node("ufowreck:alien_antigrav", {
connect_sides = {"bottom"},
sounds = default.node_sound_metal_defaults(),
drop = "ufowreck:alien_antigrav",
-- on_construct = function(pos)
-- local meta = minetest.get_meta(pos)
-- meta:set_string("infotext", minetest.colorize("#0E0", "Alien ").."Antigrav Beam (Off)")
-- pos.y = pos.y + 1
-- local yi
-- for yi = 0, 100 do
-- if (minetest.get_node(pos)).name == "air" then
-- minetest.set_node(pos,{name = "ufowreck:ag_beam_off"})
-- else
-- break
-- end
-- pos.y = pos.y + 1
-- end
-- end,
mesecons = {effector = {
rules = {
{x=0, y=0, z=-1},
@ -258,58 +213,6 @@ end)
-- minetest.register_node("ufowreck:ag_beam_off", {
-- description = "Alien Antigrav Beam node (off)",
-- paramtype = "light",
-- tiles = {
-- "alien_ag_beam.png",
-- },
-- drawtype = "nodebox",
-- paramtype = "light",
-- use_texture_alpha = true,
-- light_source = 14,
-- sunlight_propagates = true,
-- pointable = false,
-- diggable = false,
-- buildable_to = false,
-- walkable = false,
-- climbable = true,
-- drop = "",
-- on_construct = function(pos)
-- local timer = minetest.get_node_timer(pos)
-- timer:start(1) -- in seconds
-- end,
-- on_destruct = function(pos)
-- local timer = minetest.get_node_timer(pos)
-- timer:stop()
-- end,
-- on_timer = function(pos)
-- local obj_list = minetest.get_objects_inside_radius(pos, .5)
-- for _,obj in ipairs(obj_list) do
-- local is_p = false
-- if obj:is_player() then
-- is_p = true
-- end
-- if not(is_p) then
-- --local vel = obj:get_velocity()
-- local ent = obj:get_luaentity()
-- if ent ~= nil then
-- obj:set_velocity({x = 0, y = 0, z= 0})
-- end
-- end
-- end
-- if minetest.get_node(pos).name == "ufowreck:ag_beam_off" then
-- return true
-- else
-- return false
-- end
-- end,
-- groups = {not_in_creative_inventory = 1},
-- })
minetest.register_node("ufowreck:ag_beam_on", {
description = "Alien Antigrav Beam node (on)",
paramtype = "light",
@ -340,10 +243,7 @@ minetest.register_node("ufowreck:ag_beam_on", {
for _,obj in ipairs(obj_list) do
local is_p = false
if obj:is_player() then
-- local player = obj
-- local vel = player:get_player_velocity().y
-- vel = 3 - vel
-- player:add_player_velocity({x = 0, y = vel, z = 0})
is_p = true
end
@ -352,8 +252,6 @@ minetest.register_node("ufowreck:ag_beam_on", {
local ent = obj:get_luaentity()
if ent ~= nil then
vel = obj:get_velocity()
-- local yvel = vel.y
-- yvel = 10- yvel
obj:set_velocity({x=vel.x, y=10, z=vel.z})
end
end