Help changing the tint on fire-flame smoke
Posted: Sat May 09, 2020 11:02 pm
Howdy. I've made a change to fire-flame, partially to be a different color given the environment. However, I'm struggling to get the roiling smoke clouds to have the new flame's tint.
Here's the route I went. The I tried both .tint and .color, using green as it's easy to tell if it is working. The flames are green, but the cloud of smoke still has the orange glow to it. Mainly I'm shotgunning changes in hopes they work... hence why adding it on both .smoke and .smoke_source_pictures.
Thanks for the assist.
Here's the route I went. The I tried both .tint and .color, using green as it's easy to tell if it is working. The flames are green, but the cloud of smoke still has the orange glow to it. Mainly I'm shotgunning changes in hopes they work... hence why adding it on both .smoke and .smoke_source_pictures.
Code: Select all
local flame = util.table.deepcopy (data.raw.fire["fire-flame"])
flame.name = test-flame"
flame.pictures = fireutil.create_fire_pictures (picture_opts) -- custom function to set the tint for the flames
for _, smoke in pairs (flame.smoke) do
smoke.color = fireutil.make_color (0, 1, 0, 0.75)
smoke.tint = fireutil.make_color (0, 1, 0, 0.75)
end
for _, smoke in pairs (flame.smoke_source_pictures) do
smoke.color = fireutil.make_color (0, 1, 0, 0.75)
smoke.tint = fireutil.make_color (0, 1, 0, 0.75)
end