[Mod] Grenades API [grenades]

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

[Mod] Grenades API [grenades]

by Lone_Wolf » Post

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
Last edited by Lone_Wolf on Sun Feb 09, 2020 19:26, edited 12 times in total.

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

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

by Lone_Wolf » Post

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

DELTA_FORCE
Member
Posts: 132
Joined: Tue Oct 30, 2018 01:26
IRC: DELTA_FORCE
In-game: DELTA_FORCE
Location: Somewhere in the Atlantic

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

by DELTA_FORCE » Post

So what exactly is in the mod? Maybe specifying what is in the mod would make it more appealing.
MT5.3.0 for the win!

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

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

by Lone_Wolf » Post

DELTA_FORCE wrote:So what exactly is in the mod? Maybe specifying what is in the mod would make it more appealing.
+ Spoiler

DELTA_FORCE
Member
Posts: 132
Joined: Tue Oct 30, 2018 01:26
IRC: DELTA_FORCE
In-game: DELTA_FORCE
Location: Somewhere in the Atlantic

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

by DELTA_FORCE » Post

Ok cool thanks!
MT5.3.0 for the win!

User avatar
BrunoMine
Member
Posts: 1073
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

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

by BrunoMine » Post

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.

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

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

by Stix » Post

An idea: how-about it someone shoots a placed grenade it sets it off? :D
Hey, what can i say? I'm the bad guy.

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

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

by Lone_Wolf » Post

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
Last edited by Lone_Wolf on Sat Nov 24, 2018 04:01, edited 1 time in total.

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

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

by Lone_Wolf » Post

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.

User avatar
TumeniNodes
Member
Posts: 2853
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

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

by TumeniNodes » Post

don't forget to add
https://en.wikipedia.org/wiki/M18_Claymore_mine
these could be tuned to work with technics

and RPGs
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

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

by Lone_Wolf » Post

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'

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

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

by Lone_Wolf » Post

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

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

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

by Lone_Wolf » Post

Update!
  • Added sounds (WIP)
  • Improved the grenades
  • New license for textures
  • Minor improvements

MHL
Member
Posts: 323
Joined: Mon Aug 20, 2018 00:44
Location: Somewhere in SSWZ

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

by MHL » Post

Which version of CC BY?
Come see my Minetest Puzzle MAP

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

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

by Lone_Wolf » Post

migdyn wrote:Which version of CC BY?
4.0
I've updated the OP. I must have forgotten to put in the version number

MHL
Member
Posts: 323
Joined: Mon Aug 20, 2018 00:44
Location: Somewhere in SSWZ

Re: [Mod] Grenades [grenades]

by MHL » Post

Thank you!
Come see my Minetest Puzzle MAP

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: [Mod] Grenades [grenades]

by Lone_Wolf » Post

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)

Adnunano
Member
Posts: 22
Joined: Thu Feb 13, 2020 09:28

Re: [Mod] Grenades API [grenades]

by Adnunano » Post

In any future will grenades hurt the enviroment and the animals?

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: [Mod] Grenades API [grenades]

by Lone_Wolf » Post

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

Adnunano
Member
Posts: 22
Joined: Thu Feb 13, 2020 09:28

Re: [Mod] Grenades API [grenades]

by Adnunano » Post

Better than nothing.I look forward to it.Thanks for taking my suggestion.

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: [Mod] Grenades API [grenades]

by Lone_Wolf » Post

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

Adnunano
Member
Posts: 22
Joined: Thu Feb 13, 2020 09:28

Re: [Mod] Grenades API [grenades]

by Adnunano » Post

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?

User avatar
Lone_Wolf
Member
Posts: 2355
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: [Mod] Grenades API [grenades]

by Lone_Wolf » Post

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

Adnunano
Member
Posts: 22
Joined: Thu Feb 13, 2020 09:28

Re: [Mod] Grenades API [grenades]

by Adnunano » Post

I tested it with petz and wildlife mods.

User avatar
runs
Member
Posts: 1751
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [Mod] Grenades API [grenades]

by runs » Post

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.
Day 42 of the quarantine

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests