keeperfx icon indicating copy to clipboard operation
keeperfx copied to clipboard

Creatures check for clear line of sight

Open Loobinex opened this issue 3 years ago • 2 comments

Fixes #1272

Loobinex avatar Sep 18 '22 18:09 Loobinex

This does not work yet: image

Loobinex avatar Sep 23 '22 00:09 Loobinex

Dependent on https://github.com/dkfans/keeperfx/pull/1884

Loobinex avatar Sep 23 '22 00:09 Loobinex

I am scoping out trying to shoot through floors. This is not a new issue.

It is caused by a bug in point_in_map_is_solid, which makes the top slab of floors non-solid. Fixing this bug exposes several complications with the battle code if there is a height difference between units (land-guardpost-lava), since units who cannot reach an enemy by foot, nor can shoot them from their current position deem it an unwinnable battle and will flee. Moving closer or to a different position is not considered.

Loobinex avatar Oct 03 '22 22:10 Loobinex