Talk:Types/ProjectileTriggerDelivery

From Official Factorio Wiki
Revision as of 07:43, 31 October 2022 by Honktown (talk | contribs) (start of discussion, added range_deviation topic)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

range_deviation questions

After it was discovered range_deviation is *not* in tiles, here is an example of a "fragmentation grenade" action:

		{
			type = "area",
			repeat_count = 1200,
			radius = 30,
			trigger_from_target = true,
			target_entities = false,
			action_delivery =
			{
				type = "projectile",
				projectile = "shotgun-pellet",
				starting_speed = 1,
				starting_speed_deviation = 0.3,
				min_range = 50,
				max_range = 100,
				range_deviation = .5
			}
		}

In game, the farthest a projectile travels is ~125 from the origin of the capsule (ok, so range_deviation / 2, add 1, * max range). However, for the least distance traveled of the projectiles, I find ~17.5. I do not understand and think the values could use some clarifying from a developer. Honktown (talk) 07:43, 31 October 2022 (UTC)