Page 1 of 2

[Mod] Grenades API [grenades]

Posted: Fri Nov 23, 2018 03:02
by Lone_Wolf
Grenades API

Adds an API for easily creating throwable grenades.

Downloads: Latest Stable

View: On ContentDB
View: Source Code

License: MIT

Depends: None
Optional Depends: None

Re: [Mod] Grenades [grenades] [v0.5]

Posted: Fri Nov 23, 2018 21:00
by Lone_Wolf
Update!
  • Flashbang was nerfed
  • Regular grenade was nerfed a little too much, undid this
  • Added crafting recipes
  • Fixed a bug with the flashbang
  • Few other minor changes

Re: [Mod] Grenades [grenades] [v0.5]

Posted: Sat Nov 24, 2018 00:35
by DELTA_FORCE
So what exactly is in the mod? Maybe specifying what is in the mod would make it more appealing.

Re: [Mod] Grenades [grenades] [v0.5]

Posted: Sat Nov 24, 2018 00:54
by Lone_Wolf
DELTA_FORCE wrote:So what exactly is in the mod? Maybe specifying what is in the mod would make it more appealing.
+ Spoiler

Re: [Mod] Grenades [grenades] [v0.5]

Posted: Sat Nov 24, 2018 01:08
by DELTA_FORCE
Ok cool thanks!

Re: [Mod] Grenades [grenades] [v0.5]

Posted: Sat Nov 24, 2018 02:03
by BrunoMine
I've been thinking about it for some time. Thanks for the initiative, I want to help with the API to support the future grenades I want to do.
These initiatives save a lot of development time.
I do not know if you know how to work cooperatively or if you want to get help on this project, in that case you can expect me in github.

Screenshots on the first post, please.

Re: [Mod] Grenades [grenades] [v0.5]

Posted: Sat Nov 24, 2018 02:42
by Stix
An idea: how-about it someone shoots a placed grenade it sets it off? :D

Re: [Mod] Grenades [grenades] [v0.5]

Posted: Sat Nov 24, 2018 03:47
by Lone_Wolf
Stix wrote:An idea: how-about it someone shoots a placed grenade it sets it off? :D
That would probably be up to the mod that adds the guns. It should be pretty easy to do. If needed I could store the on_explode function in the global grenades variable

Re: [Mod] Grenades [grenades] [v0.5]

Posted: Sat Nov 24, 2018 03:54
by Lone_Wolf
BrunoMine wrote:I do not know if you know how to work cooperatively or if you want to get help on this project, in that case you can expect me in github.
Either works. Whichever is easiest for you. What grenades are you planning on doing?
BrunoMine wrote:Screenshots on the first post, please.
Done. I'll have to get some better ones soon.

Re: [Mod] Grenades [grenades] [v0.5]

Posted: Sat Nov 24, 2018 04:27
by TumeniNodes
don't forget to add
https://en.wikipedia.org/wiki/M18_Claymore_mine
these could be tuned to work with technics

and RPGs

Re: [Mod] Grenades [grenades] [v0.5]

Posted: Sat Nov 24, 2018 04:43
by Lone_Wolf
TumeniNodes wrote:don't forget to add
https://en.wikipedia.org/wiki/M18_Claymore_mine
these could be tuned to work with technics
lol, tempting. Probably be laggy if it has to check for players every tenth of a second though. Might release it as an 'addon'

Re: [Mod] Grenades [grenades] [v0.5]

Posted: Sat Nov 24, 2018 16:25
by Lone_Wolf
Update!
  • Improved API.
  • Added API.md file (See original post)
  • Added missing depends.txt
  • Added trailing smoke particles to smoke grenade (See original post or spoiler below)
  • Fixed a bug or two
  • Quite a few other things I've forgotten
+ Spoiler

Re: [Mod] Grenades [grenades] [v0.8-stable]

Posted: Sun Jan 13, 2019 21:22
by Lone_Wolf
Update!
  • Added sounds (WIP)
  • Improved the grenades
  • New license for textures
  • Minor improvements

Re: [Mod] Grenades [v0.8] [grenades]

Posted: Sun Feb 10, 2019 00:14
by MHL
Which version of CC BY?

Re: [Mod] Grenades [v0.8] [grenades]

Posted: Sun Feb 10, 2019 01:13
by Lone_Wolf
migdyn wrote:Which version of CC BY?
4.0
I've updated the OP. I must have forgotten to put in the version number

Re: [Mod] Grenades [grenades]

Posted: Sun Feb 10, 2019 15:45
by MHL
Thank you!

Re: [Mod] Grenades [grenades]

Posted: Mon Dec 30, 2019 21:31
by Lone_Wolf
Update!
  • Greatly improved grenade physics
  • Remove backwards compat with older version
  • A few small tweaks
basic_grenades has been tweaked a bit too. I've improved the recipes, added an explosion texture to the frag grenade (the itemstring of which has changed btw), and improved how the other grenades work (flashbang is a little less buggy now)

Re: [Mod] Grenades API [grenades]

Posted: Thu Feb 13, 2020 09:46
by Adnunano
In any future will grenades hurt the enviroment and the animals?

Re: [Mod] Grenades API [grenades]

Posted: Fri Feb 14, 2020 05:28
by Lone_Wolf
Adnunano wrote:In any future will grenades hurt the enviroment and the animals?
Doesn't make sense for any but the frag grenade, but I've added plant/entity damage to my list for when I get back to my computer, which will be in two weeks.
If you were talking about the API: It doesn't handle any of that

Re: [Mod] Grenades API [grenades]

Posted: Fri Feb 14, 2020 07:09
by Adnunano
Better than nothing.I look forward to it.Thanks for taking my suggestion.

Re: [Mod] Grenades API [grenades]

Posted: Fri Feb 28, 2020 17:32
by Lone_Wolf
Mobs now take damage from other entities.
Terrain damage is already supported it seems. Frag grenades will destroy flora and nodes with the dig_immediate group

Re: [Mod] Grenades API [grenades]

Posted: Sat Feb 29, 2020 07:01
by Adnunano
Astonishing.Again,thanks for making minetest more enjoyable.Now i can quickly kill the bears in the caves.Looks like Mobkit api is unsupported but mods_redo api are supported. Are you planning to add more grenade types like molotov?

Re: [Mod] Grenades API [grenades]

Posted: Sat Feb 29, 2020 15:34
by Lone_Wolf
Adnunano wrote:Astonishing.Again,thanks for making minetest more enjoyable.Now i can quickly kill the bears in the caves.Looks like Mobkit api is unsupported but mods_redo api are supported. Are you planning to add more grenade types like molotov?
Yep, eventually. I'll probably do a 'fire_grenades' mod if I can think of some other fire related grenades to do
What mobkit mobs did you test this with? It should work fine with them

Re: [Mod] Grenades API [grenades]

Posted: Sun Mar 01, 2020 05:43
by Adnunano
I tested it with petz and wildlife mods.

Re: [Mod] Grenades API [grenades]

Posted: Mon Mar 02, 2020 23:53
by runs
Lone_Wolf wrote:
Adnunano wrote:Astonishing.Again,thanks for making minetest more enjoyable.Now i can quickly kill the bears in the caves.Looks like Mobkit api is unsupported but mods_redo api are supported. Are you planning to add more grenade types like molotov?
Yep, eventually. I'll probably do a 'fire_grenades' mod if I can think of some other fire related grenades to do
What mobkit mobs did you test this with? It should work fine with them
Hp default was buggy so mobkit introduced it own damage system. mobkit.hurt is the function to damage.