Page 1 of 1

[Mod] NSSBombs [throwitems API]

PostPosted: Sat Jan 21, 2017 22:30
by npx
I've initially written this mod as part of nssm, but then I thought it could be useful for everybody even the one who don't use nssm and so I extracted it and rewritten it as an API mod.
It allows you to define every kind of throwitems in a really simple way, it is so intended for modders, but it contains also some standard bombs already defined for the players.
For example:

Schematic bomb (spawns a small house):
Image
Teleport bomb:
Image
Fire circle bomb:
Image
Lava bomb:
Image
Wall bomb (spawns a stone wall):
Image
Simple bomb:
Image

Github: https://github.com/NPXcoot/nssbombs
Direct download: https://github.com/NPXcoot/nssbombs/archive/master.zip

Guide: https://github.com/NPXcoot/nssbombs/blo ... manual.txt

License:
- code: GPLv3
- media (textures): CC BY-SA 4.0

Re: [Mod] NSSBombs [throwitems API]

PostPosted: Sun Jan 22, 2017 01:42
by duane
Very nice, and documentation too. I was just thinking about something like this.

Re: [Mod] NSSBombs [throwitems API]

PostPosted: Sun Jan 22, 2017 09:26
by Krock
Well done! You've got a simple but powerful API there - should be quite easy to add further bombs, such as dirt bombs, assassin bombs or a lion spawner (if I had a lion mob..).

Re: [Mod] NSSBombs [throwitems API]

PostPosted: Sun Jan 22, 2017 14:17
by npx
Added "sphere_cover" type of explosion thanks to Duane!

Krock wrote:Well done! You've got a simple but powerful API there - should be quite easy to add further bombs, such as dirt bombs, assassin bombs or a lion spawner (if I had a lion mob..).

Of course! Now you only need the Lion;) Thank you for your appreciation!

Re: [Mod] NSSBombs [throwitems API]

PostPosted: Sun Jan 22, 2017 18:38
by azekill_DIABLO
perfect base for a bigger thing, original!

Re: [Mod] NSSBombs [throwitems API]

PostPosted: Tue Jan 24, 2017 15:46
by Andrey01
Nice, but some your bombs have already in NSSM, you should add these bombs there

Re: [Mod] NSSBombs [throwitems API]

PostPosted: Tue Jan 24, 2017 16:24
by azekill_DIABLO
i think we could have a more powerful version of fire circle, than spawns a large sphere of fire! it could be even more useful, for burning thing and maybe killing birds... idk.

then tp bomb could have a little particle or sound effect. maybe booth.

the stone wall is very cool. why not add a "we need to build a wall" version with spikes and concrete? ;)

cheers, azekill_DIABLO

Re: [Mod] NSSBombs [throwitems API]

PostPosted: Tue Jan 24, 2017 18:19
by npx
This is an API to add bombs so you can use it to easily create every bomb you can think about.
For example to make a bomb that spawns a sphere of fire you only need to change a parameter in its definition:
from shape = "circle" to shape = "sphere".

Besides that there are more bombs already defined than the ones I included in the preview.

Andrey01 wrote:Nice, but some your bombs have already in NSSM, you should add these bombs there


The next version of nssm will include all of these.

Re: [Mod] NSSBombs [throwitems API]

PostPosted: Wed Jan 25, 2017 09:28
by azekill_DIABLO
Thank you npx i will look into this! can i use your code for mila ranged entities?

Re: [Mod] NSSBombs [throwitems API]

PostPosted: Wed Jan 25, 2017 14:46
by npx
Of course!

Re: [Mod] NSSBombs [throwitems API]

PostPosted: Wed Jan 25, 2017 14:49
by azekill_DIABLO
npx wrote:Of course!

Nice!