FAForever / FAForever/fa

GridReclaim Utility function request - FilterAndSortInRadiusWeighted

Open
#5,111 3 comments 0 reactions 0 assignees View on GitHub
area: AI
Dominant language
Lua
Stars
264
Forks
260
Avg merge
3d 2h
Merged PRs (30d)
21

Description

**Describe the feature**
Allow reclaim grid to take pathing distance into account for engineers.
Currently an engineer can get a reclaim grid using FilterAndSortInRadius but it does not taking pathing distance into account from an engineers position.
I would also like this to be introduced in a new utility function that will perform a weighted return table based on value and distance rather than purely value.
I would also like to be able to leverage the GridPresence data structure to be able to assign an optional parameter to keep the table returned within allied cells.

**Screenshots**
![image](https://github.com/FAForever/fa/assets/34614077/827b444c-ede1-4839-a460-959925426956)

**Additional context**
There are some maps where a grid cell can be close to a base but in actuality the travel time for an engineer is much further than other cells. This feature would resolve the selection issue with this problem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.