Corrected usage of think interval for each bot.
Fixed double-jump task behaviour;. Lowered CPU usage in player avoidance code. Removed unused commands from 'yb help'. Dirty fix for #44.
This commit is contained in:
parent
7b27754858
commit
62e9cccf7b
8 changed files with 152 additions and 120 deletions
|
|
@ -97,8 +97,8 @@ private:
|
|||
int m_drawModels[DRAW_NUM];
|
||||
|
||||
// bot client command
|
||||
bool m_isBotCommand;
|
||||
char m_arguments[256];
|
||||
bool m_isBotCommand;
|
||||
int m_argumentCount;
|
||||
|
||||
edict_t *m_startEntity;
|
||||
|
|
@ -218,7 +218,7 @@ public:
|
|||
// gets custom engine argv for client command
|
||||
inline const char *GetOverrideArgv (int num)
|
||||
{
|
||||
return ExtractSingleField (m_arguments, num, false);
|
||||
return ExtractSingleField (m_arguments, num);
|
||||
}
|
||||
|
||||
// gets custom engine argc for client command
|
||||
|
|
@ -298,8 +298,8 @@ public:
|
|||
}
|
||||
|
||||
// static utility functions
|
||||
public:
|
||||
static const char *ExtractSingleField (const char *string, int id, bool terminate);
|
||||
private:
|
||||
const char *ExtractSingleField (const char *string, int id);
|
||||
};
|
||||
|
||||
// simplify access for console variables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue