0ad/binaries/data/mods
Atrik a373c0e4ef Prevent targeting unreachable turreted entities
Introduce CanEverReachTarget in the Attack component to check whether
a target is geometrically reachable at all, accounting for height
offsets and turreted units inside buildings.

For non-parabolic attacks (e.g. melee), a simple 3D distance check
from the closest approach point is used.

For parabolic attacks (e.g. ranged), the parabolic range formula
is used to determine if the height difference is surmountable
from the closest horizontal distance to the target.

Add GetClosestApproachDistanceToTurretPoint to TurretHolder
to estimate the minimum horizontal distance to a turret point,
using its local offset and the holder's obstruction size.
Passable buildings are not considered obstacles.

Fixes units on the ground trying to attack unreachable units on walls
or towers when the projectile's arc cannot reach the required height.
2026-08-12 16:26:22 +02:00
..
_test.dae/art
_test.gui/gui Add Engine.openRequest 2026-04-26 12:44:39 +02:00
_test.minimal Fix trailing whitespace and add pre-commit hook 2025-06-15 20:08:48 +02:00
_test.mods/config Fix mods configuration stacking and mergin per mod 2025-06-16 11:03:09 -05:00
_test.scriptinterface Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
_test.sim Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
_test.tex/art/textures Avoids a crash if a texture size is not a power of two. 2022-04-11 16:28:41 +00:00
_test.xero
mod Adds sRGB support for proper lighting 2026-07-29 01:29:09 +02:00
public Prevent targeting unreachable turreted entities 2026-08-12 16:26:22 +02:00