Skip to content

Add option to disable freecam (observer) in Clan Arena (enabled by default in XPM)

z411 requested to merge z411/ca-prevent-observer into master

After running some Clan Arena tournaments, we noticed that several players used the free camera (observer) to rat out enemy positions, even though g_ca_spectate_enemies is disabled.

I added functionality to fully block the freecam in Clan Arena by setting g_ca_spectate_enemies to -1. This is very important in tournaments but maybe not so much in casual games which is why I set it as an optional function.

  1. After a player in CA dies, it's immediately set to spectator (not observer)
  2. By right-clicking, the player can't go to observer mode
  3. The "Press +fire2 to observe" wording in the info panel is left out if observing is blocked

Any suggestions to improve the functionality or make the code cleaner is welcome. In my opinion it should be the default but in casual games maybe it's not much of a deal.

Edited by z411

Merge request reports