Remove useless dvar ✨
This commit is contained in:
parent
b1293a0ae4
commit
598eb99461
@ -3,7 +3,6 @@
|
|||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
std::vector<std::string> Bots::BotNames;
|
std::vector<std::string> Bots::BotNames;
|
||||||
Game::dvar_t* Bots::SVBotWarfare;
|
|
||||||
|
|
||||||
struct BotMovementInfo
|
struct BotMovementInfo
|
||||||
{
|
{
|
||||||
@ -280,21 +279,11 @@ namespace Components
|
|||||||
{
|
{
|
||||||
__asm
|
__asm
|
||||||
{
|
{
|
||||||
// If bot warfare isn't being used let's keep
|
pushad
|
||||||
// test clients normal functionality
|
|
||||||
push eax
|
|
||||||
mov eax, Bots::SVBotWarfare
|
|
||||||
cmp byte ptr [eax + 0x10], 1
|
|
||||||
pop eax
|
|
||||||
|
|
||||||
jz skip
|
|
||||||
|
|
||||||
call SV_UpdateBots
|
call SV_UpdateBots
|
||||||
ret
|
|
||||||
|
|
||||||
skip:
|
|
||||||
pushad
|
|
||||||
call Bots::BotAiAction
|
call Bots::BotAiAction
|
||||||
|
|
||||||
popad
|
popad
|
||||||
ret
|
ret
|
||||||
}
|
}
|
||||||
@ -308,9 +297,6 @@ namespace Components
|
|||||||
// Intercept sprintf for the connect string
|
// Intercept sprintf for the connect string
|
||||||
Utils::Hook(0x48ADAB, Bots::BuildConnectString, HOOK_CALL).install()->quick();
|
Utils::Hook(0x48ADAB, Bots::BuildConnectString, HOOK_CALL).install()->quick();
|
||||||
|
|
||||||
Bots::SVBotWarfare = Game::Dvar_RegisterBool("sv_botWarfare", false,
|
|
||||||
Game::DVAR_FLAG_NONE, "Allow bot warfare mod to override default bot behaviour");
|
|
||||||
|
|
||||||
Utils::Hook(0x627021, SV_UpdateBots_Hk, HOOK_CALL).install()->quick();
|
Utils::Hook(0x627021, SV_UpdateBots_Hk, HOOK_CALL).install()->quick();
|
||||||
Utils::Hook(0x627241, SV_UpdateBots_Hk, HOOK_CALL).install()->quick();
|
Utils::Hook(0x627241, SV_UpdateBots_Hk, HOOK_CALL).install()->quick();
|
||||||
|
|
||||||
|
@ -42,7 +42,6 @@ namespace Components
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
static std::vector<std::string> BotNames;
|
static std::vector<std::string> BotNames;
|
||||||
static Game::dvar_t* SVBotWarfare;
|
|
||||||
|
|
||||||
static void BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port);
|
static void BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user