Skip to content

Shelved PR 383 spectate ai unit camera

rayswaynl edited this page Jul 3, 2026 · 1 revision

Shelved: PR #383 — Spectate AI teams in the Unit Camera

State: Ray-shelved 2026-07-03 (Build 89 pick round). PR #383 was closed without merging; nothing from it is in Build 88/89.

WHAT

Adds a default-off --- AI Teams --- section to the Unit Camera roster. When enabled, the camera list shows live AI-led groups (each row like [AI 3] SquadLeaderName (5)) alongside the normal player rows, and selecting one switches the camera to that AI team's leader and populates the unit list with its squad. It's view-only — no command/order buttons and no server traffic; a player could just watch AI teams fight through the spectator camera.

WHERE

  • PR: #383 — "Lane 178: show AI teams in Unit Camera".
  • Branch / head commit: codex/lane178-unit-camera-ai-teams @ 6031ca3b283ba504de1445ceec37553489832ccd.
  • Flag (if any): WFBE_C_UNIT_CAMERA_AI_TEAMS = 0 in Init_CommonConstants.sqf. At 0 the section is never built; at 1 the camera lists live AI-led teams as camera-only targets.
  • Files touched: Client/GUI/GUI_Menu_UnitCamera.sqf (reads WFBE_Client_Logic getVariable "wfbe_teams", appends a read-only header row grpNull + AI-team rows to listbox 21002, adds a guard to skip the header on default selection, and null-guards the leader-selection handler against the header) and Common/Init/Init_CommonConstants.sqf (flag seed). Mirrored across Chernarus + Takistan + Zargabad.

WHY SHELVED

Ray's reason (2026-07-03): "no" — declined spectating AI teams in the unit camera.

HOW TO REVIVE

  • Recover from codex/lane178-unit-camera-ai-teams @ 6031ca3b283ba504de1445ceec37553489832ccd.
  • Touches a CLIENT GUI file, so revival must bump the mission pbo filename and repoint the cfg (client changes cache by filename).
  • Set WFBE_C_UNIT_CAMERA_AI_TEAMS = 1 to enable.
  • Before rebasing, re-verify the cmdcon41-w3d selection-index logic in the current GUI_Menu_UnitCamera.sqf — this PR interleaves a grpNull header sentinel into _list_Players and adjusts the header-skip guard; confirm that still lines up after any later UnitCamera edits.

Sidebar

Clone this wiki locally