diff --git a/shooter/LICENSE.txt b/LICENSE.txt similarity index 88% rename from shooter/LICENSE.txt rename to LICENSE.txt index ca3505a..c9c7979 100644 --- a/shooter/LICENSE.txt +++ b/LICENSE.txt @@ -1,14 +1,14 @@ Minetest Mod - Simple Shooter [shooter] ======================================= -License Source Code: 2013 Stuart Jones - LGPL v2.1 +License Source Code: 2013-2019 Stuart Jones - LGPL v2.1 Additional credit for code ideas taken from other mods. PilzAdam [throwing] for the throwing physics ShadowNinja [nuke] for the vm explosion routine -License Textures: Stuart Jones - WTFPL +License Textures: Stuart Jones - CC0 1.0 Universal (CC0 1.0) Licence Models: Stuart Jones - CC-BY-SA 3.0 @@ -29,4 +29,3 @@ License Sounds: freesound.org AGM-114 Hellfire Rocket Missile Launch.flac by qubodup - CC0 1.0 Universal (CC0 1.0) Sparkler.aif by Ned Bouhalassa - CC0 1.0 Universal (CC0 1.0) - diff --git a/README.md b/README.md new file mode 100644 index 0000000..fc4819b --- /dev/null +++ b/README.md @@ -0,0 +1,67 @@ +[modpack] Simple Shooter [shooter] +==================================== + +Mod Version: 0.6.0 + +Minetest Version: 5.0.0 (engine & game) + +A simple first person shooter mod originally developed as part of a game that +was never completed. Now distributed as a Minetest Game compatible mod-pack. + +[mod] Shooter API [shooter] +--------------------------- + +Depends: default + +Handles raycasting, blasting and audio-visual effects of dependent mods. + +[mod] Shooter Guns [shooter_guns] +--------------------------------- + +Depends: shooter + +Adds basic guns using the shooter API. + +[mod] Crossbow [shooter_crossbow] +--------------------------------- + +Depends: shooter, wool, dye + +Adds a crossbow with colored arrows. + +[mod] Flare Gun [shooter_flaregun] +---------------------------------- + +Depends: shooter, tnt, wool + +Adds a flare-gun with temporary light emitting flares. + +[mod] Grenade [shooter_grenade] +------------------------------- + +Depends: shooter, tnt + +Adds simple hand grenades. + +[mod] Rocket Launcher [shooter_rocket] +-------------------------------------- + +Depends: shooter, tnt + +Adds rocket missiles and launching gun. + +[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. + +[mod] Turret Gun [shooter_turret] +--------------------------------- + +Depends: shooter_rocket + +Adds a mountable turret gun which can also be triggered by mesecon signals. +Still WIP and experimental and may be subject to change or removal. diff --git a/description.txt b/description.txt new file mode 100644 index 0000000..35f0d03 --- /dev/null +++ b/description.txt @@ -0,0 +1,2 @@ +First person shooter mod. +Adds firearms plus a few other fun items. diff --git a/shooter/screenshot.png b/screenshot.png similarity index 100% rename from shooter/screenshot.png rename to screenshot.png diff --git a/shooter/README.md b/shooter/README.md new file mode 100644 index 0000000..8005a1e --- /dev/null +++ b/shooter/README.md @@ -0,0 +1,69 @@ +Minetest Mod - Shooter API [shooter] +==================================== + +Depends: default + +Handles raycasting, blasting and audio-visual effects of dependent mods. + +Configuration +------------- + +Override the following default settings by adding them to your minetest.conf file. + +-- Enable automatic weapons, uses globalstep to detect left mouse button + +`shooter_admin_weapons = true` + +-- Enable admin super weapons +-- This lets admins shoot guns automatically after 2 seconds without munition. + +`shooter_admin_weapons = false` + +-- Enable node destruction with explosives +shooter_enable_blasting = true + +-- Enable Crafting + +`shooter_enable_crafting = true` + +-- Enable particle effects + +`shooter_enable_particle_fx = true` + +-- Enable protection mod support, requires a protection mod that utilizes +-- minetest.is_protected(), tested with TenPlus1's version of [protector] + +`shooter_enable_protection = false` + +-- Particle texture used when a player or entity is hit + +`shooter_explosion = "shooter_hit.png"` + +-- Allow node destruction + +`shooter_allow_nodes = true` + +-- Allow entities in multiplayer mode + +`shooter_allow_entities = false` + +-- Allow players in multiplayer mode + +`shooter_allow_players = true` + +-- How often objects are fully reloaded + +`shooter_object_reload_time = 1` + +-- How often object positions are updated + +`shooter_object_update_time = 0.25` + +-- How often rounds are processed + +`shooter_rounds_update_time = 0.4` + +API Documentation +----------------- + +TODO diff --git a/shooter/README.txt b/shooter/README.txt deleted file mode 100644 index 2ec856a..0000000 --- a/shooter/README.txt +++ /dev/null @@ -1,206 +0,0 @@ -Minetest Mod - Simple Shooter [shooter] -======================================= - -Mod Version: 0.5.3 - -Minetest Version: 0.4.9, 0.4.10, 0.4.11 - -Depends: default, dye, tnt, wool - -An experimental first person shooter mod that uses simple vector mathematics -to produce an accurate and server-firendly method of hit detection. - -By default this mod is configured to work only against other players in -multiplayer mode and against Simple Mobs [mobs] in singleplayer mode. - -Configuration -============= - -Override the following default settings by adding them to your minetest.conf file. - --- Enable admin super weapons --- This lets admins shoot guns automatically after 2 seconds without munition. -shooter_admin_weapons = false - --- Enable node destruction with explosives -shooter_enable_blasting = true - --- Enable Crafting -shooter_enable_crafting = true - --- Enable particle effects -shooter_enable_particle_fx = true - --- Enable protection mod support, requires a protection mod that utilizes --- minetest.is_protected(), tested with TenPlus1's version of [protector] -shooter_enable_protection = false - --- Particle texture used when a player or entity is hit -shooter_explosion = "shooter_hit.png" - --- Allow node destruction -shooter_allow_nodes = true - --- Allow entities in multiplayer mode -shooter_allow_entities = false - --- Allow players in multiplayer mode -shooter_allow_players = true - --- How often objects are fully reloaded -shooter_object_reload_time = 1 - --- How often object positions are updated -shooter_object_update_time = 0.25 - --- How often rounds are processed -shooter_rounds_update_time = 0.4 - -Crafting -======== - - = grey, black, red, yellow, green, cyan, blue, magenta - -A = Arrow [shooter:arrow_white] -C = Color Dye [dye:] -W = Wooden Stick [default:stick] -P = Paper [default:paper] -S = Steel Ingot [default:steel_ingot] -B = Bronze Ingot [default:bronze_ingot] -M = Mese Crystal [default:mese_crysytal] -D = Diamond [default:diamond] -R = Red Wool [wool:red] -G = Gun Powder [tnt:gunpowder] - -Crossbow: [shooter:crossbow] - -+---+---+---+ -| W | W | W | -+---+---+---+ -| W | W | | -+---+---+---+ -| W | | B | -+---+---+---+ - -White Arrow: [shooter:arrow_white] - -+---+---+---+ -| S | | | -+---+---+---+ -| | W | P | -+---+---+---+ -| | P | W | -+---+---+---+ - -Coloured Arrow: [shooter:arrow_] - -+---+---+ -| C | A | -+---+---+ - -Pistol: [shooter:pistol] - -+---+---+ -| S | S | -+---+---+ -| | M | -+---+---+ - -Rifle: [shooter:rifle] - -+---+---+---+ -| S | | | -+---+---+---+ -| | B | | -+---+---+---+ -| | M | B | -+---+---+---+ - -Shotgun: [shooter:shotgun] - -+---+---+---+ -| S | | | -+---+---+---+ -| | S | | -+---+---+---+ -| | M | B | -+---+---+---+ - -Sub Machine Gun: [shooter:machine_gun] - -+---+---+---+ -| S | S | S | -+---+---+---+ -| | B | M | -+---+---+---+ -| | B | | -+---+---+---+ - -Ammo Pack: [shooter:ammo] - -+---+---+ -| G | B | -+---+---+ - -Grappling Hook: [shooter:grapple_hook] - -+---+---+---+ -| S | S | D | -+---+---+---+ -| S | S | | -+---+---+---+ -| D | | S | -+---+---+---+ - -Grappling Hook Gun: [shooter:grapple_gun] - -+---+---+ -| S | S | -+---+---+ -| | D | -+---+---+ - -Flare: [shooter:flare] - -+---+---+ -| G | R | -+---+---+ - -Flare Gun: [shooter:flaregun] - -+---+---+---+ -| R | R | R | -+---+---+---+ -| | | S | -+---+---+---+ - -Grenade: [shooter:grenade] - -+---+---+ -| G | S | -+---+---+ - -Flare Gun: [shooter:rocket_gun] - -+---+---+---+ -| B | S | S | -+---+---+---+ -| | | D | -+---+---+---+ - -Rocket: [shooter:rocket] - -+---+---+---+ -| B | G | B | -+---+---+---+ - -Turret: [shooter:turret] - -+---+---+---+ -| B | B | S | -+---+---+---+ -| | B | S | -+---+---+---+ -| | D | | -+---+---+---+ - diff --git a/shooter/api.lua b/shooter/api.lua index 674fbf6..b915f11 100644 --- a/shooter/api.lua +++ b/shooter/api.lua @@ -1,3 +1,22 @@ +--[[ +Shooter API [shooter] +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. +]]-- + shooter = { registered_weapons = {}, } @@ -60,7 +79,8 @@ shooter.register_weapon = function(name, def) description = def.description, inventory_image = def.inventory_image, on_use = function(itemstack, user) - if shooter.fire_weapon(user, itemstack, def.spec) then + local spec = table.copy(def.spec) + if shooter.fire_weapon(user, itemstack, spec) then itemstack:add_wear(def.spec.wear) if itemstack:get_count() == 0 then itemstack = def.unloaded_item.name diff --git a/shooter/description.txt b/shooter/description.txt index 35f0d03..1ec236f 100644 --- a/shooter/description.txt +++ b/shooter/description.txt @@ -1,2 +1,2 @@ -First person shooter mod. -Adds firearms plus a few other fun items. +Shooter Mod API. +Handles raycasting, blasting and audio-visual effects of dependent mods. diff --git a/shooter/init.lua b/shooter/init.lua index ca08b6c..299fcdc 100644 --- a/shooter/init.lua +++ b/shooter/init.lua @@ -1,3 +1,22 @@ +--[[ +Simple Shooter [shooter] +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 modname = minetest.get_current_modname() local modpath = minetest.get_modpath(modname) local worldpath = minetest.get_worldpath() diff --git a/shooter_crossbow/README.txt b/shooter_crossbow/README.txt new file mode 100644 index 0000000..b76f4f2 --- /dev/null +++ b/shooter_crossbow/README.txt @@ -0,0 +1,45 @@ +Minetest Mod - Crossbow [shooter_crossbow] +========================================== + +Depends: shooter, wool, dye + +Adds a crossbow with colored arrows. + +Crafting +======== + + = grey, black, red, yellow, green, cyan, blue, magenta + +A = Arrow [shooter:arrow_white] +C = Color Dye [dye:] +W = Wooden Stick [default:stick] +P = Paper [default:paper] +S = Steel Ingot [default:steel_ingot] +B = Bronze Ingot [default:bronze_ingot] + +Crossbow: [shooter_crossbow:crossbow] + ++---+---+---+ +| W | W | W | ++---+---+---+ +| W | W | | ++---+---+---+ +| W | | B | ++---+---+---+ + +White Arrow: [shooter_crossbow:arrow_white] + ++---+---+---+ +| S | | | ++---+---+---+ +| | W | P | ++---+---+---+ +| | P | W | ++---+---+---+ + +Coloured Arrow: [shooter_crossbow:arrow_] + ++---+---+ +| C | A | ++---+---+ + diff --git a/shooter_crossbow/depends.txt b/shooter_crossbow/depends.txt index 98dfd74..7429ba1 100644 --- a/shooter_crossbow/depends.txt +++ b/shooter_crossbow/depends.txt @@ -1,2 +1,3 @@ wool +dye shooter diff --git a/shooter_crossbow/description.txt b/shooter_crossbow/description.txt new file mode 100644 index 0000000..5fac182 --- /dev/null +++ b/shooter_crossbow/description.txt @@ -0,0 +1 @@ +Adds a crossbow with colored arrows. diff --git a/shooter_crossbow/init.lua b/shooter_crossbow/init.lua index 07f54ad..bbf35b1 100644 --- a/shooter_crossbow/init.lua +++ b/shooter_crossbow/init.lua @@ -1,3 +1,22 @@ +--[[ +Shooter Crossbow [shooter_crossbow] +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 config = { crossbow_uses = 50, arrow_lifetime = 180, diff --git a/shooter_crossbow/mod.conf b/shooter_crossbow/mod.conf new file mode 100644 index 0000000..ad37fd3 --- /dev/null +++ b/shooter_crossbow/mod.conf @@ -0,0 +1 @@ +name = shooter_crossbow diff --git a/shooter_flaregun/README.txt b/shooter_flaregun/README.txt new file mode 100644 index 0000000..85283cb --- /dev/null +++ b/shooter_flaregun/README.txt @@ -0,0 +1,28 @@ +Minetest Mod - Flare Gun [shooter_flaregun] +=========================================== + +Depends: shooter, tnt, wool + +Adds a flare-gun with temporary light emitting flares. + +Crafting +======== + +S = Steel Ingot [default:steel_ingot] +R = Red Wool [wool:red] +G = Gun Powder [tnt:gunpowder] + +Flare: [shooter_flaregun:flare] + ++---+---+ +| G | R | ++---+---+ + +Flare Gun: [shooter_flaregun:flaregun] + ++---+---+---+ +| R | R | R | ++---+---+---+ +| | | S | ++---+---+---+ + diff --git a/shooter_flaregun/depends.txt b/shooter_flaregun/depends.txt index a36e713..3a48c58 100644 --- a/shooter_flaregun/depends.txt +++ b/shooter_flaregun/depends.txt @@ -1,3 +1,3 @@ +shooter tnt wool -shooter diff --git a/shooter_flaregun/description.txt b/shooter_flaregun/description.txt new file mode 100644 index 0000000..63eb4eb --- /dev/null +++ b/shooter_flaregun/description.txt @@ -0,0 +1 @@ +Adds a flare-gun with temporary light emitting flares. diff --git a/shooter_flaregun/init.lua b/shooter_flaregun/init.lua index f26e4f1..2c41f6c 100644 --- a/shooter_flaregun/init.lua +++ b/shooter_flaregun/init.lua @@ -1,3 +1,22 @@ +--[[ +Shooter Flare Gun [shooter_flaregun] +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. +]]-- + minetest.register_craftitem("shooter_flaregun:flare", { description = "Flare", inventory_image = "shooter_flare_inv.png", diff --git a/shooter_flaregun/mod.conf b/shooter_flaregun/mod.conf new file mode 100644 index 0000000..a9a8ae4 --- /dev/null +++ b/shooter_flaregun/mod.conf @@ -0,0 +1 @@ +name = shooter_flaregun diff --git a/shooter_grenade/README.txt b/shooter_grenade/README.txt new file mode 100644 index 0000000..65cda3a --- /dev/null +++ b/shooter_grenade/README.txt @@ -0,0 +1,19 @@ +Minetest Mod - Grenade [shooter_grenade] +======================================== + +Depends: shooter, tnt + +Adds simple hand grenades. + +Crafting +======== + +S = Steel Ingot [default:steel_ingot] +G = Gun Powder [tnt:gunpowder] + +Grenade: [shooter_grenade:grenade] + ++---+---+ +| G | S | ++---+---+ + diff --git a/shooter_grenade/description.txt b/shooter_grenade/description.txt new file mode 100644 index 0000000..fc0aa1d --- /dev/null +++ b/shooter_grenade/description.txt @@ -0,0 +1 @@ +Adds simple hand grenades. diff --git a/shooter_grenade/init.lua b/shooter_grenade/init.lua index 7644336..56ab1ad 100644 --- a/shooter_grenade/init.lua +++ b/shooter_grenade/init.lua @@ -1,3 +1,22 @@ +--[[ +Shooter Grenade [shooter_grenade] +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. +]]-- + minetest.register_entity("shooter_grenade:grenade_entity", { physical = false, timer = 0, diff --git a/shooter_grenade/mod.conf b/shooter_grenade/mod.conf new file mode 100644 index 0000000..dd379be --- /dev/null +++ b/shooter_grenade/mod.conf @@ -0,0 +1 @@ +name = shooter_grenade diff --git a/shooter_guns/README.txt b/shooter_guns/README.txt new file mode 100644 index 0000000..1a22273 --- /dev/null +++ b/shooter_guns/README.txt @@ -0,0 +1,59 @@ +Minetest Mod - Shooter Guns [shooter_guns] +========================================== + +Depends: shooter + +Adds basic guns using the shooter API. + +Crafting +======== + +S = Steel Ingot [default:steel_ingot] +B = Bronze Ingot [default:bronze_ingot] +M = Mese Crystal [default:mese_crysytal] +G = Gun Powder [tnt:gunpowder] + +Pistol: [shooter_guns:pistol] + ++---+---+ +| S | S | ++---+---+ +| | M | ++---+---+ + +Rifle: [shooter_guns:rifle] + ++---+---+---+ +| S | | | ++---+---+---+ +| | B | | ++---+---+---+ +| | M | B | ++---+---+---+ + +Shotgun: [shooter_guns:shotgun] + ++---+---+---+ +| S | | | ++---+---+---+ +| | S | | ++---+---+---+ +| | M | B | ++---+---+---+ + +Sub Machine Gun: [shooter_guns:machine_gun] + ++---+---+---+ +| S | S | S | ++---+---+---+ +| | B | M | ++---+---+---+ +| | B | | ++---+---+---+ + +Ammo Pack: [shooter_guns:ammo] + ++---+---+ +| G | B | ++---+---+ + diff --git a/shooter_guns/description.txt b/shooter_guns/description.txt new file mode 100644 index 0000000..50838f1 --- /dev/null +++ b/shooter_guns/description.txt @@ -0,0 +1 @@ +Adds basic guns using the shooter API. diff --git a/shooter_guns/init.lua b/shooter_guns/init.lua index f8bf5cc..0808c4c 100644 --- a/shooter_guns/init.lua +++ b/shooter_guns/init.lua @@ -1,3 +1,22 @@ +--[[ +Shooter Guns [shooter_guns] +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. +]]-- + shooter.register_weapon("shooter_guns:pistol", { description = "Pistol", inventory_image = "shooter_pistol.png", diff --git a/shooter_guns/mod.conf b/shooter_guns/mod.conf new file mode 100644 index 0000000..4deaf44 --- /dev/null +++ b/shooter_guns/mod.conf @@ -0,0 +1 @@ +name = shooter_guns diff --git a/shooter_hook/README.txt b/shooter_hook/README.txt new file mode 100644 index 0000000..edeb696 --- /dev/null +++ b/shooter_hook/README.txt @@ -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 | ++---+---+ + diff --git a/shooter_hook/depends.txt b/shooter_hook/depends.txt index 91ee42b..8f4d06f 100644 --- a/shooter_hook/depends.txt +++ b/shooter_hook/depends.txt @@ -1 +1,2 @@ +tnt shooter diff --git a/shooter_hook/description.txt b/shooter_hook/description.txt new file mode 100644 index 0000000..f5dcd87 --- /dev/null +++ b/shooter_hook/description.txt @@ -0,0 +1 @@ +Adds a teleporting grapple hook and gun. diff --git a/shooter_hook/init.lua b/shooter_hook/init.lua index 5e8639d..18fcb16 100644 --- a/shooter_hook/init.lua +++ b/shooter_hook/init.lua @@ -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() diff --git a/shooter_hook/mod.conf b/shooter_hook/mod.conf new file mode 100644 index 0000000..ec64d4a --- /dev/null +++ b/shooter_hook/mod.conf @@ -0,0 +1 @@ +name = shooter_hook diff --git a/shooter_rocket/README.txt b/shooter_rocket/README.txt new file mode 100644 index 0000000..3daea5a --- /dev/null +++ b/shooter_rocket/README.txt @@ -0,0 +1,29 @@ +Minetest Mod - Rocket Launcher [shooter_rocket] +=============================================== + +Depends: shooter, tnt + +Adds rocket missiles and launching gun. + +Crafting +======== + +S = Steel Ingot [default:steel_ingot] +B = Bronze Ingot [default:bronze_ingot] +D = Diamond [default:diamond] +G = Gun Powder [tnt:gunpowder] + +Rocket: [shooter_rocket:rocket] + ++---+---+---+ +| B | G | B | ++---+---+---+ + +Rocket Gun: [shooter_rocket:rocket_gun] + ++---+---+---+ +| B | S | S | ++---+---+---+ +| | | D | ++---+---+---+ + diff --git a/shooter_rocket/description.txt b/shooter_rocket/description.txt new file mode 100644 index 0000000..a7de282 --- /dev/null +++ b/shooter_rocket/description.txt @@ -0,0 +1 @@ +Adds rocket missiles and launching gun. diff --git a/shooter_rocket/init.lua b/shooter_rocket/init.lua index edd6abd..4c96bb4 100644 --- a/shooter_rocket/init.lua +++ b/shooter_rocket/init.lua @@ -1,3 +1,22 @@ +--[[ +Shooter Rocket Gun [shooter_rocket] +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. +]]-- + minetest.register_craftitem("shooter_rocket:rocket", { description = "Rocket", stack_max = 1, diff --git a/shooter_rocket/mod.conf b/shooter_rocket/mod.conf new file mode 100644 index 0000000..e014e22 --- /dev/null +++ b/shooter_rocket/mod.conf @@ -0,0 +1 @@ +name = shooter_rocket diff --git a/shooter_turret/README.txt b/shooter_turret/README.txt new file mode 100644 index 0000000..58d343e --- /dev/null +++ b/shooter_turret/README.txt @@ -0,0 +1,25 @@ +Minetest Mod - Turret Gun [shooter_turret] +========================================== + +Depends: shooter_rocket + +Adds a mountable turret gun which can also be triggered by mesecon signals. +Still WIP and experimental and may be subject to change or removal. + +Crafting +======== + +S = Steel Ingot [default:steel_ingot] +B = Bronze Ingot [default:bronze_ingot] +D = Diamond [default:diamond] + +Turret Gun: [shooter_turret:turret] + ++---+---+---+ +| B | B | S | ++---+---+---+ +| | B | S | ++---+---+---+ +| | D | | ++---+---+---+ + diff --git a/shooter_turret/description.txt b/shooter_turret/description.txt new file mode 100644 index 0000000..24fef5f --- /dev/null +++ b/shooter_turret/description.txt @@ -0,0 +1,2 @@ +Adds a mountable turret gun which can also be triggered by mesecon signals. +Still WIP and experimental and may be subject to change or removal. diff --git a/shooter_turret/init.lua b/shooter_turret/init.lua index e66376d..d67242e 100644 --- a/shooter_turret/init.lua +++ b/shooter_turret/init.lua @@ -1,3 +1,22 @@ +--[[ +Shooter Turret Gun [shooter_turret] +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 use_player_api = minetest.get_modpath("player_api") local function get_turret_entity(pos) diff --git a/shooter_turret/mod.conf b/shooter_turret/mod.conf new file mode 100644 index 0000000..7adbeac --- /dev/null +++ b/shooter_turret/mod.conf @@ -0,0 +1 @@ +name = shooter_turret