Artillery Projectile Speed

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Kabury
Inserter
Inserter
Posts: 42
Joined: Wed Apr 07, 2021 5:41 pm
Contact:

Artillery Projectile Speed

Post by Kabury »

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)
eugenekay
Smart Inserter
Smart Inserter
Posts: 1332
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Artillery Projectile Speed

Post by eugenekay »

base/prototypes/item.lua:

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
  },
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!
Rseding91
Factorio Staff
Factorio Staff
Posts: 17557
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Artillery Projectile Speed

Post by Rseding91 »

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.
Kabury
Inserter
Inserter
Posts: 42
Joined: Wed Apr 07, 2021 5:41 pm
Contact:

Re: Artillery Projectile Speed

Post by Kabury »

Rhanks both! :D
Post Reply

Return to “Modding interface requests”