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

56 lines
1.0 KiB
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 PlayerKeyFlag
{
FIRE = 0x1,
SPRINT = 0x2,
MELEE = 0x4,
RELOAD = 0x10,
LEAN_LEFT = 0x40,
LEAN_RIGHT = 0x80,
PRONE = 0x100,
CROUCH = 0x200,
JUMP = 0x400,
ADS_MODE = 0x800,
TEMP_ACTION = 0x1000,
HOLD_BREATH = 0x2000,
THROW_EQUIPMENT = 0x4000,
THROW_SPECIAL = 0x8000,
NIGHT_VISION = 0x40000,
ADS = 0x80000,
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,
NUM_9 = 0x2000000,
2022-01-23 21:00:30 -05:00
USE = NUM_0 | NUM_1
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
};
}