[Mod] Fire Plus [fire_plus]

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

[Mod] Fire Plus [fire_plus]

by Lone_Wolf » Post

Fire Plus

Allows players to be lit on fire.

Image Image

Downloads: Latest Stable
View: Source Code | ContentDB

License of Code: MIT
License of Media: CC BY 4.0

Depends: fire
Optional Depends: default, 3d_armor, tnt
Last edited by Lone_Wolf on Tue Jan 26, 2021 23:12, edited 1 time in total.

u18398

Re: [Mod] Fire Plus [fire_plus]

by u18398 » Post

Cool, I will make you burn when you eat farming:chili :D

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

Re: [Mod] Fire Plus [fire_plus]

by Lone_Wolf » Post

haha that's a nice idea. I wonder what happens if you set damage to 0 :thinking:

If you want any API features lemme know
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

u18398

Re: [Mod] Fire Plus [fire_plus]

by u18398 » Post

Lone_Wolf wrote:
Tue Jan 19, 2021 16:38
haha that's a nice idea. I wonder what happens if you set damage to 0 :thinking:

If you want any API features lemme know
Thank you, I will think about it. Setting players on fire after having eaten something, already
is possible without any additions. :)

u18398

Re: [Mod] Fire Plus [fire_plus]

by u18398 » Post

Lol, I did it:

source: https://github.com/berengma/hot_chili
file: https://github.com/berengma/hot_chili/a ... master.zip


You can register more food with:
hot_chili.register_hot_food(name,burntime)


XD

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

Re: [Mod] Fire Plus [fire_plus]

by Lone_Wolf » Post

Version 1.1

  • 3d_armor support - tenplus1
  • Improved mod's speed - tenplus1
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
daret
Member
Posts: 136
Joined: Tue Nov 12, 2019 20:36
GitHub: daretmavi
In-game: Daretmavi

Re: [Mod] Fire Plus [fire_plus]

by daret » Post

Hi,

I like this mod.

The only think I find a little bit disruptive, is the static fire image on the HUD.
I tried to simulate it with HUD change in minetest.register_globalstep(function(dtime).
(https://github.com/daretmavi/fire_plus)

Maybe you could implement something like that (eventually with switch in settingtypes.txt).

Next idea.
Is it possible to mount fire "texture" on player and use smoke as particle (like smoke_puff.png)?

User avatar
daret
Member
Posts: 136
Joined: Tue Nov 12, 2019 20:36
GitHub: daretmavi
In-game: Daretmavi

Re: [Mod] Fire Plus [fire_plus]

by daret » Post

I tried it with second ParticleSpawner and it looks pretty good.
Spoiler

Code: Select all

particlespawner_id2 = minetest.add_particlespawner({
				amount = 5,
				time = 0,
				minpos = vector.new(0, 0.5, -0.3),
				maxpos = vector.new( 0, 0.5, 0.3),
				minvel = {x = 0, y = 0, z = 0},
				maxvel = {x =  0, y = 0, z =  0},
				minacc = {x =  0, y = 0, z =  0},
				maxacc = {x =  0, y = 0, z =  0},
				minexptime = 0.5,
				maxexptime = 1,
				minsize = 10,
				maxsize = 10,
				texture = "fire_basic_flame_animated.png",
				animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length = 1,},
				collisiondetection = false,
				glow = minetest.LIGHT_MAX,
				attached = player,
			})

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 15 guests