[mod]ranged weapons[2021.03.05] [0.4] [rangedweapons]

User avatar
davidthecreator
Member
Posts: 452
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

[mod]ranged weapons[2021.03.05] [0.4] [rangedweapons]

by davidthecreator » Post

Image
This mod adds a veriety of ranged weapons, with several types of ammo for guns:

Handguns
*semi auto
*somewhat low clip size
*low damage
*pretty good accuracy
*quite low critical rate
machine pistols
*full auto
*high clip size
*extremelly low damage
*low accuracy
*really low critical rate
*really fast firing speed
sub-machineguns
*full auto
*high clip size
*low damage
*low accuracy
*really low critical rate
*really fast firing speed
assault rifles
*full auto
*high clip size
*Average damage
*low accuracy
*low to average critical rate
*fast firing speed
shotguns
*loads 1 bullet at a time
*requires pumping after each shot
*very low clip size
*good damage
*horrible accuracy
*average critical rate
*shoots a spread of bullets
auto-shotguns
*same as shotguns, but full-auto and loads whole magazine at once and has higher clip size
rifles
*low clip size
*the further away you shoot from, the better the damage
*maximal accuracy
*high critical rate
revolvers
*loads 1 bullet at a time
*very low clip size
*high damage
*high accuracy
*high critical rate
magnums
*semi-auto
*low clip size
*high damage
*high accuracy
*high critical rate
heavy machineguns
*full auto
*very high clip size
*average damage
*low accuracy
*low critical rate
*high firing speed
power weapons
*high damage
*maximal accuracy
*uses power particles as ammo (those can be only be obtained from the power particle generator)
*average critical rate
*firing speed depends on the gun
force gun
*pushes targets away instead of harming them directly
shurikens
*semi-auto (but without cooldown)
*all other stuff, depends on the material you make them from, comes in wood, stone, steel, bronze, gold, mese, diamond)
javelin
*can be thrown or used as a melee weapon
explosives
*grenade launchers
*explosive barrels
*rocket launchers (only 1 for now)
*hand grenades


Image
Image

for a guide on how to use each item in the mod and what is it capable of, just check it's describtion in game.

MT version: 0.5.3.0
Depends:
tnt, doors(optional), xpanes(optional), vessels(optional), moreores(extremelly optional)

recomendations:
any crafting recipe checking mod, 3d_armor, any mod that adds strong mobs(nssm for example)

license:
cc-by-sa 4.0

latest download:
https://github.com/daviddoesminetest/ra ... 20v0.4.zip

github rep:
https://github.com/daviddoesminetest/rangedweapons


Old stuff: (description for version 0.1 and 0.2 and 0.3 download)
Spoiler
rangedweapons 0.3.zip
(769.33 KiB) Downloaded 1600 times
rangedweapons0.2.zip
(189.19 KiB) Downloaded 830 times
rangedweapons.zip
(189 KiB) Downloaded 424 times
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
Last edited by davidthecreator on Fri Mar 05, 2021 19:01, edited 10 times in total.

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

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

by TheReaperKing » Post

This is awesome!!! Is it possible to make a machine gun or chaingun? Thanks for your hard work!
-Mike
Become A Real Life Superhero - http://SuperheroHill.com
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: 452
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

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

by davidthecreator » Post

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: 531
Joined: Sun Nov 22, 2015 21:36
Contact:

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

by TheReaperKing » Post

I've tried it but unfortunately his guns can't hurt players or mobs :\
Become A Real Life Superhero - http://SuperheroHill.com
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: 949
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med
Location: Australia...somewhere

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

by D00Med » Post

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: viewtopic.php?f=15&t=14051#p207242

User avatar
davidthecreator
Member
Posts: 452
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

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

by davidthecreator » Post

update!

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

User avatar
D00Med
Member
Posts: 949
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med
Location: Australia...somewhere

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

by D00Med » Post

Nice!
Look! I have a signature :]
My subgame: viewtopic.php?f=15&t=14051#p207242

User avatar
Krock
Developer
Posts: 4648
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

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

by Krock » Post

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:

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.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

u18398

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

by u18398 » Post

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 206 times

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

How could I miss this! It's awesome! I especially love the wield item!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
davidthecreator
Member
Posts: 452
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by davidthecreator » Post

HUGE NEW UPDATE!

*added critical hits
*damage is now randomised from lower to higher
*added a lot of new weapons
*added FULL-AUTO weapons
*most of the weapons now have cooldowns
*explosives (can be disabled in settings)
*texture and other improvements
*changed the way some of the weapons work
*other changes and improvements
*added setting to disable certain types of weapons or features
*killed over 1337 mobs in various ways (100% for testing purposes, I swear!)
*all guns (except power ones) are capable of breaking glass objects (can be disabled in settings) shotguns can also break wooden doors (can also be diabled in settings) and every single gun can blow up explosive barrels and ARE the only way to do so.



*some of the items were removed tho...

TheReaperKing wrote:This is awesome!!! Is it possible to make a machine gun or chaingun? Thanks for your hard work!
-Mike
welp... comrade... I did it... there's now: machine pistols, SMG's, auto-shotguns, assault rifles, heavy machineguns (including minigun, which is pretty much chaingun)

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Stix » Post

Multiple sets of bullet-resistant armor please!
Hey, what can i say? I'm the bad guy.

User avatar
Lone_Wolf
Member
Posts: 2575
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Lone_Wolf » Post

Interesting update. I'll have to see how you did the automatic weapons...
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Stix » Post

Ok so i tried it out yesterday with my sister in local-multiplayer and came across an issue: bullets collide with eachother, meaning if we both had a minigun (for example) and shot at eachother noone would die because the bullets act like a shield :-(.

*EDIT: Also even machine guns need to be reloaded every once in a while :P.
Hey, what can i say? I'm the bad guy.

User avatar
casp3r
Member
Posts: 21
Joined: Sat Nov 11, 2017 10:38

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by casp3r » Post

just the best weapon mod

shot the player and mobs (redo or c.m.e ) (love that), and explosive destroying map , sounds amazing, new texture just incredible,
(but black plastic sheet recipe was better with "plastic sheet"(technic) and not "tree" ?)
really good work i adopt it
but conflict with "explosives" mod : viewtopic.php?t=14720

can you fix it please i really want have the two mod together i don't know how to do that
(or better integred it pleeeeeaaaase)

and it was just perfect :)

User avatar
davidthecreator
Member
Posts: 452
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by davidthecreator » Post

casp3r wrote:just the best weapon mod

shot the player and mobs (redo or c.m.e ) (love that), and explosive destroying map , sounds amazing, new texture just incredible,
(but black plastic sheet recipe was better with "plastic sheet"(technic) and not "tree" ?)
really good work i adopt it
but conflict with "explosives" mod : viewtopic.php?t=14720

can you fix it please i really want have the two mod together i don't know how to do that
(or better integred it pleeeeeaaaase)

and it was just perfect :)
I Will keep the plastic sheet recipe the same, as I don't want the mod to depend on techinc, just so players could craft a material for making guns...

And in what way exactly does this mod conflict with "explosives" mod?

I checked the mod out along with rangedweapons, and they both seemed to work just fine...

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Stix » Post

Another issue: laser weapons deal 0 dmg half the time no matter the distance.
Hey, what can i say? I'm the bad guy.

User avatar
davidthecreator
Member
Posts: 452
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by davidthecreator » Post

Stix wrote:Another issue: laser weapons deal 0 dmg half the time no matter the distance.
Were you shooting another player, who's wearing armor with "heal" ?

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Stix » Post

davidthecreator wrote:
Stix wrote:Another issue: laser weapons deal 0 dmg half the time no matter the distance.
Were you shooting another player, who's wearing armor with "heal" ?
Doesn't all armor have heal values? But yes, they were wearing diamond armor.

And about bullets colliding with eachother?
Hey, what can i say? I'm the bad guy.

User avatar
davidthecreator
Member
Posts: 452
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by davidthecreator » Post

Stix wrote:
davidthecreator wrote:
Stix wrote:Another issue: laser weapons deal 0 dmg half the time no matter the distance.
Were you shooting another player, who's wearing armor with "heal" ?
Doesn't all armor have heal values? But yes, they were wearing diamond armor.

And about bullets colliding with eachother?
Well, if "heal" was involved, then there's no bug...

The way "heal" works, is providing player with chance to completely block damage...

So if a player is wearing full diamond set (60 heal)
The player has 60% chance to take 0 damage, no matter what source it comes from... Laser guns, regular guns... Or even stuff completely unrelated to rangedweapons (lava, falling, mob/player Mele attacks, drowning, etc)

And about the bullet collision... Doubt I will come up with something smart, aspecially without screwing something up, so I might try reducing bullet collision range, which will mean bullets would still be able to collide, but it would be harder to hit a bullet with another one.

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Stix » Post

Maybe try looking at how "simple_shooter" by Stu works? AFAIK It's never had bullet-collision problems in all its years of use on CTF.
Hey, what can i say? I'm the bad guy.

User avatar
Lone_Wolf
Member
Posts: 2575
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Lone_Wolf » Post

stu's mod uses a particle for the bullet IIRC. You might want to check out his code. I think it's a little more lightweight
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by GreenXenith » Post

The particle in simple_shooter is just visual. The actual hit is with a hacky vector ray (because actual vector rays aren't until 5.0.0).
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Stix » Post

GreenDimond wrote:The particle in simple_shooter is just visual. The actual hit is with a hacky vector ray (because actual vector rays aren't until 5.0.0).
Well from my years of experience on CTF the visual particle collides with the player at the same time they take dmg from the gun, meaning the vector-ray and particle are aligned perfectly on the same trajectory and speed.
Hey, what can i say? I'm the bad guy.

User avatar
casp3r
Member
Posts: 21
Joined: Sat Nov 11, 2017 10:38

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by casp3r » Post

davidthecreator wrote:
casp3r wrote:just the best weapon mod

shot the player and mobs (redo or c.m.e ) (love that), and explosive destroying map , sounds amazing, new texture just incredible,
(but black plastic sheet recipe was better with "plastic sheet"(technic) and not "tree" ?)
really good work i adopt it
but conflict with "explosives" mod : viewtopic.php?t=14720

can you fix it please i really want have the two mod together i don't know how to do that
(or better integred it pleeeeeaaaase)

and it was just perfect :)
I Will keep the plastic sheet recipe the same, as I don't want the mod to depend on techinc, just so players could craft a material for making guns...

And in what way exactly does this mod conflict with "explosives" mod?

I checked the mod out along with rangedweapons, and they both seemed to work just fine...
when i start with ranged weapon + explosives activated
i have this :
2018-08-29 23:48:02: ACTION[Main]: MOD: Explosives loading...
2018-08-29 23:48:02: ERROR[Main]: ModError: Failed to load and run script from D:\minetest-0.4.16\bin\..\mods\explosives\init.lua:
2018-08-29 23:48:02: ERROR[Main]: D:\minetest-0.4.16\bin\..\mods\explosives\init.lua:12: attempt to index global 'explosives' (a boolean value)
2018-08-29 23:48:02: ERROR[Main]: stack traceback:
2018-08-29 23:48:02: ERROR[Main]: D:\minetest-0.4.16\bin\..\mods\explosives\init.lua:12: in main chunk
2018-08-29 23:48:02: ERROR[Main]: Voir debug.txt pour plus d'informations.
and if i disable explosives all work fine (or explosives without ranged weapon (but together i have this thing))

and this is the line 10=>21 of init.lua apprently concerned (mod explosives)

Code: Select all

--internationalization
if minetest.get_modpath("intllib") then
	explosives.i18n = intllib.Getter()
else
	explosives.i18n = function(s,a,...)
		a={a,...}
		local v = s:gsub("@(%d+)", function(n)
			return a[tonumber(n)]
		end)
		return v
	end
	end
if i have understood something, the probleme is in line 12:
"explosives.i18n = intllib.Getter()"
hummm.....ok what i'm supose to do with that shit ..... XD
i'm not a dev and changing mod recipes and textur has already a big victory for me and i'm just don't know what the line 12 want to say
it's already bad start :)

i have changed the recipe for black plastic already :) it was good hidden in "misc" i have take lot of time before reading all the "dofile" in the init to finaly find the recipe file ;p

usualy they all are in a "item" or "craft" file but not this time

but this is the best i can do
so i need help :)
Last edited by casp3r on Wed Aug 29, 2018 22:28, edited 8 times in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests