mgr: added yb_first_human_restart (resolves #713)
When bots are playing on dedicated server and first human joins a team the game will be restarted if yb_first_human_restart is higher than zero. Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
This commit is contained in:
parent
cf9d0cc84f
commit
590471d94c
6 changed files with 47 additions and 3 deletions
|
|
@ -41,10 +41,12 @@ private:
|
|||
int m_lastWinner {}; // the team who won previous round
|
||||
int m_lastDifficulty {}; // last bots difficulty
|
||||
int m_bombSayStatus {}; // some bot is issued whine about bomb
|
||||
int m_numPreviousPlayers {}; // number of players in game im previous player check
|
||||
|
||||
bool m_bombPlanted {}; // is bomb planted ?
|
||||
bool m_botsCanPause {}; // bots can do a little pause ?
|
||||
bool m_roundOver {}; // well, round is over>
|
||||
bool m_resetHud {}; // reset HUD is called for some one
|
||||
|
||||
Array <edict_t *> m_activeGrenades {}; // holds currently active grenades on the map
|
||||
Array <edict_t *> m_interestingEntities {}; // holds currently interesting entities on the map
|
||||
|
|
@ -96,6 +98,7 @@ public:
|
|||
void maintainQuota ();
|
||||
void maintainAutoKill ();
|
||||
void maintainLeaders ();
|
||||
void maintainRoundRestart ();
|
||||
void initQuota ();
|
||||
void initRound ();
|
||||
void decrementQuota (int by = 1);
|
||||
|
|
@ -231,6 +234,10 @@ public:
|
|||
m_teamData[team].lastRadioSlot = radio;
|
||||
}
|
||||
|
||||
void setResetHUD (bool resetHud) {
|
||||
m_resetHud = resetHud;
|
||||
}
|
||||
|
||||
int getLastRadio (const int team) const {
|
||||
return m_teamData[team].lastRadioSlot;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue