

It's less noticable if the explosion has only 2 - 3 frames, because it disappear as soon as the animation is done playing (obviously)
This also occurs on "beam" type explosion:

The code were almost exact copy of every other weapon which doesnt have this problem:
Code: Select all
{
type = "gun",
name = "grenade-launcher",
localised_name = "Grenade Launcher",
icon = "__gore__/graphics/weapons/grenade-launcher.png",
icon_size = 64, icon_mipmaps = 1,
subgroup = "gun",
order = "c1[grenade-launcher]",
attack_parameters =
{
type = "projectile",
ammo_category = "grenade",
cooldown = 30,
movement_slow_down_factor = 0.1,
projectile_creation_distance = 1,
fire_penalty = 0,
range = 60,
sound = grenade_launcher_sound
},
stack_size = 1
},
Code: Select all
{
type = "explosion",
name = "muzzle-black",
flags = {"not-on-map"},
subgroup = "explosions",
animations = {
filename = "__base__/graphics/entity/artillery-cannon-muzzle-flash/muzzle-flash.png",
draw_as_glow = true,
line_length = 7,
width = 138,
height = 192,
frame_count = 21,
animation_speed = 0.75,
scale = 0.4,
},
rotate = true,
light = {intensity = 1, size = 4, color = {r=1, g=0.55, b=0.1}}
},

Use "create-entity" instead of "create-explosion" fix this problem.
Code: Select all
{
type = "projectile",
name = "contact-gren-proj",
flags = {"not-on-map"},
acceleration = 0.025,
action =
{
{
type = "direct",
action_delivery =
{
type = "instant",
target_effects =
{
{
type = "create-entity",
entity_name = "yellow-explosion",
repeat_count = 3,
repeat_count_deviation = 2,
offset_deviation = { { -1, -1.5 }, { 1, 1.5 } }
},
{
type = "create-entity",
entity_name = "yellow-explosion-big",
repeat_count = 1,
repeat_count_deviation = 1,
offset_deviation = { { -1, -1.2 }, { 1, 1.2 } }
},
{
type = "create-entity",
entity_name = "medium-scorchmark-tintable",
check_buildability = true
},
{
type = "destroy-decoratives",
from_render_layer = "decorative",
to_render_layer = "object",
include_soft_decoratives = true,
include_decals = false,
invoke_decorative_trigger = true,
decoratives_with_trigger_only = false,
radius = 5
},
{
type = "create-fire",
entity_name = "fire-flame",
probability = 0.75,
show_in_tooltip = false,
initial_ground_flame_count = 3,
offset_deviation = { { -1.75, -1.75 }, { 1.75, 1.75 } }
},
{
type = "nested-result",
action =
{
type = "area",
radius = 5,
action_delivery =
{
type = "instant",
target_effects =
{
{
type = "damage",
damage = {amount = 125, type = "explosion"}
},
{
type = "create-explosion",
entity_name = "fire-exp", <-------- THIS IS THE ONE THAT FLEW AWAY
repeat_count = 1,
repeat_count_deviation = 1,
offset_deviation = { { -0.25, -0.15 }, { 0.25, 0.15 } }
},
{
type = "create-explosion",
entity_name = "fire-burst",
probability = 0.5,
repeat_count = 1,
offset_deviation = { { -0.25, -0.15 }, { 0.25, 0.15 } }
}
}
}
}
}
}
}
}
},
animation =
{
filename = "__gore__/graphics/weapons/c-gren-proj.png",
frame_count = 1,
animation_speed = 0.1,
width = 26,
height = 64,
priority = "high",
scale = 0.3
},
smoke =
{
{
name = "smoke-fast",
deviation = {0.1, 0.1},
frequency = 0.75,
position = {0, 1},
slow_down_factor = 0.05,
starting_frame = 3,
starting_frame_deviation = 3,
starting_frame_speed = 0,
starting_frame_speed_deviation = 5
}
}
},