remove CatVar from headers

This commit is contained in:
nullifiedcat 2018-07-28 22:50:51 +03:00
parent 546e2b7268
commit 3778e66ecd
16 changed files with 6 additions and 66 deletions

View File

@ -11,26 +11,10 @@
extern bool *bSendPackets;
extern std::array<int, 32> bruteint;
extern std::array<Timer, 32> timers;
extern CatVar no_zoom;
extern CatVar clean_screenshots;
extern CatVar disable_visuals;
extern CatVar disconnect_reason;
extern CatVar crypt_chat;
extern CatVar minigun_jump;
extern CatVar nolerp;
extern CatVar joinclass;
extern CatVar jointeam;
extern CatVar fakelag_amount;
extern CatVar serverlag_amount;
extern CatVar servercrash;
extern CatVar debug_projectiles;
extern CatVar semiauto;
extern CatVar resolver;
extern CatVar engine_pred;
extern Timer DelayTimer;
extern bool firstcm;
extern CatVar delay;
extern CatVar adjust;
extern float prevflow;
extern int prevflowticks;
#if ENABLE_VISUALS

View File

@ -7,8 +7,6 @@
#pragma once
class CatVar;
namespace backpacktf
{

View File

@ -38,4 +38,4 @@ public:
std::vector<CatCommand *> &commandRegistrationArray();
void RegisterCatVars();
void RegisterCatCommands();

View File

@ -10,7 +10,6 @@
#include <time.h>
class Vector;
class ConVar;
class CatVar;
extern int g_AppID;
extern unsigned long tickcount;
@ -20,21 +19,12 @@ extern ConVar *cl_interp_ratio;
extern ConVar *cl_interp;
extern ConVar *cl_interpolate;
extern CatVar event_log;
extern CatVar cathook; // Master switch
extern bool *bSendPackets;
extern CatVar show_antiaim;
extern CatVar force_thirdperson;
extern CatVar console_logging;
extern CatVar fast_outline;
extern CatVar roll_speedhack;
extern CatVar force_name;
extern char *force_name_newlined;
extern bool need_name_change;
extern int last_cmd_number;
extern char *disconnect_reason_newlined;
extern CatVar disconnect_reason;
extern time_t time_injected;
struct brutestruct

View File

@ -7,7 +7,6 @@
#pragma once
class CatVar;
class CUserCmd;
namespace hacks::shared::antiaim

View File

@ -10,9 +10,6 @@
namespace hacks::shared::autojoin
{
extern CatVar auto_queue;
extern Timer queuetime;
void Update();
void UpdateSearch();
}

View File

@ -7,10 +7,6 @@
#pragma once
class CatVar;
class InitRoutine;
namespace hacks::tf::autotaunt
{
extern InitRoutine init;
}

View File

@ -54,8 +54,6 @@ struct CIncomingSequence
};
typedef boost::circular_buffer_space_optimized<CIncomingSequence> circular_buf;
extern circular_buf sequences;
extern CatVar latency;
extern CatVar enable;
extern int ticks;
extern BacktrackData headPositions[32][66];
extern BestTickData sorted_ticks[66];

View File

@ -13,8 +13,6 @@ namespace hacks::shared::followbot
// Followed entity, externed for highlight color
extern int follow_target;
extern bool followcart;
extern CatVar followbot;
extern CatVar roambot;
extern CatCommand follow_steam;
extern unsigned steamid;
void DrawTick();

View File

@ -9,8 +9,6 @@
#include "common.hpp"
class CatVar;
namespace hacks::shared::triggerbot
{

View File

@ -13,7 +13,6 @@ namespace hitrate
extern int count_shots;
extern int count_hits;
extern int count_hits_head;
extern CatVar hitrate_check;
void Update();
}

View File

@ -16,7 +16,6 @@
#include <time.h>
class CatCommand;
class CatVar;
namespace ipc
{
@ -32,13 +31,6 @@ constexpr unsigned stop_moving = 5;
constexpr unsigned start_moving = 6;
}
extern CatCommand connect;
extern CatCommand disconnect;
extern CatCommand exec;
extern CatCommand exec_all;
extern CatCommand lobby;
extern CatVar server_name;
constexpr unsigned cathook_magic_number = 0x0DEADCA7;
struct server_data_s

View File

@ -14,6 +14,4 @@ void queue_start();
void queue_leave();
void dcandabandon();
void abandon();
extern CatVar queue;
extern CatEnum queue_mode;
}

View File

@ -12,7 +12,6 @@
class CachedEntity;
class Vector;
class CatVar;
class IClientEntity;
class CatEnum;
class VMatrix;

View File

@ -10,9 +10,6 @@
#include <visual/atlas.hpp>
#include "common.hpp"
class CatVar;
extern std::array<textures::sprite, 4> spinner_states;
extern CatVar v9mode;
void InitSpinner();
void DrawSpinner();

View File

@ -24,6 +24,9 @@ static settings::Bool show_powerups{ "glow.show.powerups", "true" };
static settings::Bool weapons_white{ "glow.white-weapons", "true" };
static settings::Bool glowself{ "glow.self", "true" };
static settings::Bool rainbow{ "glow.self-rainbow", "true" };
static settings::Int blur_scale{ "glow.blur-scale", "5" };
// https://puu.sh/vobH4/5da8367aef.png
static settings::Int solid_when{ "glow.solid-when", "0" };
IMaterialSystem *materials = nullptr;
@ -331,12 +334,6 @@ void EffectGlow::EndRenderGlow()
ptr->PopRenderTargetAndViewport();
}
// https://puu.sh/vobH4/5da8367aef.png
static CatEnum solid_when_enum({ "Never", "Always", "Invisible" });
static CatVar blur_scale(CV_INT, "glow_blur_scale", "5", "Blur amount",
"Ammount to blur the glow");
static CatVar solid_when(solid_when_enum, "glow_solid_when", "0", "Solid when",
"Glow will be solid when entity is...");
void EffectGlow::StartStenciling()
{