[0.12.33] Animation Speed of flame-thrower-explosion
Posted: Thu May 26, 2016 1:25 pm
Hey,
today i have been messing around with the flamethrower, trying to modify the animation speed of its projectiles to get them to live longer, travel further etc. The part i modified was in
"__base__/prototypes/entity/entities.lua"
more specific this one:
While modifying the animation speed i noticed no difference ingame. When i moved the animation_speed declaration into the animations bracket and changed its value like this:
it actually did change something ingame. I guess the animation_speed = 1 is just in the wrong place then, though it doesnt matter, as the default animation speed is 1? Not really a bug, since it doesnt change anything if the animation speed declaration is put in the animations bracket, but it surely would be a nice cleanup for any modding work regarding the flamethrower-explosion.
today i have been messing around with the flamethrower, trying to modify the animation speed of its projectiles to get them to live longer, travel further etc. The part i modified was in
"__base__/prototypes/entity/entities.lua"
more specific this one:
Code: Select all
{
type = "flame-thrower-explosion",
name = "flame-thrower-explosion",
flags = {"not-on-map"},
animation_speed = 1,
animations =
{
{
filename = "__base__/graphics/entity/flame-thrower-explosion/flame-thrower-explosion.png",
priority = "extra-high",
width = 64,
height = 64,
frame_count = 64,
line_length = 8
}
},
light = {intensity = 0.2, size = 20},
slow_down_factor = 1,
smoke = "smoke-fast",
smoke_count = 1,
smoke_slow_down_factor = 0.95,
damage = {amount = 0.25, type = "fire"}
}
Code: Select all
{
type = "flame-thrower-explosion",
name = "flame-thrower-explosion",
flags = {"not-on-map"},
animations =
{
{
filename = "__base__/graphics/entity/flame-thrower-explosion/flame-thrower-explosion.png",
priority = "extra-high",
width = 64,
height = 64,
animation_speed = 2,
frame_count = 64,
line_length = 8
}
},
light = {intensity = 0.2, size = 20},
slow_down_factor = 1,
smoke = "smoke-fast",
smoke_count = 1,
smoke_slow_down_factor = 0.95,
damage = {amount = 0.25, type = "fire"}
},