[mod]ranged weapons[2016.07.21] [0.2] [rangedweapons]

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

[mod]ranged weapons[2016.07.21] [0.2] [rangedweapons]

by davidthecreator » Sat Jul 16, 2016 21:01

Image

hello minetest!

today i present you the ranged weapons mod!

it adds some throwable weapons and guns

that includes:
Image

shurikens: wooden, stone, steel, bronze, gold, mese, diamond (they deal as much damages as the same material sword would, the golden one is as strong as mese)

javelin: deals 6 damage and penetrates mobs/players

guns:
3 handguns: (makarov and bereta98 uses 9mm bullets while desert eagle uses 375. bullets, handguns are low at damage and velocity, but quite cheap)

3 revolvers: (uses 375. bullets, deals higher damage than handguns and has bigger velocity than any other guns, not as cheap as handguns, but still not too expensive to make)

4 rifles: ( uses 10mm bullets, deals highest damage of all other guns and penetrates mobs/players, also, they got higher velocity than handguns, but not as high as revolvers, they are quite expensive to make)

4 shotguns: (uses shotgun shells to shoot, theyr damages ain't so high, but they can harm a swarm of players/mobs in 1 shot if they all are close to each other, and those are quite expensive to make)

2 power guns:
electro gun: (uses power charges to shoot, it shoots a slowly moving, big area reaching electric charge, that continously damages players/mobs that are touching it, it penetrates then aswell!, this one is extra expensive to make, but believe me, it will make you unbeatable against players without diamond armor, and the strongest of mobs!)

laser rifle: (uses poer charges to shoot, it shots a laser beam that penetrates mobs/players and blocks, and that lets you reach even the mobs and players behind walls!, might not be as expensive as electro gun, but still it sick expensive to make!)

as a bonus, this mod also makes "default:clay_brick: (clay brick) throwable!

now for the recipes!
Image

some code from "throwing" mod was used to make this mod

depends: default, moreores (some recipes needs silver and mithril!)
license: WTFPL (do what the @#$% you want with the public license)
mt version: tested on mt 0.4.14 (should work with 0.4.10 - 0.4.13 aswell)
recomendation: use wield3d made by stu with this mod, and then make people in multiplayer s&$% theyr pants when they see u with the gigantic jackhammer ;D
Attachments
rangedweapons0.2.zip
(189.19 KiB) Downloaded 253 times
rangedweapons.zip
(189 KiB) Downloaded 150 times
Last edited by davidthecreator on Thu Jul 21, 2016 20:17, edited 2 times in total.
 

User avatar
TheReaperKing
Member
 
Posts: 493
Joined: Sun Nov 22, 2015 21:36

Re: [mod]ranged weapons[2016.07.16] [0.1] [rangedweapons]

by TheReaperKing » Sat Jul 16, 2016 22:37

This is awesome!!! Is it possible to make a machine gun or chaingun? Thanks for your hard work!
-Mike
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com

Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com

Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids
 

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

Re: [mod]ranged weapons[2016.07.16] [0.1] [rangedweapons]

by davidthecreator » Sat Jul 16, 2016 22:47

TheReaperKing wrote:This is awesome!!! Is it possible to make a machine gun or chaingun? Thanks for your hard work!
-Mike


your welcome, idk if i will manage to ever create a gun that would work automatically, but theres one gun in kaeza's firearms mod.
 

User avatar
TheReaperKing
Member
 
Posts: 493
Joined: Sun Nov 22, 2015 21:36

Re: [mod]ranged weapons[2016.07.16] [0.1] [rangedweapons]

by TheReaperKing » Sat Jul 16, 2016 23:57

I've tried it but unfortunately his guns can't hurt players or mobs :\
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com

Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com

Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids
 

User avatar
D00Med
Member
 
Posts: 712
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med

Re: [mod]ranged weapons[2016.07.16] [0.1] [rangedweapons]

by D00Med » Sun Jul 17, 2016 01:31

Looks really good!
edit: it is really good!
Just a suggestion; instead of using a single massive entity for shot, you could make lots of little entities but give them different acceleration or velocity, that way they would spread out but not from the moment they are fired.
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

Re: [mod]ranged weapons[2016.07.16] [0.1] [rangedweapons]

by davidthecreator » Thu Jul 21, 2016 20:16

update!

as D00Med suggested, shotguns now shoot a spread of bullets!
 

User avatar
D00Med
Member
 
Posts: 712
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med

Re: [mod]ranged weapons[2016.07.21] [0.2] [rangedweapons]

by D00Med » Thu Jul 21, 2016 20:29

Nice!
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [mod]ranged weapons[2016.07.21] [0.2] [rangedweapons]

by Krock » Sat Jul 23, 2016 07:46

The war may begin! Well done, this is a good mod to make survival servers more interesting. Also the shooter mod should work parallel to this one. Are there plans to provide recipes for the case moreores is not available? (making it an optional dependency)

A suggestion for the code: Right now there are about 1000 lines of code that could be saved.
My idea would be to write a new function to do on_step, using the given tool parameters:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
function do_onstep_thing(self, dtime, cooldown_time, damage, entity_name, drop_item_name)
   self.timer = self.timer + dtime
   ...
end

RANGEDWEAPONS_STEELSR.on_step = function(self, dtime)
   do_onstep_thing(self, dtime, 0.06, 6, "rangedweapons:steelsr", "rangedweapons:steel_shuriken")
end

RANGEDWEAPONS_MESESR.on_step = function(self, dtime)
   do_onstep_thing(self, dtime, 0.055, 7, "rangedweapons:mesesr", "rangedweapons:mese_shuriken")
end


Having this mod on Github would be very helpul to contribute.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

Gundul
Member
 
Posts: 177
Joined: Thu Aug 27, 2015 10:55
GitHub: berengma
IRC: Gundul

Re: [mod]ranged weapons[2016.07.21] [0.2] [rangedweapons]

by Gundul » Sat Nov 05, 2016 10:36

Thanks for your great mod !

I added to my server to use weapons for hunting.
Only two things i changed:

- first restricted weapon use to a special area (hunting area in my server)
- second the drops of shuriken, javelins and so on when hitting a node
dropping on the floor is buggy and crashed server recently. so i deleted it.


Area restriction of weapons might be useful on other servers too, so no griefers
can disturb other players. Here is the code of init.lua:

init.lua.zip
new init.lua
(5.29 KiB) Downloaded 65 times
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 41 guests