Workaround for regamedll mp_auto_join_team & humans_join_team bug, that was introduced for thirdparty bots (partially fixes s1lentq/ReGameDLL_CS#62)
Changed remove all menu now will not popup again after execing command. Verify that team isn't stacked before adding bot when sets bot team manually on adding the bot.
This commit is contained in:
parent
69bb788e9a
commit
1cc538ab10
4 changed files with 70 additions and 20 deletions
|
|
@ -157,7 +157,8 @@ enum BotCreationResult
|
|||
{
|
||||
BOT_RESULT_CREATED,
|
||||
BOT_RESULT_MAX_PLAYERS_REACHED,
|
||||
BOT_RESULT_NAV_ERROR
|
||||
BOT_RESULT_NAV_ERROR,
|
||||
BOT_RESULT_TEAM_STACKED
|
||||
};
|
||||
|
||||
// radio messages
|
||||
|
|
@ -1098,7 +1099,9 @@ public:
|
|||
int m_numEnemiesLeft; // number of enemies alive left on map
|
||||
int m_numFriendsLeft; // number of friend alive left on map
|
||||
|
||||
int m_retryJoin; // retry count for chosing team/class
|
||||
int m_startAction; // team/class selection state
|
||||
|
||||
bool m_notKilled; // has the player been killed or has he just respawned
|
||||
bool m_notStarted; // team/class not chosen yet
|
||||
|
||||
|
|
@ -1294,6 +1297,7 @@ public:
|
|||
~BotManager (void);
|
||||
|
||||
bool IsEcoValid (int team) { return m_economicsGood[team]; }
|
||||
bool IsTeamStacked (int team);
|
||||
|
||||
int GetLastWinner (void) const { return m_lastWinner; }
|
||||
void SetLastWinner (int winner) { m_lastWinner = winner; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue