]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Define cX variables in teamplay.qh
authorLyberta <lyberta@lyberta.net>
Wed, 2 Aug 2017 19:25:33 +0000 (22:25 +0300)
committerLyberta <lyberta@lyberta.net>
Wed, 2 Aug 2017 19:25:33 +0000 (22:25 +0300)
qcsrc/server/client.qh
qcsrc/server/teamplay.qh

index 8e8c8d71b3a5af1d0e8c17d164bae28f2f858e23..dff602b9c4868581e83cd99d07563f5793ffea23 100644 (file)
@@ -189,8 +189,6 @@ METHOD(Client, m_unwind, bool(Client this))
     return false;
 }
 
-float c1, c2, c3, c4;
-
 void play_countdown(entity this, float finished, Sound samp);
 
 float CalcRotRegen(float current, float regenstable, float regenfactor, float regenlinear, float regenframetime, float rotstable, float rotfactor, float rotlinear, float rotframetime, float limit);
index 44f54fa91a03a163f54a167b8a24c42a91f676c0..9cfcc3d9ef5958d05faf7b3d80b221e23b602e96 100644 (file)
@@ -3,12 +3,17 @@
 string cache_mutatormsg;
 string cache_lastmutatormsg;
 
-// client counts for each team
-//float c1, c2, c3, c4;
-
 // The following variables are used for balancing. They are not updated
 // automatically. You need to call CheckAllowedTeams and GetTeamCounts to get
 // proper values.
+
+// These four have 2 different states. If they are equal to -1, it means that
+// the player can't join the team. Zero or positive value means that player can
+// join the team and means the number of players on that team.
+float c1;
+float c2;
+float c3;
+float c4;
 float numbotsteam1; ///< Number of bots in the first team.
 float numbotsteam2; ///< Number of bots in the second team.
 float numbotsteam3; ///< Number of bots in the third team.