Page 1 of 1

[2.0.76] nested-result direction deviation

Posted: Wed Apr 22, 2026 8:52 am
by ruhnva
Using a nested-result and projectile action_delivery causes direction deviation to be ignored. Occurs on damaged_trigger_effect and on ammo_types for units.
vsc.png
vsc.png (42.19 KiB) Viewed 328 times
The above code sends all projectiles out at once, in the same direction. Resulting in a single blob of projectiles.

vsc2.png
vsc2.png (54.83 KiB) Viewed 328 times
This example is used in a unit's ammo_type for attack parameters with 12 projectiles. If nested, it results in all projectiles in the same spot. Without being nested, they fire in a wide radius around the unit.

Re: [2.0.76] nested-result direction deviation

Posted: Wed Apr 22, 2026 2:44 pm
by Rseding91
Thanks for the report. Looking at the code - this is working correctly. When a trigger specifically targets an entity the direction deviation is not used. It's only when there is no direct entity target - or the projectile created is marked as direction_only - does the direction deviation get used.

Re: [2.0.76] nested-result direction deviation

Posted: Wed Apr 22, 2026 3:07 pm
by ruhnva
Sorry I forgot to mention, all my current projectiles have direction_only set to true, and they do work in non nested-result cases. Does an entities damaged_trigger_effect provide itself as a source_effect for the purpose of these triggers? Also thank you for the quick response and info!

Re: [2.0.76] nested-result direction deviation

Posted: Wed Apr 22, 2026 3:50 pm
by Rseding91
ruhnva wrote: Wed Apr 22, 2026 3:07 pm Does an entities damaged_trigger_effect provide itself as a source_effect for the purpose of these triggers?
Yes.

Re: [2.0.76] nested-result direction deviation

Posted: Wed Apr 22, 2026 3:53 pm
by Rseding91
I suggest going into "The Rest" settings GUI and enabling this setting
04-22-2026, 11-53-12.png
04-22-2026, 11-53-12.png (10.66 KiB) Viewed 228 times
It may help diagnose issues.

Re: [2.0.76] nested-result direction deviation

Posted: Wed Apr 22, 2026 6:33 pm
by ruhnva
Rseding91 wrote: Wed Apr 22, 2026 3:53 pm I suggest going into "The Rest" settings GUI and enabling this setting

04-22-2026, 11-53-12.png

It may help diagnose issues.
Thank you for the suggestion, the help, and the answers. That setting is extremely useful and I did not realize that it existed.