Talk:Types/ProjectileTriggerDelivery: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(start of discussion, added range_deviation topic)
 
(→‎range_deviation questions: agreed in confusion, question)
 
Line 22: Line 22:


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. [[User:Honktown|Honktown]] ([[User talk:Honktown|talk]]) 07:43, 31 October 2022 (UTC)
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. [[User:Honktown|Honktown]] ([[User talk:Honktown|talk]]) 07:43, 31 October 2022 (UTC)
: I agree in your non-understanding of min_range being 17.5. Based on the code, it should be 37.5 (50 minus 25%), which is just one typo away from 17.5. Is it possible that it is indeed a typo? -- [[User:Bilka|Bilka]] ([[User talk:Bilka|talk]]) - <span style="color:#FF0000">Admin</span> 16:46, 18 January 2023 (UTC)

Latest revision as of 16:46, 18 January 2023

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)

I agree in your non-understanding of min_range being 17.5. Based on the code, it should be 37.5 (50 minus 25%), which is just one typo away from 17.5. Is it possible that it is indeed a typo? -- Bilka (talk) - Admin 16:46, 18 January 2023 (UTC)