beyond-all-reason / beyond-all-reason/RecoilEngine

[FR] Bugger-off improvement

Open
#814 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
679
Forks
290
Avg merge
3d 2h
Merged PRs (30d)
40

Description

Here's a black factory with a cyan bugger-off (the cyan sphere can be seen in `/debugcolvol` view). Units buggering off will move to a random point in a larger circle around it (here marked orange, and I don't think it is visualisable).
![image](https://github.com/beyond-all-reason/spring/assets/2573076/0ee4d9f5-e563-42e6-9bd4-3a0fc0a32091)

In particular, sometimes units will move all the way around behind the factory. This is especially bad for constructors guarding the factory because then they often have to come back to be in range of the build-pad.

The request is essentially to stop this from happening in some way. A powerful way would be to make the bugger off target also a configurable circle:
![image](https://github.com/beyond-all-reason/spring/assets/2573076/863a3288-9d9c-4826-a395-6f65c9dae890)

Some cheap-ass hack such as rejecting paths that intersect the unit ordering the bugger off and rolling another spot would probably also be fine.

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior in the `/debugcolvol` view, focusing on units buggering off around factories and constructors guarding them. Trace the movement and path-selection entry points involved in choosing the bugger-off target; done means units no longer take the undesirable route while still reaching a valid nearby position.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.