do you wonder why your jet flames aren't damaging anything under you? do you miss the days before flitting everywhere like a bird, when you made places in your factory for cars and walking? jiggle the bits of this mod, and your answers will shine brightly where your feet don't step
im no clean up these code but key bits 4 u
local dist= settings.global["tfil-catch-fire-distance"].value
if Temporary.last_position[index] then
local x= math.abs(player.position.x - Temporary.last_position[index].x)
local y= math.abs(player.position.y - Temporary.last_position[index].y)
if( x*x + y*y < dist*dist ) then
player.surface.create_entity{name="fire-flame", position=player.position, force="neutral"}
end
end
{
type = "double-setting",
name = "tfil-catch-fire-distance",
setting_type = "runtime-global",
default_value = 2
}
remove most or all of functionality.lua
and the script.on_init
section
remove the manmade tile check and use like if player.character and not( string.find(tile.name, "water") or string.find(tile.name, "frozen-snow") or tile.name == "se-space" ) then
yes fires in space, direct heat damage to structures would be more realistic but this is ok