Skip to content

Add uncontested-area Loot to Crate range option - #3946

Open
gabriel-quina wants to merge 2 commits into
official-antistasi-community:unstablefrom
gabriel-quina:Extend-Loot-to-Crate-Range-Uncontested-Areas
Open

Add uncontested-area Loot to Crate range option#3946
gabriel-quina wants to merge 2 commits into
official-antistasi-community:unstablefrom
gabriel-quina:Extend-Loot-to-Crate-Range-Uncontested-Areas

Conversation

@gabriel-quina

@gabriel-quina gabriel-quina commented May 28, 2026

Copy link
Copy Markdown

What type of PR is this?

Change / Enhancement

What does this PR change and why?

Adds an optional uncontested-area range for the existing Loot to Crate functionality.

The current Loot to Crate behavior is preserved by default. When the new setting is disabled, the existing LootToCrateRadius is used as before.

When enabled, the existing loot collection logic can use an extended range only if there are no living fight-capable enemy units near the crate. Enemies are checked within twice the selected range, so a 400m collection range requires the surrounding 800m area to be clear.

A feedback message is shown when the extended Loot to Crate range is actually used, so players can tell when the new behavior was applied without exposing whether nearby enemies blocked it.

The intent is to reduce repetitive post-combat cleanup for solo and small-group players without changing behavior while an area is still contested.

Testing

Local checks performed:

  • git diff --check
  • manual review of changed SQF/config/stringtable files

Functional validation:

  • Confirmed working in singleplayer
  • Confirmed working in hosted LAN
  • Confirmed working on dedicated server
  • Confirmed extended range feedback appears when the extended range is used

Discussion

The enemy check radius is currently calculated as twice the selected uncontested loot range.

This keeps the setting simple for players and prevents unsafe combinations such as a very large collection range with a very small enemy check radius. For example, a 400m uncontested collection range requires the surrounding 800m area to be clear.

An alternative would be to expose the enemy check radius as a separate parameter. That would allow more flexibility for different server balance preferences, but would also add another mission parameter and could allow configurations that make the feature easier to exploit.

Feedback welcome on whether the fixed 2x check radius is preferred, or whether a separate configurable check range would be useful.

@ante185 ante185 added Enhancement New feature or request Draft labels May 28, 2026
@gabriel-quina

Copy link
Copy Markdown
Author

Updated the PR description and marked this as ready for review.

The player feedback To-Do has been implemented: when the extended Loot to Crate range is actually used, the final hint now shows an extra message indicating that the extended range was applied. It does not show a separate message when the extended range is blocked, to avoid exposing nearby enemy presence.

@gabriel-quina
gabriel-quina marked this pull request as ready for review June 1, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Draft Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants