blob: 48adcb7bada06cd9567ba0c04ae5a64d141e8d6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#pragma once
#include "core/convar/convar.h"
#include "engine/r2engine.h"
class ServerBotManager
{
public:
ConVar* Cvar_bot_quota;
ConVar* Cvar_bot_quota_ignorehumans;
ConVar* Cvar_bot_teams;
ConVar* Cvar_bot_clantag;
ConVar* Cvar_bot_simulate;
ConVar* Cvar_bot_pilot_settings;
ConVar* Cvar_bot_force_pilot_primary;
ConVar* Cvar_bot_force_pilot_secondary;
ConVar* Cvar_bot_force_pilot_weapon3;
ConVar* Cvar_bot_force_pilot_ordnance;
ConVar* Cvar_bot_force_pilot_ability;
ConVar* Cvar_bot_titan_settings;
ConVar* Cvar_bot_force_titan_ordnance;
ConVar* Cvar_bot_force_titan_ability;
public:
ServerBotManager();
void AddBot(const char* pName = "", int iTeam = -1);
// events we react to
void StartMatch();
void UpdateBotCounts();
void SetupPlayer(R2::CBaseClient* pPlayer);
void SimulatePlayers();
};
extern ServerBotManager* g_pBots;
|