iw4x-client/src/Components/Modules/Bots.hpp

37 lines
694 B
C++
Raw Normal View History

2017-01-20 08:36:52 -05:00
#pragma once
2017-01-19 16:23:59 -05:00
namespace Components
{
class Bots : public Component
{
public:
Bots();
2022-01-23 14:32:20 -05:00
enum testClientKeyFlag
2022-01-23 14:32:20 -05:00
{
NUM_0 = 0x8,
NUM_1 = 0x20,
NUM_2 = 0x10000,
NUM_3 = 0x20000,
NUM_4 = 0x100000,
NUM_5 = 0x200000,
NUM_6 = 0x400000,
NUM_7 = 0x800000,
NUM_8 = 0x1000000,
2022-02-01 09:24:20 -05:00
NUM_9 = 0x2000000
2022-01-23 14:32:20 -05:00
};
2017-01-19 16:23:59 -05:00
private:
static std::vector<std::string> BotNames;
2022-01-28 06:28:52 -05: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 07:31:48 -04:00
2022-01-23 14:32:20 -05:00
static void Spawn(unsigned int count);
2020-11-14 03:58:05 -05:00
static void AddMethods();
2022-01-23 21:00:30 -05:00
2022-01-24 07:15:33 -05:00
static void BotAiAction(Game::client_t* cl);
2022-01-23 21:00:30 -05:00
static void SV_UpdateBots_Hk();
2017-01-19 16:23:59 -05:00
};
}