0ad/binaries/data/mods/public
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
..
art Add missing garrison flag to some houses 2026-07-30 20:54:19 +02:00
audio Add waypoint/rally point feedback sound 2026-04-04 03:49:55 +02:00
autostart Wait for autostart by promise 2026-03-19 18:44:52 +01:00
campaigns Switch main branch to Release 28 2025-01-12 01:27:02 +01:00
gamesettings Use a slider for population cap 2026-02-20 20:02:37 +01:00
globalscripts Sort units spatially for freehand selection 2026-07-30 17:19:39 +02:00
gui Add more diverse quotes 2026-08-10 10:53:00 +02:00
l10n Fix string extraction of new game settings 2026-01-14 22:02:02 +01:00
maps Reveal Gaia wonders to players 2026-07-29 18:02:37 +02:00
shaders Splits shader effects to reuse in material passes 2026-05-10 23:57:23 +02:00
simulation Prevent targeting unreachable turreted entities 2026-08-12 16:26:22 +02:00
mod.json Switch main branch to Release 29 2025-12-18 18:16:11 +01:00