Normal projectiles have a host of properties relating to the speed at which they travel:
https://lua-api.factorio.com/latest/pro ... otype.html
Artillery projectiles lack any speed property.
https://lua-api.factorio.com/latest/pro ... otype.html
Could we get mirrors of the speed parameters for the Artillery Projectile? or a constant speed at least?
(Unsure if the flare holds the speed instead https://lua-api.factorio.com/latest/pro ... otype.html)
Artillery Projectile Speed
Re: Artillery Projectile Speed
base/prototypes/item.lua:
artillery-wagon-cannon is a regular weapon which shoots artillery-shell ammo, have you tried modifying the attack_parameters?
ArtilleryProjectile is the thing visible on the Map and which reveals the Fog-of War.
Good Luck!
Code: Select all
{
type = "gun",
name = "artillery-wagon-cannon",
icon = "__base__/graphics/icons/tank-cannon.png",
hidden = true,
auto_recycle = false,
subgroup = "gun",
order = "z[artillery]-a[cannon]",
inventory_move_sound = item_sounds.artillery_large_inventory_move,
pick_sound = item_sounds.artillery_large_inventory_pickup,
drop_sound = item_sounds.artillery_large_inventory_move,
attack_parameters =
{
type = "projectile",
ammo_category = "artillery-shell",
cooldown = 200,
movement_slow_down_factor = 0,
projectile_creation_distance = 1.6,
projectile_center = {-0.15625, -0.07812},
range = 7 * 32,
min_range = 1 * 32,
projectile_creation_parameters = require("prototypes.entity.artillery-cannon-muzzle-flash-shifting"),
sound =
{
switch_vibration_data =
{
filename = "__base__/sound/fight/artillery-shoots.bnvib",
play_for = "everything"
},
game_controller_vibration_data =
{
low_frequency_vibration_intensity = 1,
duration = 150,
play_for = "everything"
},
filename = "__base__/sound/fight/artillery-shoots-1.ogg",
volume = 0.7,
modifiers = volume_multiplier("main-menu", 0.9)
},
shell_particle =
{
name = "artillery-shell-particle",
direction_deviation = 0.05,
direction = 0.4,
speed = 0.10,
speed_deviation = 0.1,
vertical_speed = 0.05,
vertical_speed_deviation = 0.01,
center = {0, -0.5},
creation_distance = 0.5,
creation_distance_orientation = 0.4,
starting_frame_speed = 0.5,
starting_frame_speed_deviation = 0.5,
use_source_position = true,
height = 1
}
},
stack_size = 1,
random_tint_color = item_tints.iron_rust
},ArtilleryProjectile is the thing visible on the Map and which reveals the Fog-of War.
Good Luck!
Re: Artillery Projectile Speed
Artillery projectiles speed is currently set based off the trigger that creates it: https://lua-api.factorio.com/latest/typ ... ivery.html
If you want to get ahold of me I'm almost always on Discord.
Re: Artillery Projectile Speed
Rhanks both! 


