Page 1 of 1

Weapon Parameter not working [kind-of solved]

Posted: Wed Nov 23, 2016 3:08 pm
by Sigma1
Wasn't exactly sure if this is a bug or a mod issue so I put it here. Anyway, the "min_range"-parameter seems to do nothing on a handheld flamethrower type weapon.

Here is the code I'm using:

Code: Select all

data:extend
({
--heavy flamethrower
	{
    type = "gun",
    name = "heavy-flame-thrower",
    icon = "__military-extended__/graphics/weapons/heavy-flame-thrower.png",
    flags = {"goes-to-main-inventory"},
    subgroup = "gun",
    order = "b[flame-thrower]-b[heavy]",
    attack_parameters =
    {
      type = "stream",
      ammo_category = "flame-thrower",
      cooldown = 1,
      movement_slow_down_factor = 0.6,
      projectile_creation_distance = 0.6,
      gun_center_shift = { 0, -1 },
      range = 25,
      gun_barrel_length = 3,
			direction_deviation = 100.0,
      min_range = 20,
      cyclic_sound =
      {
        begin_sound =
        {
          {
            filename = "__base__/sound/fight/flamethrower-start.ogg",
            volume = 0.9
          }
        },
        middle_sound =
        {
          {
            filename = "__base__/sound/fight/flamethrower-mid.ogg",
            volume = 0.9
          }
        },
        end_sound =
        {
          {
            filename = "__base__/sound/fight/flamethrower-end.ogg",
            volume = 0.9
          }
        }
      }
    },
    stack_size = 1
  }
})
Any help is appreciated

Re: Weapon Parameter not working

Posted: Sun Dec 04, 2016 10:39 pm
by aubergine18
Isn't min_range specific to either turrets or maybe ammo type?

Re: Weapon Parameter not working

Posted: Mon Dec 05, 2016 11:31 am
by Sigma1
aubergine18 wrote:Isn't min_range specific to either turrets or maybe ammo type?
It is indeed used only in the flame turret in the code but I thought it might work with handheld guns too, apparently not though.