AyleeJenn wrote: Fri Nov 13, 2020 3:59 pm
Hello!!!!
thank you so much for responding

I had kind of given up on even getting a response from anyone at all. How would I go about this? Would I have to modify the entry for a vehicle in the entities-prototype?and if this is correct, what would I need to put there? I have the vision, the idea, but I don't know how what line to write ... how do I put the fire and smoke animation to the vehicle when hull is below fifty percent?
There is few ways how to make it. I've used the
info-mod, but you can just open the vanilla prototypes and find what you need.
1. Find the car prototype, find and understand the prototype definition. Here is several ways how to do what you need.
1a. add the fire to each sprite with some paint-dot-net
1b. add the fire as a layer by the animation
1c. add the fire as a layer by the turret_animation, actually almost the same as 1b
1d. add the fire as a action by the track_particle_triggers
1f. add the fire as smoke by the car's burner.

- 2020-11-13T22_12_59-_D__Factorio_1.0_factorio-current.log - Notepad++.png (98.12 KiB) Viewed 2068 times
Fast 1f solution, but with extra smoke:
Code: Select all
data.raw.car.car.burner.smoke[2] =
{
name = "car-smoke",
deviation = {1, 1},
frequency = 2000,
position = {0, 1.5},
starting_frame = 0,
starting_frame_deviation = 60
}

- 2020-11-13T22_35_54-Factorio 1.0.0.png (203.06 KiB) Viewed 2050 times
or
Code: Select all
data.raw.car.car.burner.smoke[2] =
{
-- name = "car-smoke",
name = "smoke",
deviation = {1, 1},
frequency = 200,
position = {0, 0},
starting_frame = 0,
starting_frame_deviation = 60
}

- 2020-11-13T22_42_19-Factorio 1.0.0.png (756.77 KiB) Viewed 2045 times
or
Code: Select all
data.raw.car.car.burner.smoke[2] =
{
-- name = "car-smoke",
-- name = "smoke",
name = "fire-smoke-without-glow",
deviation = {0.2, 0.2},
-- frequency = 600,
frequency = 200,
-- position = {0, 1.5},
position = {0, 0},
starting_frame = 0,
starting_frame_deviation = 60
}

- 2020-11-13T22_49_51-Factorio 1.0.0.png (364.01 KiB) Viewed 2041 times

- 2020-11-13T22_51_49-Factorio 1.0.0.png (446.72 KiB) Viewed 2039 times
Cons: the smoke is by acceleration only.