fixed crash on escaping from bomb on really small maps (de_iceworld ie)
reworked how yb_quota works fixed engine is not notified about bot cvar is beeing changed
This commit is contained in:
parent
8a9ccfd083
commit
db79df8d38
9 changed files with 127 additions and 145 deletions
|
|
@ -636,6 +636,7 @@ struct ExperienceSave
|
|||
// bot creation tab
|
||||
struct CreateQueue
|
||||
{
|
||||
bool console;
|
||||
int difficulty;
|
||||
int team;
|
||||
int member;
|
||||
|
|
@ -1203,9 +1204,8 @@ public:
|
|||
void TryHeadTowardRadioEntity (void);
|
||||
|
||||
void Kill (void);
|
||||
void Kick (void);
|
||||
void Kick (bool keepQuota = false);
|
||||
void ResetDoubleJumpState (void);
|
||||
void MoveToVector (const Vector &to);
|
||||
int FindPlantedBomb(void);
|
||||
|
||||
bool HasHostage (void);
|
||||
|
|
@ -1248,7 +1248,7 @@ private:
|
|||
edict_t *m_killerEntity; // killer entity for bots
|
||||
|
||||
protected:
|
||||
int CreateBot (const String &name, int difficulty, int personality, int team, int member);
|
||||
int CreateBot (const String &name, int difficulty, int personality, int team, int member, bool isConsoleCmd);
|
||||
|
||||
public:
|
||||
BotManager (void);
|
||||
|
|
@ -1280,13 +1280,13 @@ public:
|
|||
void Free (void);
|
||||
void Free (int index);
|
||||
|
||||
void AddRandom (void) { AddBot ("", -1, -1, -1, -1); }
|
||||
void AddBot (const String &name, int difficulty, int personality, int team, int member);
|
||||
void AddBot (const String &name, const String &difficulty, const String &personality, const String &team, const String &member);
|
||||
void AddRandom (bool isConsoleCmd = true) { AddBot ("", -1, -1, -1, -1, isConsoleCmd); }
|
||||
void AddBot (const String &name, int difficulty, int personality, int team, int member, bool isConsoleCmd = true);
|
||||
void AddBot (const String &name, const String &difficulty, const String &personality, const String &team, const String &member, bool isConsoleCmd = true);
|
||||
void FillServer (int selection, int personality = PERSONALITY_NORMAL, int difficulty = -1, int numToAdd = -1);
|
||||
|
||||
void RemoveAll (bool zeroQuota = true);
|
||||
void RemoveRandom (void);
|
||||
void RemoveAll (void);
|
||||
void RemoveRandom (bool keepQuota = false);
|
||||
void RemoveFromTeam (Team team, bool removeAll = false);
|
||||
void RemoveMenu (edict_t *ent, int selection);
|
||||
void KillAll (int team = -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue