]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Make sure team is consistently set to -1 on connection for human players and bots 1445/head
authorterencehill <piuntn@gmail.com>
Sun, 26 Jan 2025 03:12:57 +0000 (04:12 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 1 Mar 2025 13:12:02 +0000 (13:12 +0000)
commit3d1a1fec8848b95b45f74bb910d5208026a8b3c6
tree785e815cb246699c877537fcaf33bae2c01ba910
parent9f73dcbbc647fdeeb7eca8d45f9e5d0fa0ed640a
Make sure team is consistently set to -1 on connection for human players and bots

Thanks to this change
* the Player_ChangeTeam and Player_ChangedTeam mutator hooks (currently unused by any
  mutator / gamemode) are consistently no longer called on connection
* the workaround in Player_SetTeamIndex that handles the situation where a bot unintentionally spawns
  with a valid team set depending on its personal colors is no longer needed
qcsrc/server/bot/default/bot.qc
qcsrc/server/client.qc
qcsrc/server/teamplay.qc
qcsrc/server/teamplay.qh