Update license and include source headers

Pass a deep copy of gunspec instead of a direct reference

Fix Lua style multi-line comments :/

Fix flaregun dependencies

Add mod.conf and description files plus some readme fixes
This commit is contained in:
stujones11 2019-03-17 18:13:26 +00:00
parent 8ef3b1d379
commit fde2b72a68
40 changed files with 570 additions and 213 deletions

32
shooter_hook/README.txt Normal file
View file

@ -0,0 +1,32 @@
Minetest Mod - Grapple Hook [shooter_hook]
==========================================
Depends: shooter, tnt
Adds a teleporting grapple hook which can be thrown or launched
further from a grapple hook gun.
Crafting
========
S = Steel Ingot [default:steel_ingot]
D = Diamond [default:diamond]
Grappling Hook: [shooter_hook:grapple_hook]
+---+---+---+
| S | S | D |
+---+---+---+
| S | S | |
+---+---+---+
| D | | S |
+---+---+---+
Grappling Hook Gun: [shooter_hook:grapple_gun]
+---+---+
| S | S |
+---+---+
| | D |
+---+---+

View file

@ -1 +1,2 @@
tnt
shooter

View file

@ -0,0 +1 @@
Adds a teleporting grapple hook and gun.

View file

@ -1,3 +1,22 @@
--[[
Shooter Grapple Hook [shooter_hook]
Copyright (C) 2013-2019 stujones11, Stuart Jones
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
]]--
local function throw_hook(itemstack, user, vel)
local inv = user:get_inventory()
local pos = user:get_pos()

1
shooter_hook/mod.conf Normal file
View file

@ -0,0 +1 @@
name = shooter_hook