]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
allow forcing friend and enemy colors in teamplay
authorRudolf Polzer <divverent@alientrap.org>
Mon, 30 Apr 2012 15:24:59 +0000 (17:24 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 30 Apr 2012 15:24:59 +0000 (17:24 +0200)
commit52b12559c186e0d4710260a8409c509422d8a1e2
treec804ca9c0e984fdbe22fced5b4add1b079c2a21c
parent074644f82b163d601264d9d0adfc63921a619292
allow forcing friend and enemy colors in teamplay

It's done by the normal cvars. In teamplay, forcemyplayercolors defines friend color, and forceplayercolors forces enemy to own color from settings. This best matches DM.

Enemy color cannot be forced if there are more than 2 teams, obviously. Friend color still can, as long as the color does not match one of the enemy colors.
qcsrc/client/autocvars.qh
qcsrc/client/csqcmodel_hooks.qc