From 3bb5c8e16d567949bb9d8102e9cc22a5fb5970ea Mon Sep 17 00:00:00 2001 From: Lyberta Date: Wed, 2 Aug 2017 22:25:33 +0300 Subject: [PATCH] Define cX variables in teamplay.qh --- qcsrc/server/client.qh | 2 -- qcsrc/server/teamplay.qh | 11 ++++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/qcsrc/server/client.qh b/qcsrc/server/client.qh index 8e8c8d71b..dff602b9c 100644 --- a/qcsrc/server/client.qh +++ b/qcsrc/server/client.qh @@ -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); diff --git a/qcsrc/server/teamplay.qh b/qcsrc/server/teamplay.qh index 44f54fa91..9cfcc3d9e 100644 --- a/qcsrc/server/teamplay.qh +++ b/qcsrc/server/teamplay.qh @@ -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. -- 2.39.2