Muzzle Flash offset.

Place to get help with not working mods / modding interface.
ProRt
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Aug 09, 2017 12:50 pm
Contact:

Muzzle Flash offset.

Post by ProRt »

Hello. I was wondering if there is any good way of making the muzzle flash of a tank appear on the right or left side when firering. I was thinking of just making a new explosion-gunshot.png with the offset done. But it would be nice if anyone knew if it could be done in the lua files.

I have been looking at attack_parameters on the tank
attack_parameters =
{
type = "projectile",
ammo_category = "bullet",
cooldown = 4,
movement_slow_down_factor = 0.7,
damage_modifier = 2,
shell_particle =
{
name = "shell-particle",
direction_deviation = 0.1,
speed = 0.1,
speed_deviation = 0.03,
center = {0, 0},
creation_distance = -0.6875,
starting_frame_speed = 0.4,
starting_frame_speed_deviation = 0.1
},
projectile_center = {0, 0},
projectile_creation_distance = 0,

range = 20,
sound = make_heavy_gunshot_sounds(),
},
and projectile_center and projectile_creation_distance only seem to change the center of rotation and the distance from the center.
Post Reply

Return to “Modding help”