Skip to content

Conversation

@bobtista
Copy link

Spread formation uses FPF_USE_HIGHEST_LAYER which allows spawning on bridges/elevated terrain but doesn't guarantee passable ground.

Now spread formation uses FPF_CLEAR_CELLS_ONLY to only spawn units on passable terrain. If no passable position is found within the spread radius, units fall back to the center position which is guaranteed passable due to OCLAdjustPositionToPassable. It still uses FPF_USE_HIGHEST_LAYER, so they'll still spawn on a bridge.

Generals does not work the same way as Zero Hour, so this fix does not apply there.

Testing

  1. Place a rebelambush in the water or on impassable terrain
  2. Rebels should spawn without dying on nearby passable terrain

@bobtista bobtista self-assigned this Nov 19, 2025
@bobtista bobtista added Bug Something is not working right, typically is user facing GLA Affects GLA faction NoRetail This fix or change is not applicable with Retail game compatibility labels Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something is not working right, typically is user facing GLA Affects GLA faction NoRetail This fix or change is not applicable with Retail game compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rebels of the Rebel Ambush die on Spawn

1 participant