2017-01-20 14:36:52 +01:00
|
|
|
#pragma once
|
|
|
|
|
2017-01-19 22:23:59 +01:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Bots : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Bots();
|
2022-01-23 19:32:20 +00:00
|
|
|
|
2017-01-19 22:23:59 +01:00
|
|
|
private:
|
2022-12-15 16:13:49 +01:00
|
|
|
using botData = std::pair< std::string, std::string>;
|
|
|
|
static std::vector<botData> BotNames;
|
2017-01-19 22:23:59 +01:00
|
|
|
|
2023-03-25 23:14:31 +00:00
|
|
|
static Dvar::Var SVRandomBotNames;
|
|
|
|
|
|
|
|
static void RandomizeBotNames();
|
2023-02-13 20:33:26 +00:00
|
|
|
static void LoadBotNames();
|
2022-01-28 11:28:52 +00:00
|
|
|
static int BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port);
|
2017-04-23 13:31:48 +02:00
|
|
|
|
2022-01-23 19:32:20 +00:00
|
|
|
static void Spawn(unsigned int count);
|
2020-11-14 02:58:05 -06:00
|
|
|
|
2022-05-05 23:48:33 +01:00
|
|
|
static void GScr_isTestClient(Game::scr_entref_t entref);
|
2023-03-18 22:08:23 +00:00
|
|
|
static void AddScriptMethods();
|
2022-01-24 02:00:30 +00:00
|
|
|
|
2022-01-24 12:15:33 +00:00
|
|
|
static void BotAiAction(Game::client_t* cl);
|
2022-03-15 22:49:58 +00:00
|
|
|
static void SV_BotUserMove_Hk();
|
2022-03-21 18:55:35 +00:00
|
|
|
|
|
|
|
static void G_SelectWeaponIndex(int clientNum, int iWeaponIndex);
|
|
|
|
static void G_SelectWeaponIndex_Hk();
|
2017-01-19 22:23:59 +01:00
|
|
|
};
|
|
|
|
}
|