Merge pull request #413 from BenCat07/master

Fix some issues
This commit is contained in:
BenCat07 2018-05-02 17:58:55 +02:00 committed by GitHub
commit 560ac1a8a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
42 changed files with 339 additions and 289 deletions

View File

@ -8,7 +8,6 @@
#include "common.hpp" #include "common.hpp"
// This is a temporary file to put code that needs moving/refactoring in. // This is a temporary file to put code that needs moving/refactoring in.
extern bool *bSendPackets; extern bool *bSendPackets;
extern CatVar no_zoom; extern CatVar no_zoom;
extern CatVar clean_screenshots; extern CatVar clean_screenshots;

View File

@ -4,7 +4,6 @@
*/ */
#include "MiscTemporary.hpp" #include "MiscTemporary.hpp"
CatVar minigun_jump(CV_SWITCH, "minigun_jump", "0", "TF2C minigun jump", CatVar minigun_jump(CV_SWITCH, "minigun_jump", "0", "TF2C minigun jump",
"Allows jumping while shooting with minigun"); "Allows jumping while shooting with minigun");
@ -24,8 +23,6 @@ CatVar serverlag_amount(
CV_INT, "serverlag", "0", "serverlag", CV_INT, "serverlag", "0", "serverlag",
"Lag the server by spamming this many voicecommands per tick"); "Lag the server by spamming this many voicecommands per tick");
CatVar semiauto(CV_INT, "semiauto", "0", "Semiauto"); CatVar semiauto(CV_INT, "semiauto", "0", "Semiauto");
static CatVar servercrash(CV_SWITCH, "servercrash", "0", "crash servers",
"Crash servers by spamming signon net messages");
bool *bSendPackets; bool *bSendPackets;
CatVar crypt_chat( CatVar crypt_chat(

7
src/backpacktf.cpp Executable file → Normal file
View File

@ -25,9 +25,10 @@ std::mutex cache_mutex{};
std::string api_key_s = ""; std::string api_key_s = "";
bool valid_api_key = false; bool valid_api_key = false;
static CatVar enable_bptf(CV_SWITCH, "bptf_enable", "0", "Enable backpack.tf", static CatVar
"Enable backpack.tf integration\nYou have to set your API " enable_bptf(CV_SWITCH, "bptf_enable", "0", "Enable backpack.tf",
"key in cat_bptf_key"); "Enable backpack.tf integration\nYou have to set your API "
"key in cat_bptf_key");
CatCommand api_key("bptf_key", "Set API Key", [](const CCommand &args) { CatCommand api_key("bptf_key", "Set API Key", [](const CCommand &args) {
api_key_s = args.ArgS(); api_key_s = args.ArgS();
logging::Info("API key changed!"); logging::Info("API key changed!");

View File

@ -15,11 +15,12 @@
namespace chatlog namespace chatlog
{ {
static CatVar enabled(CV_SWITCH, "chat_log", "0", "Chat log", "Log chat to file"); static CatVar enabled(CV_SWITCH, "chat_log", "0", "Chat log",
"Log chat to file");
static CatVar dont_log_spam(CV_SWITCH, "chat_log_nospam", "1", "No Spam", static CatVar dont_log_spam(CV_SWITCH, "chat_log_nospam", "1", "No Spam",
"Don't log your messages if spam is active"); "Don't log your messages if spam is active");
static CatVar dont_log_ipc(CV_SWITCH, "chat_log_noipc", "1", "No IPC", static CatVar dont_log_ipc(CV_SWITCH, "chat_log_noipc", "1", "No IPC",
"Don't log messages sent by bots"); "Don't log messages sent by bots");
class csv_stream class csv_stream
{ {

View File

@ -14,7 +14,7 @@ static CatVar crit_legiter(
CV_SWITCH, "crit_force_gameplay", "0", "Don't hinder gameplay", CV_SWITCH, "crit_force_gameplay", "0", "Don't hinder gameplay",
"Attempt to crit when possible but do not hinder normal gameplay"); "Attempt to crit when possible but do not hinder normal gameplay");
static CatVar crit_experimental(CV_SWITCH, "crit_experimental", "0", static CatVar crit_experimental(CV_SWITCH, "crit_experimental", "0",
"Experimental crithack"); "Experimental crithack");
std::unordered_map<int, int> command_number_mod{}; std::unordered_map<int, int> command_number_mod{};

View File

@ -11,7 +11,7 @@ namespace hacks::tf2::achievement
{ {
static CatVar safety(CV_SWITCH, "achievement_safety", "1", static CatVar safety(CV_SWITCH, "achievement_safety", "1",
"Achievement commands safety switch"); "Achievement commands safety switch");
void Lock() void Lock()
{ {

View File

@ -20,48 +20,51 @@ CatVar communicate(CV_SWITCH, "identify", "1", "identify",
CatVar enabled(CV_SWITCH, "aa_enabled", "0", "Anti-Aim", CatVar enabled(CV_SWITCH, "aa_enabled", "0", "Anti-Aim",
"Master AntiAim switch"); "Master AntiAim switch");
static CatVar trueang(CV_SWITCH, "aa_realfakes", "0", "Real fakes", static CatVar trueang(CV_SWITCH, "aa_realfakes", "0", "Real fakes",
"Do real fakeangles (Unresolveable)"); "Do real fakeangles (Unresolveable)");
static CatVar yaw(CV_FLOAT, "aa_yaw", "0.0", "Yaw", "Static yaw (left/right)", 360.0); static CatVar yaw(CV_FLOAT, "aa_yaw", "0.0", "Yaw", "Static yaw (left/right)",
static CatVar pitch(CV_FLOAT, "aa_pitch", "-89.0", "Pitch", "Static pitch (up/down)", 360.0);
-89.0, 89.0); static CatVar pitch(CV_FLOAT, "aa_pitch", "-89.0", "Pitch",
"Static pitch (up/down)", -89.0, 89.0);
static CatVar yaw_real(CV_FLOAT, "aa_yaw_real", "0.0", "Real Yaw", static CatVar yaw_real(CV_FLOAT, "aa_yaw_real", "0.0", "Real Yaw",
"Static yaw (left/right)", 360.0); "Static yaw (left/right)", 360.0);
static CatVar pitch_real(CV_FLOAT, "aa_pitch_real", "-89.0", "Real Pitch", static CatVar pitch_real(CV_FLOAT, "aa_pitch_real", "-89.0", "Real Pitch",
"Static pitch (up/down)", -89.0, 89.0); "Static pitch (up/down)", -89.0, 89.0);
static CatEnum yaw_mode_enum({ "KEEP", "STATIC", "JITTER", "BIGRANDOM", "RANDOM", static CatEnum yaw_mode_enum({ "KEEP", "STATIC", "JITTER", "BIGRANDOM",
"SPIN", "OFFSETKEEP", "EDGE", "HECK", "FAKESIDEWAYS" }); "RANDOM", "SPIN", "OFFSETKEEP", "EDGE", "HECK",
"FAKESIDEWAYS" });
static CatEnum pitch_mode_enum({ "KEEP", "STATIC", "JITTER", "RANDOM", "FLIP", static CatEnum pitch_mode_enum({ "KEEP", "STATIC", "JITTER", "RANDOM", "FLIP",
"FAKEFLIP", "FAKEUP", "FAKEDOWN", "FAKECENTER", "UP", "FAKEFLIP", "FAKEUP", "FAKEDOWN", "FAKECENTER",
"DOWN", "HECK" }); "UP", "DOWN", "HECK" });
CatVar yaw_mode(yaw_mode_enum, "aa_yaw_mode", "0", "Yaw mode", "Yaw mode"); CatVar yaw_mode(yaw_mode_enum, "aa_yaw_mode", "0", "Yaw mode", "Yaw mode");
static CatVar pitch_mode(pitch_mode_enum, "aa_pitch_mode", "0", "Pitch mode", static CatVar pitch_mode(pitch_mode_enum, "aa_pitch_mode", "0", "Pitch mode",
"Pitch mode"); "Pitch mode");
static CatVar true_yaw_mode(yaw_mode_enum, "aa_yaw_mode_real", "0", "The Real Yaw", static CatVar true_yaw_mode(yaw_mode_enum, "aa_yaw_mode_real", "0",
"Yaw mode"); "The Real Yaw", "Yaw mode");
static CatVar true_pitch_mode(pitch_mode_enum, "aa_pitch_mode_real", "0", static CatVar true_pitch_mode(pitch_mode_enum, "aa_pitch_mode_real", "0",
"The Real Pitch", "Pitch mode"); "The Real Pitch", "Pitch mode");
static CatVar roll(CV_FLOAT, "aa_roll", "0", "Roll", "Roll angle (viewangles.z)", -180, static CatVar roll(CV_FLOAT, "aa_roll", "0", "Roll",
180); "Roll angle (viewangles.z)", -180, 180);
static CatVar no_clamping(CV_SWITCH, "aa_no_clamp", "0", "Don't clamp angles", static CatVar
"Use this with STATIC mode for unclamped manual angles"); no_clamping(CV_SWITCH, "aa_no_clamp", "0", "Don't clamp angles",
"Use this with STATIC mode for unclamped manual angles");
static CatVar spin(CV_FLOAT, "aa_spin", "10.0", "Spin speed", static CatVar spin(CV_FLOAT, "aa_spin", "10.0", "Spin speed",
"Spin speed (degrees/second)"); "Spin speed (degrees/second)");
static CatVar aaaa_enabled(CV_SWITCH, "aa_aaaa_enabled", "0", "Enable AAAA", static CatVar aaaa_enabled(CV_SWITCH, "aa_aaaa_enabled", "0", "Enable AAAA",
"Enable Anti-Anti-Anti-Aim (Overrides AA Pitch)"); "Enable Anti-Anti-Anti-Aim (Overrides AA Pitch)");
static CatVar aaaa_interval(CV_FLOAT, "aa_aaaa_interval", "0", "Interval", static CatVar aaaa_interval(CV_FLOAT, "aa_aaaa_interval", "0", "Interval",
"Interval in seconds, 0 = random"); "Interval in seconds, 0 = random");
static CatVar aaaa_interval_random_high(CV_FLOAT, "aa_aaaa_interval_high", "15", static CatVar aaaa_interval_random_high(CV_FLOAT, "aa_aaaa_interval_high", "15",
"Interval Ceiling", "Interval Ceiling",
"Upper bound for random AAAA interval"); "Upper bound for random AAAA interval");
static CatVar aaaa_interval_random_low(CV_FLOAT, "aa_aaaa_interval_low", "3", static CatVar aaaa_interval_random_low(CV_FLOAT, "aa_aaaa_interval_low", "3",
"Interval Floor", "Interval Floor",
"Lower bound for random AAAA interval"); "Lower bound for random AAAA interval");
static CatEnum aaaa_modes_enum({ "(FAKE)UP", "(FAKE)DOWN" }); static CatEnum aaaa_modes_enum({ "(FAKE)UP", "(FAKE)DOWN" });
static CatVar aaaa_mode(aaaa_modes_enum, "aa_aaaa_mode", "0", "Mode", static CatVar aaaa_mode(aaaa_modes_enum, "aa_aaaa_mode", "0", "Mode",
"Anti-Anti-Anti-Aim Mode"); "Anti-Anti-Anti-Aim Mode");
static CatVar aaaa_flip_key(CV_KEY, "aa_aaaa_flip_key", "0", "Flip key", static CatVar aaaa_flip_key(CV_KEY, "aa_aaaa_flip_key", "0", "Flip key",
"If you press that key, current AA will change"); "If you press that key, current AA will change");
float cur_yaw = 0.0f; float cur_yaw = 0.0f;
int safe_space = 0; int safe_space = 0;

2
src/hacks/AntiDisguise.cpp Executable file → Normal file
View File

@ -15,7 +15,7 @@ namespace antidisguise
{ {
static CatVar enabled(CV_SWITCH, "antidisguise", "0", "Remove spy disguise", static CatVar enabled(CV_SWITCH, "antidisguise", "0", "Remove spy disguise",
"Removes the disguise from spys\nUsefull for aimbot"); "Removes the disguise from spys\nUsefull for aimbot");
static CatVar no_invisibility(CV_SWITCH, "no_invis", "0", "Remove Invisibility", static CatVar no_invisibility(CV_SWITCH, "no_invis", "0", "Remove Invisibility",
"Useful with chams!"); "Useful with chams!");

View File

@ -11,8 +11,9 @@ namespace shared
{ {
namespace deadringer namespace deadringer
{ {
static CatVar enabled(CV_SWITCH, "deadringer_auto", "0", "Auto deadringer", static CatVar
"automatically pull out DR on low health or projectile nearby"); enabled(CV_SWITCH, "deadringer_auto", "0", "Auto deadringer",
"automatically pull out DR on low health or projectile nearby");
bool IsProjectile(CachedEntity *ent) bool IsProjectile(CachedEntity *ent)
{ {

7
src/hacks/AutoDetonator.cpp Executable file → Normal file
View File

@ -15,10 +15,11 @@ namespace autodetonator
{ {
// Vars for user settings // Vars for user settings
static CatVar enabled(CV_SWITCH, "detonator_enabled", "0", "Auto-Detonator-detonator", static CatVar enabled(CV_SWITCH, "detonator_enabled", "0",
"Master auto detonator switch"); "Auto-Detonator-detonator",
"Master auto detonator switch");
static CatVar legit(CV_SWITCH, "detonator_legit", "0", "Ignore invis", static CatVar legit(CV_SWITCH, "detonator_legit", "0", "Ignore invis",
"Ignores invis spies"); "Ignores invis spies");
// A storage array for ents // A storage array for ents
std::vector<CachedEntity *> flares; std::vector<CachedEntity *> flares;

View File

@ -17,9 +17,9 @@ namespace autoheal
{ {
static CatVar enabled(CV_SWITCH, "autoheal_enabled", "0", "AutoHeal", static CatVar enabled(CV_SWITCH, "autoheal_enabled", "0", "AutoHeal",
"Automatically heals nearby teammates"); "Automatically heals nearby teammates");
static CatVar silent(CV_SWITCH, "autoheal_silent", "1", "Silent AutoHeal", static CatVar silent(CV_SWITCH, "autoheal_silent", "1", "Silent AutoHeal",
"Silent AutoHeal. Disable this to make ghetto followbot"); "Silent AutoHeal. Disable this to make ghetto followbot");
// extern CatVar target_only; // extern CatVar target_only;
int m_iCurrentHealingTarget{ -1 }; int m_iCurrentHealingTarget{ -1 };

View File

@ -19,12 +19,14 @@ namespace autojoin
* Credits to Blackfire for helping me with auto-requeue! * Credits to Blackfire for helping me with auto-requeue!
*/ */
static CatEnum classes_enum({ "DISABLED", "SCOUT", "SNIPER", "SOLDIER", "DEMOMAN", static CatEnum classes_enum({ "DISABLED", "SCOUT", "SNIPER", "SOLDIER",
"MEDIC", "HEAVY", "PYRO", "SPY", "ENGINEER" }); "DEMOMAN", "MEDIC", "HEAVY", "PYRO", "SPY",
"ENGINEER" });
static CatVar autojoin_team(CV_SWITCH, "autojoin_team", "0", "AutoJoin", static CatVar autojoin_team(CV_SWITCH, "autojoin_team", "0", "AutoJoin",
"Automatically joins a team"); "Automatically joins a team");
static CatVar preferred_class(classes_enum, "autojoin_class", "0", "AutoJoin class", static CatVar preferred_class(classes_enum, "autojoin_class", "0",
"You will pick a class automatically"); "AutoJoin class",
"You will pick a class automatically");
CatVar auto_queue(CV_SWITCH, "autoqueue", "0", "AutoQueue", CatVar auto_queue(CV_SWITCH, "autoqueue", "0", "AutoQueue",
"Automatically queue in casual matches"); "Automatically queue in casual matches");

36
src/hacks/AutoReflect.cpp Executable file → Normal file
View File

@ -17,27 +17,31 @@ namespace autoreflect
// Vars for user settings // Vars for user settings
static CatVar enabled(CV_SWITCH, "reflect_enabled", "0", "Auto Reflect", static CatVar enabled(CV_SWITCH, "reflect_enabled", "0", "Auto Reflect",
"Master AutoReflect switch"); "Master AutoReflect switch");
static CatVar idle_only(CV_SWITCH, "reflect_only_idle", "0", "Only when not shooting", static CatVar idle_only(CV_SWITCH, "reflect_only_idle", "0",
"Don't AutoReflect if you're holding M1"); "Only when not shooting",
static CatVar legit(CV_SWITCH, "reflect_legit", "0", "Legit Reflect", "Don't AutoReflect if you're holding M1");
"Only Auto-airblasts projectiles that you can see, doesnt move " static CatVar
"your crosshair"); legit(CV_SWITCH, "reflect_legit", "0", "Legit Reflect",
"Only Auto-airblasts projectiles that you can see, doesnt move "
"your crosshair");
static CatVar dodgeball(CV_SWITCH, "reflect_dodgeball", "0", "Dodgeball Mode", static CatVar dodgeball(CV_SWITCH, "reflect_dodgeball", "0", "Dodgeball Mode",
"Allows auto-reflect to work in dodgeball servers"); "Allows auto-reflect to work in dodgeball servers");
static CatVar blastkey(CV_KEY, "reflect_key", "0", "Reflect Key", static CatVar blastkey(CV_KEY, "reflect_key", "0", "Reflect Key",
"Hold this key to activate auto-airblast"); "Hold this key to activate auto-airblast");
static CatVar stickies(CV_SWITCH, "reflect_stickybombs", "0", "Reflect stickies", static CatVar stickies(CV_SWITCH, "reflect_stickybombs", "0",
"Reflect Stickybombs"); "Reflect stickies", "Reflect Stickybombs");
static CatVar teammates(CV_SWITCH, "reflect_teammates", "0", static CatVar teammates(CV_SWITCH, "reflect_teammates", "0",
"Reflect teammates projectiles", "Useful in dodgeball with " "Reflect teammates projectiles",
"free-for-all enabled"); "Useful in dodgeball with "
static CatVar fov(CV_FLOAT, "reflect_fov", "85", "Reflect FOV", "Reflect FOV", 180.0f); "free-for-all enabled");
static CatVar fov(CV_FLOAT, "reflect_fov", "85", "Reflect FOV", "Reflect FOV",
180.0f);
static CatVar fov_draw(CV_SWITCH, "reflect_fov_draw", "0", "Draw Fov Ring", static CatVar fov_draw(CV_SWITCH, "reflect_fov_draw", "0", "Draw Fov Ring",
"Draws a ring to represent your current reflect fov"); "Draws a ring to represent your current reflect fov");
static CatVar fovcircle_opacity(CV_FLOAT, "reflect_fov_draw_opacity", "0.7", static CatVar fovcircle_opacity(CV_FLOAT, "reflect_fov_draw_opacity", "0.7",
"FOV Circle Opacity", "Defines opacity of FOV circle", "FOV Circle Opacity",
0.0f, 1.0f); "Defines opacity of FOV circle", 0.0f, 1.0f);
// TODO setup proj sorting // TODO setup proj sorting
// TODO CatVar big_proj(CV_SWITCH, "reflect_big_projectile", "0", "Reflect big // TODO CatVar big_proj(CV_SWITCH, "reflect_big_projectile", "0", "Reflect big
// projectiles", "Reflect Rockets"); // projectiles", "Reflect Rockets");

View File

@ -17,9 +17,9 @@ namespace autosticky
// Vars for user settings // Vars for user settings
static CatVar enabled(CV_SWITCH, "sticky_enabled", "0", "AutoSticky", static CatVar enabled(CV_SWITCH, "sticky_enabled", "0", "AutoSticky",
"Master AutoSticky switch"); "Master AutoSticky switch");
static CatVar buildings(CV_SWITCH, "sticky_buildings", "1", "Detonate buildings", static CatVar buildings(CV_SWITCH, "sticky_buildings", "1",
"Stickies react to buildings"); "Detonate buildings", "Stickies react to buildings");
static CatVar static CatVar
legit(CV_SWITCH, "sticky_legit", "0", "Legit", legit(CV_SWITCH, "sticky_legit", "0", "Legit",
"Stickys only detonate when you see them\nAlso ignores invis spies"); "Stickys only detonate when you see them\nAlso ignores invis spies");

2
src/hacks/AutoTaunt.cpp Executable file → Normal file
View File

@ -19,7 +19,7 @@ static CatVar enabled(
CV_SWITCH, "autotaunt", "0", "AutoTaunt", CV_SWITCH, "autotaunt", "0", "AutoTaunt",
"Automatically taunt after killing an enemy, use with walkbots I guess"); "Automatically taunt after killing an enemy, use with walkbots I guess");
static CatVar chance(CV_FLOAT, "autotaunt_chance", "8", "AutoTaunt chance", static CatVar chance(CV_FLOAT, "autotaunt_chance", "8", "AutoTaunt chance",
"Chance of taunting after kill. 0 to 100.", 0.0f, 100.0f); "Chance of taunting after kill. 0 to 100.", 0.0f, 100.0f);
class AutoTauntListener : public IGameEventListener2 class AutoTauntListener : public IGameEventListener2
{ {

7
src/hacks/Bunnyhop.cpp Executable file → Normal file
View File

@ -15,9 +15,10 @@ namespace bunnyhop
{ {
// Var for user settings // Var for user settings
static CatVar enabled(CV_SWITCH, "bhop_enabled", "0", "Bunnyhop", static CatVar
"Enable Bunnyhop. All extra features like autojump and perfect " enabled(CV_SWITCH, "bhop_enabled", "0", "Bunnyhop",
"jump limit were temporary removed."); "Enable Bunnyhop. All extra features like autojump and perfect "
"jump limit were temporary removed.");
// CatVar perfect_jump_limit(CV_INT, "bhop_enabled", "0", "Bunnyhop", "Enable // CatVar perfect_jump_limit(CV_INT, "bhop_enabled", "0", "Bunnyhop", "Enable
// Bunnyhop. All extra features like autojump and perfect jump limit were // Bunnyhop. All extra features like autojump and perfect jump limit were
// temporary removed."); // temporary removed.");

View File

@ -16,117 +16,132 @@ namespace esp
{ {
// Main Switch // Main Switch
static CatVar enabled(CV_SWITCH, "esp_enabled", "0", "ESP", "Master ESP switch"); static CatVar enabled(CV_SWITCH, "esp_enabled", "0", "ESP",
"Master ESP switch");
// Box esp + Options // Box esp + Options
static CatEnum box_esp_enum({ "None", "Normal", "Corners" }); static CatEnum box_esp_enum({ "None", "Normal", "Corners" });
static CatVar box_esp(box_esp_enum, "esp_box", "2", "Box", "Draw a 2D box"); static CatVar box_esp(box_esp_enum, "esp_box", "2", "Box", "Draw a 2D box");
static CatVar box_corner_size(CV_INT, "esp_box_corner_size", "10", "Corner Size"); static CatVar box_corner_size(CV_INT, "esp_box_corner_size", "10",
"Corner Size");
// Tracers // Tracers
static CatEnum tracers_enum({ "OFF", "CENTER", "BOTTOM" }); static CatEnum tracers_enum({ "OFF", "CENTER", "BOTTOM" });
static CatVar tracers(tracers_enum, "esp_tracers", "0", "Tracers", static CatVar
"SDraws a line from the player to a position on your screen"); tracers(tracers_enum, "esp_tracers", "0", "Tracers",
"SDraws a line from the player to a position on your screen");
// Emoji Esp // Emoji Esp
static CatEnum emoji_esp_enum({ "None", "Joy", "Thinking" }); static CatEnum emoji_esp_enum({ "None", "Joy", "Thinking" });
static CatVar emoji_esp(emoji_esp_enum, "esp_emoji", "0", "Emoji ESP", static CatVar emoji_esp(emoji_esp_enum, "esp_emoji", "0", "Emoji ESP",
"Draw emoji on peopels head"); "Draw emoji on peopels head");
static CatVar emoji_ok(CV_SWITCH, "esp_okhand", "0", "ok_hand", static CatVar emoji_ok(CV_SWITCH, "esp_okhand", "0", "ok_hand",
"Draw ok_hand on hands"); "Draw ok_hand on hands");
static CatVar emoji_esp_size(CV_FLOAT, "esp_emoji_size", "32", "Emoji ESP Size", static CatVar emoji_esp_size(CV_FLOAT, "esp_emoji_size", "32", "Emoji ESP Size",
"Emoji size"); "Emoji size");
static CatVar emoji_esp_scaling(CV_SWITCH, "esp_emoji_scaling", "1", static CatVar emoji_esp_scaling(CV_SWITCH, "esp_emoji_scaling", "1",
"Emoji ESP Scaling", "Emoji ESP Scaling"); "Emoji ESP Scaling", "Emoji ESP Scaling");
static CatVar emoji_min_size(CV_INT, "esp_emoji_min_size", "20", "Emoji ESP min size", static CatVar
"Minimum size for an emoji when you use auto scaling"); emoji_min_size(CV_INT, "esp_emoji_min_size", "20", "Emoji ESP min size",
"Minimum size for an emoji when you use auto scaling");
hitbox_cache::CachedHitbox *hitboxcache[32][18]{}; hitbox_cache::CachedHitbox *hitboxcache[32][18]{};
// Other esp options // Other esp options
static CatEnum show_health_enum({ "None", "Text", "Healthbar", "Both" }); static CatEnum show_health_enum({ "None", "Text", "Healthbar", "Both" });
static CatVar show_health(show_health_enum, "esp_health", "3", "Health ESP", static CatVar show_health(show_health_enum, "esp_health", "3", "Health ESP",
"Show enemy health"); "Show enemy health");
static CatVar draw_bones(CV_SWITCH, "esp_bones", "0", "Draw Bones"); static CatVar draw_bones(CV_SWITCH, "esp_bones", "0", "Draw Bones");
static CatEnum sightlines_enum({ "None", "Sniper Only", static CatEnum
"All" }); // I ripped of lbox's choices cuz its nice sightlines_enum({ "None", "Sniper Only",
static CatVar sightlines(sightlines_enum, "esp_sightlines", "0", "Show sightlines", "All" }); // I ripped of lbox's choices cuz its nice
"Displays a line of where players are looking"); static CatVar sightlines(sightlines_enum, "esp_sightlines", "0",
static CatEnum esp_text_position_enum({ "TOP RIGHT", "BOTTOM RIGHT", "CENTER", "ABOVE", "Show sightlines",
"BELOW" }); "Displays a line of where players are looking");
static CatVar esp_text_position(esp_text_position_enum, "esp_text_position", "0", static CatEnum esp_text_position_enum({ "TOP RIGHT", "BOTTOM RIGHT", "CENTER",
"Text position", "Defines text position"); "ABOVE", "BELOW" });
static CatVar esp_text_position(esp_text_position_enum, "esp_text_position",
"0", "Text position", "Defines text position");
static CatVar esp_expand( static CatVar esp_expand(
CV_INT, "esp_expand", "0", "Expand Esp", CV_INT, "esp_expand", "0", "Expand Esp",
"Spreads out Box, health bar, and text from center"); // Note, check if this "Spreads out Box, health bar, and text from center"); // Note, check if this
// should be int, it // should be int, it
// is being used by // is being used by
// casting as float // casting as float
static CatVar vischeck(CV_SWITCH, "esp_vischeck", "1", "VisCheck", static CatVar
"ESP visibility check - makes enemy info behind walls darker, " vischeck(CV_SWITCH, "esp_vischeck", "1", "VisCheck",
"disable this if you get FPS drops"); "ESP visibility check - makes enemy info behind walls darker, "
static CatVar legit(CV_SWITCH, "esp_legit", "0", "Legit Mode", "disable this if you get FPS drops");
"Don't show invisible enemies\nHides invisable enemies with " static CatVar
"visibility enabled"); legit(CV_SWITCH, "esp_legit", "0", "Legit Mode",
"Don't show invisible enemies\nHides invisable enemies with "
"visibility enabled");
// Selective esp options // Selective esp options
static CatVar local_esp(CV_SWITCH, "esp_local", "1", "ESP Local Player", static CatVar local_esp(CV_SWITCH, "esp_local", "1", "ESP Local Player",
"Shows local player ESP in thirdperson"); "Shows local player ESP in thirdperson");
static CatVar buildings(CV_SWITCH, "esp_buildings", "1", "Building ESP", static CatVar buildings(CV_SWITCH, "esp_buildings", "1", "Building ESP",
"Show buildings"); "Show buildings");
static CatVar teammates(CV_SWITCH, "esp_teammates", "0", "ESP Teammates", static CatVar teammates(CV_SWITCH, "esp_teammates", "0", "ESP Teammates",
"Teammate ESP"); "Teammate ESP");
static CatVar tank(CV_SWITCH, "esp_show_tank", "1", "Show tank", "Show tanks in mvm"); static CatVar tank(CV_SWITCH, "esp_show_tank", "1", "Show tank",
"Show tanks in mvm");
// Text Esps // Text Esps
static CatVar show_weapon(CV_SWITCH, "esp_weapon", "0", "Show weapon name", static CatVar show_weapon(CV_SWITCH, "esp_weapon", "0", "Show weapon name",
"Show which weapon the enemy is using"); "Show which weapon the enemy is using");
static CatVar show_distance(CV_SWITCH, "esp_distance", "1", "Distance ESP", static CatVar show_distance(CV_SWITCH, "esp_distance", "1", "Distance ESP",
"Show distance to target"); "Show distance to target");
static CatVar show_name(CV_SWITCH, "esp_name", "1", "Name ESP", "Show name"); static CatVar show_name(CV_SWITCH, "esp_name", "1", "Name ESP", "Show name");
static CatVar show_class(CV_SWITCH, "esp_class", "1", "Class ESP", "Show class"); static CatVar show_class(CV_SWITCH, "esp_class", "1", "Class ESP",
"Show class");
static CatVar show_conditions(CV_SWITCH, "esp_conds", "1", "Conditions ESP", static CatVar show_conditions(CV_SWITCH, "esp_conds", "1", "Conditions ESP",
"Show conditions"); "Show conditions");
static CatVar static CatVar
show_ubercharge(CV_SWITCH, "esp_ubercharge", "1", "Ubercharge ESP", show_ubercharge(CV_SWITCH, "esp_ubercharge", "1", "Ubercharge ESP",
"Show ubercharge percentage while players medigun is out"); "Show ubercharge percentage while players medigun is out");
static CatVar show_bot_id(CV_SWITCH, "esp_followbot_id", "1", "Followbot ESP", static CatVar show_bot_id(CV_SWITCH, "esp_followbot_id", "1", "Followbot ESP",
"Show followbot ID"); "Show followbot ID");
static CatVar powerup_esp(CV_SWITCH, "esp_powerups", "1", "Powerup ESP", static CatVar powerup_esp(CV_SWITCH, "esp_powerups", "1", "Powerup ESP",
"Shows powerups a player is using"); "Shows powerups a player is using");
// Item esp // Item esp
static CatVar item_esp(CV_SWITCH, "esp_item", "1", "Item ESP", static CatVar item_esp(CV_SWITCH, "esp_item", "1", "Item ESP",
"Master Item ESP switch (health packs, etc.)"); "Master Item ESP switch (health packs, etc.)");
static CatVar item_dropped_weapons(CV_SWITCH, "esp_item_weapons", "0", static CatVar item_dropped_weapons(CV_SWITCH, "esp_item_weapons", "0",
"Dropped weapons", "Show dropped weapons"); "Dropped weapons", "Show dropped weapons");
static CatVar item_ammo_packs(CV_SWITCH, "esp_item_ammo", "0", "Ammo packs", static CatVar item_ammo_packs(CV_SWITCH, "esp_item_ammo", "0", "Ammo packs",
"Show ammo packs"); "Show ammo packs");
static CatVar item_health_packs(CV_SWITCH, "esp_item_health", "1", "Health packs", static CatVar item_health_packs(CV_SWITCH, "esp_item_health", "1",
"Show health packs"); "Health packs", "Show health packs");
static CatVar item_powerups(CV_SWITCH, "esp_item_powerups", "1", "Powerups", static CatVar item_powerups(CV_SWITCH, "esp_item_powerups", "1", "Powerups",
"Shows powerups in the world"); "Shows powerups in the world");
static CatVar item_money(CV_SWITCH, "esp_money", "1", "MvM money", "Show MvM money"); static CatVar item_money(CV_SWITCH, "esp_money", "1", "MvM money",
"Show MvM money");
static CatVar item_money_red(CV_SWITCH, "esp_money_red", "1", "Red MvM money", static CatVar item_money_red(CV_SWITCH, "esp_money_red", "1", "Red MvM money",
"Show red MvM money"); "Show red MvM money");
static CatVar item_spellbooks(CV_SWITCH, "esp_spellbooks", "1", "Spellbooks", static CatVar item_spellbooks(CV_SWITCH, "esp_spellbooks", "1", "Spellbooks",
"Spell Books"); "Spell Books");
static CatVar item_weapon_spawners(CV_SWITCH, "esp_weapon_spawners", "1", static CatVar item_weapon_spawners(CV_SWITCH, "esp_weapon_spawners", "1",
"Show weapon spawners", "Show weapon spawners",
"TF2C deathmatch weapon spawners"); "TF2C deathmatch weapon spawners");
static CatVar item_adrenaline(CV_SWITCH, "esp_item_adrenaline", "0", "Show Adrenaline", static CatVar item_adrenaline(CV_SWITCH, "esp_item_adrenaline", "0",
"TF2C adrenaline pills"); "Show Adrenaline", "TF2C adrenaline pills");
// Projectile esp // Projectile esp
static CatVar proj_esp(CV_SWITCH, "esp_proj", "1", "Projectile ESP", "Projectile ESP"); static CatVar proj_esp(CV_SWITCH, "esp_proj", "1", "Projectile ESP",
"Projectile ESP");
static CatEnum proj_esp_enum({ "OFF", "ALL", "CRIT" }); static CatEnum proj_esp_enum({ "OFF", "ALL", "CRIT" });
static CatVar proj_rockets(proj_esp_enum, "esp_proj_rockets", "1", "Rockets", static CatVar proj_rockets(proj_esp_enum, "esp_proj_rockets", "1", "Rockets",
"Rockets"); "Rockets");
static CatVar proj_arrows(proj_esp_enum, "esp_proj_arrows", "1", "Arrows", "Arrows"); static CatVar proj_arrows(proj_esp_enum, "esp_proj_arrows", "1", "Arrows",
static CatVar proj_pipes(proj_esp_enum, "esp_proj_pipes", "1", "Pipes", "Pipebombs"); "Arrows");
static CatVar proj_pipes(proj_esp_enum, "esp_proj_pipes", "1", "Pipes",
"Pipebombs");
static CatVar proj_stickies(proj_esp_enum, "esp_proj_stickies", "1", "Stickies", static CatVar proj_stickies(proj_esp_enum, "esp_proj_stickies", "1", "Stickies",
"Stickybombs"); "Stickybombs");
static CatVar proj_enemy(CV_SWITCH, "esp_proj_enemy", "1", "Only enemy projectiles", static CatVar proj_enemy(CV_SWITCH, "esp_proj_enemy", "1",
"Don't show friendly projectiles"); "Only enemy projectiles",
"Don't show friendly projectiles");
// Debug // Debug
static CatVar entity_info(CV_SWITCH, "esp_entity", "0", "Entity ESP", static CatVar entity_info(CV_SWITCH, "esp_entity", "0", "Entity ESP",
"Show entity info (debug)"); "Show entity info (debug)");
static CatVar entity_model(CV_SWITCH, "esp_model_name", "0", "Model name ESP", static CatVar entity_model(CV_SWITCH, "esp_model_name", "0", "Model name ESP",
"Model name esp (DEBUG ONLY)"); "Model name esp (DEBUG ONLY)");
static CatVar entity_id(CV_SWITCH, "esp_entity_id", "1", "Entity ID", static CatVar entity_id(CV_SWITCH, "esp_entity_id", "1", "Entity ID",
"Used with Entity ESP. Shows entityID"); "Used with Entity ESP. Shows entityID");
// CatVar draw_hitbox(CV_SWITCH, "esp_hitbox", "1", "Draw Hitbox"); // CatVar draw_hitbox(CV_SWITCH, "esp_hitbox", "1", "Draw Hitbox");

View File

@ -33,13 +33,13 @@ static CatVar follow_activation(CV_INT, "fb_activation", "175",
CatVar follow_steam(CV_INT, "fb_steam", "0", "Follow Steam Id", CatVar follow_steam(CV_INT, "fb_steam", "0", "Follow Steam Id",
"Set a steam id to let followbot prioritize players"); "Set a steam id to let followbot prioritize players");
static CatVar mimic_slot(CV_SWITCH, "fb_mimic_slot", "0", "Mimic weapon slot", static CatVar mimic_slot(CV_SWITCH, "fb_mimic_slot", "0", "Mimic weapon slot",
"Mimic follow target's weapon slot"); "Mimic follow target's weapon slot");
static CatVar always_medigun(CV_SWITCH, "fb_always_medigun", "0", "Always Medigun", static CatVar always_medigun(CV_SWITCH, "fb_always_medigun", "0",
"Always use medigun"); "Always Medigun", "Always use medigun");
static CatVar sync_taunt(CV_SWITCH, "fb_sync_taunt", "0", "Synced taunt", static CatVar sync_taunt(CV_SWITCH, "fb_sync_taunt", "0", "Synced taunt",
"Taunt when follow target does"); "Taunt when follow target does");
static CatVar change(CV_SWITCH, "fb_switch", "1", "Change followbot target", static CatVar change(CV_SWITCH, "fb_switch", "1", "Change followbot target",
"Always change roaming target when possible"); "Always change roaming target when possible");
// Something to store breadcrumbs created by followed players // Something to store breadcrumbs created by followed players
static std::vector<Vector> breadcrumbs; static std::vector<Vector> breadcrumbs;
static const int crumb_limit = 64; // limit static const int crumb_limit = 64; // limit

View File

@ -16,7 +16,7 @@ namespace killstreak
{ {
static CatVar enabled(CV_SWITCH, "killstreak", "0", static CatVar enabled(CV_SWITCH, "killstreak", "0",
"Enable killstreaks on all weapons"); "Enable killstreaks on all weapons");
int killstreak{ 0 }; int killstreak{ 0 };

View File

@ -16,45 +16,49 @@ namespace shared
namespace lagexploit namespace lagexploit
{ {
static CatVar toggle(CV_SWITCH, "se_toggle", "0", "toggle", "Toggle sequence exploit"); static CatVar toggle(CV_SWITCH, "se_toggle", "0", "toggle",
"Toggle sequence exploit");
static CatVar shoot(CV_SWITCH, "se_shoot", "0", "Instant revvup/shoot", static CatVar shoot(CV_SWITCH, "se_shoot", "0", "Instant revvup/shoot",
"Instant revvup/shoot two shots at once"); "Instant revvup/shoot two shots at once");
// SHOUTOUTS TO BLACKFIRE // SHOUTOUTS TO BLACKFIRE
static CatVar doom(CV_SWITCH, "se_doom", "0", "Shoot 2+ shots at once", static CatVar doom(CV_SWITCH, "se_doom", "0", "Shoot 2+ shots at once",
"See Center string on activation."); "See Center string on activation.");
static CatVar piss(CV_SWITCH, "se_piss", "0", "Piss", "Spam Jarate"); static CatVar piss(CV_SWITCH, "se_piss", "0", "Piss", "Spam Jarate");
static CatVar razorback(CV_SWITCH, "se_antirazorback", "0", "Anti-Razorback", static CatVar razorback(CV_SWITCH, "se_antirazorback", "0", "Anti-Razorback",
"Stab through razorbacks"); "Stab through razorbacks");
static CatVar stickyspam(CV_SWITCH, "se_stickyspam", "0", "Sticky spam", static CatVar stickyspam(CV_SWITCH, "se_stickyspam", "0", "Sticky spam",
"Allows Spam of stickies simply by holding Mouse1."); "Allows Spam of stickies simply by holding Mouse1.");
static CatVar infinitecharge(CV_SWITCH, "se_infinite_charge", "0", static CatVar
"Infinite sticky charge", infinitecharge(CV_SWITCH, "se_infinite_charge", "0",
"Infinitely charge stickies, (can be used for sniping " "Infinite sticky charge",
"and or b1g dmg using the quickiebomb launcher)"); "Infinitely charge stickies, (can be used for sniping "
"and or b1g dmg using the quickiebomb launcher)");
static CatVar cloak(CV_SWITCH, "se_cloak", "0", "Instant decloak/cloak", ""); static CatVar cloak(CV_SWITCH, "se_cloak", "0", "Instant decloak/cloak", "");
static CatVar cap(CV_SWITCH, "se_cap", "0", "Auto instant cap", ""); static CatVar cap(CV_SWITCH, "se_cap", "0", "Auto instant cap", "");
static CatVar cart(CV_SWITCH, "se_cart", "0", "Farm cart points", static CatVar cart(CV_SWITCH, "se_cart", "0", "Farm cart points",
"Automatically farm points by touching " "Automatically farm points by touching "
"the cart (only works on attacking " "the cart (only works on attacking "
"team)"); "team)");
static CatVar instant_weapon_switch(CV_SWITCH, "se_switch", "0", static CatVar instant_weapon_switch(CV_SWITCH, "se_switch", "0",
"Instant weapon switch", ""); "Instant weapon switch", "");
static CatVar key(CV_KEY, "se_key", "0", "Sequence exploit key"); static CatVar key(CV_KEY, "se_key", "0", "Sequence exploit key");
static CatVar weaponswitch(CV_KEY, "se_switch_key", "0", static CatVar weaponswitch(CV_KEY, "se_switch_key", "0",
"Switch spam key (for gru) key"); "Switch spam key (for gru) key");
static CatVar delay1(CV_INT, "se_switch_delay1", "0", static CatVar delay1(CV_INT, "se_switch_delay1", "0",
"Delay before switching to melee"); "Delay before switching to melee");
static CatVar delay2(CV_INT, "se_switch_delay2", "0", static CatVar delay2(CV_INT, "se_switch_delay2", "0",
"Delay before switching to Primary"); "Delay before switching to Primary");
static CatVar master_switch(CV_SWITCH, "se_master", "1", "Enable sequence exploit", static CatVar
"Master switch for the sequence exploit\nDisabling this " master_switch(CV_SWITCH, "se_master", "1", "Enable sequence exploit",
"disables everything else that uses it"); "Master switch for the sequence exploit\nDisabling this "
"disables everything else that uses it");
static CatVar value(CV_INT, "se_value", "900", "Sequence exploit value", static CatVar value(CV_INT, "se_value", "900", "Sequence exploit value",
"Value of user cmds to spam with"); "Value of user cmds to spam with");
static CatVar cap_range(CV_FLOAT, "se_cap_range", "200.0f", "Autocap range", static CatVar
"Autocap range, increase if you notice that you only lagy " cap_range(CV_FLOAT, "se_cap_range", "200.0f", "Autocap range",
"once you are already in the cap zone"); "Autocap range, increase if you notice that you only lagy "
"once you are already in the cap zone");
CatCommand do_lagexploit("se_do", "Sequence exploit (for use in scripts)", CatCommand do_lagexploit("se_do", "Sequence exploit (for use in scripts)",
[]() { AddExploitTicks(6); }); []() { AddExploitTicks(6); });
int exticks = 0; int exticks = 0;

View File

@ -26,35 +26,39 @@ namespace misc
{ {
static CatVar debug_info(CV_SWITCH, "debug_info", "0", "Debug info", static CatVar debug_info(CV_SWITCH, "debug_info", "0", "Debug info",
"Shows some debug info in-game"); "Shows some debug info in-game");
static CatVar flashlight_spam(CV_SWITCH, "flashlight", "0", "Flashlight spam", static CatVar flashlight_spam(CV_SWITCH, "flashlight", "0", "Flashlight spam",
"HL2DM flashlight spam"); "HL2DM flashlight spam");
static CatVar auto_balance_spam(CV_SWITCH, "request_balance_spam", "0", static CatVar
"Inf Auto Balance Spam", auto_balance_spam(CV_SWITCH, "request_balance_spam", "0",
"Use to send a autobalance request to the server that " "Inf Auto Balance Spam",
"doesnt prevent you from using it again\nCredits to " "Use to send a autobalance request to the server that "
"Blackfire"); "doesnt prevent you from using it again\nCredits to "
static CatVar anti_afk(CV_SWITCH, "anti_afk", "0", "Anti-AFK", "Blackfire");
"Sends random commands to prevent being kicked from server"); static CatVar
anti_afk(CV_SWITCH, "anti_afk", "0", "Anti-AFK",
"Sends random commands to prevent being kicked from server");
static CatVar auto_strafe(CV_SWITCH, "auto_strafe", "0", "Auto-Strafe", static CatVar auto_strafe(CV_SWITCH, "auto_strafe", "0", "Auto-Strafe",
"Automaticly airstrafes for you."); "Automaticly airstrafes for you.");
static CatVar render_zoomed(CV_SWITCH, "render_zoomed", "0", static CatVar
"Render model when zoomed-in", render_zoomed(CV_SWITCH, "render_zoomed", "0",
"Renders player model while being zoomed in as Sniper"); "Render model when zoomed-in",
"Renders player model while being zoomed in as Sniper");
static CatVar nopush_enabled(CV_SWITCH, "nopush_enabled", "0", "No Push", static CatVar nopush_enabled(CV_SWITCH, "nopush_enabled", "0", "No Push",
"Prevents other players from pushing you around."); "Prevents other players from pushing you around.");
static CatVar no_homo(CV_SWITCH, "no_homo", "1", "No Homo", "read if gay"); static CatVar no_homo(CV_SWITCH, "no_homo", "1", "No Homo", "read if gay");
// Taunting stuff // Taunting stuff
static CatVar tauntslide(CV_SWITCH, "tauntslide", "0", "TF2C tauntslide", static CatVar tauntslide(CV_SWITCH, "tauntslide", "0", "TF2C tauntslide",
"Allows moving and shooting while taunting"); "Allows moving and shooting while taunting");
static CatVar tauntslide_tf2(CV_SWITCH, "tauntslide_tf2", "0", "Tauntslide", static CatVar tauntslide_tf2(CV_SWITCH, "tauntslide_tf2", "0", "Tauntslide",
"Allows free movement while taunting with movable " "Allows free movement while taunting with movable "
"taunts\nOnly works in tf2"); "taunts\nOnly works in tf2");
static CatVar static CatVar
show_spectators(CV_SWITCH, "show_spectators", "0", "Show spectators", show_spectators(CV_SWITCH, "show_spectators", "0", "Show spectators",
"Show who's spectating you\nonly works in valve servers"); "Show who's spectating you\nonly works in valve servers");
static CatVar god_mode(CV_SWITCH, "godmode", "0", "no description", "no description"); static CatVar god_mode(CV_SWITCH, "godmode", "0", "no description",
"no description");
void *C_TFPlayer__ShouldDraw_original = nullptr; void *C_TFPlayer__ShouldDraw_original = nullptr;
bool C_TFPlayer__ShouldDraw_hook(IClientEntity *thisptr) bool C_TFPlayer__ShouldDraw_hook(IClientEntity *thisptr)

25
src/hacks/Radar.cpp Executable file → Normal file
View File

@ -21,27 +21,30 @@ std::array<textures::sprite, 2> tx_teams;
std::array<textures::sprite, 2> tx_items; std::array<textures::sprite, 2> tx_items;
static CatVar size(CV_INT, "radar_size", "300", "Radar size", static CatVar size(CV_INT, "radar_size", "300", "Radar size",
"Defines radar size in pixels"); "Defines radar size in pixels");
static CatVar zoom(CV_FLOAT, "radar_zoom", "20", "Radar zoom", static CatVar zoom(CV_FLOAT, "radar_zoom", "20", "Radar zoom",
"Defines radar zoom (1px = Xhu)"); "Defines radar zoom (1px = Xhu)");
static CatVar healthbar(CV_SWITCH, "radar_health", "1", "Radar healthbar", static CatVar healthbar(CV_SWITCH, "radar_health", "1", "Radar healthbar",
"Show radar healthbar"); "Show radar healthbar");
static CatVar enemies_over_teammates( static CatVar enemies_over_teammates(
CV_SWITCH, "radar_enemies_top", "1", "Show enemies on top", CV_SWITCH, "radar_enemies_top", "1", "Show enemies on top",
"If true, radar will render enemies on top of teammates"); "If true, radar will render enemies on top of teammates");
static CatVar icon_size(CV_INT, "radar_icon_size", "20", "Icon size", static CatVar icon_size(CV_INT, "radar_icon_size", "20", "Icon size",
"Defines radar icon size"); "Defines radar icon size");
static CatVar radar_enabled(CV_SWITCH, "radar", "0", "Enable", "Enable Radar"); static CatVar radar_enabled(CV_SWITCH, "radar", "0", "Enable", "Enable Radar");
static CatVar radar_x(CV_INT, "radar_x", "100", "Radar X", static CatVar radar_x(CV_INT, "radar_x", "100", "Radar X",
"Defines radar position (X)"); "Defines radar position (X)");
static CatVar radar_y(CV_INT, "radar_y", "100", "Radar Y", static CatVar radar_y(CV_INT, "radar_y", "100", "Radar Y",
"Defines radar position (Y)"); "Defines radar position (Y)");
static CatVar use_icons(CV_SWITCH, "radar_icons", "1", "Use Icons", static CatVar
"Radar will use class icons instead of class portraits"); use_icons(CV_SWITCH, "radar_icons", "1", "Use Icons",
static CatVar show_teammates(CV_SWITCH, "radar_teammates", "1", "Show Teammates"); "Radar will use class icons instead of class portraits");
static CatVar show_teammates(CV_SWITCH, "radar_teammates", "1",
"Show Teammates");
static CatVar show_healthpacks(CV_SWITCH, "radar_healthpacks", "1", static CatVar show_healthpacks(CV_SWITCH, "radar_healthpacks", "1",
"Show Healthpacks"); "Show Healthpacks");
static CatVar show_ammopacks(CV_SWITCH, "radar_ammopacks", "1", "Show Ammopacks"); static CatVar show_ammopacks(CV_SWITCH, "radar_ammopacks", "1",
"Show Ammopacks");
void Init() void Init()
{ {

14
src/hacks/Spam.cpp Executable file → Normal file
View File

@ -21,20 +21,22 @@ CatVar spam_source(spam_enum, "spam", "0", "Chat Spam",
"in cat_spam_file and loaded with cat_spam_reload (Use " "in cat_spam_file and loaded with cat_spam_reload (Use "
"console!)"); "console!)");
static CatVar random_order(CV_SWITCH, "spam_random", "0", "Random Order"); static CatVar random_order(CV_SWITCH, "spam_random", "0", "Random Order");
static CatVar filename(CV_STRING, "spam_file", "spam.txt", "Spam file", static CatVar
"Spam file name. Each line should be no longer than 100 " filename(CV_STRING, "spam_file", "spam.txt", "Spam file",
"characters, file must be located in cathook data folder"); "Spam file name. Each line should be no longer than 100 "
"characters, file must be located in cathook data folder");
CatCommand reload("spam_reload", "Reload spam file", Reload); CatCommand reload("spam_reload", "Reload spam file", Reload);
static CatVar spam_delay(CV_INT, "spam_delay", "800", "Spam delay", static CatVar spam_delay(CV_INT, "spam_delay", "800", "Spam delay",
"Delay between spam messages (in ms)", 0.0f, 8000.0f); "Delay between spam messages (in ms)", 0.0f, 8000.0f);
static CatEnum voicecommand_enum({ "DISABLED", "RANDOM", "MEDIC", "THANKS", static CatEnum voicecommand_enum({ "DISABLED", "RANDOM", "MEDIC", "THANKS",
"NICE SHOT", "CHEERS", "JEERS" }); "NICE SHOT", "CHEERS", "JEERS" });
static CatVar voicecommand_spam(voicecommand_enum, "spam_voicecommand", "0", static CatVar voicecommand_spam(voicecommand_enum, "spam_voicecommand", "0",
"Voice Command Spam", "Spams tf voice commands"); "Voice Command Spam",
"Spams tf voice commands");
static CatVar teamname_spam(CV_SWITCH, "spam_teamname", "0", "Teamname Spam", static CatVar teamname_spam(CV_SWITCH, "spam_teamname", "0", "Teamname Spam",
"Spam changes the tournament name"); "Spam changes the tournament name");
std::chrono::time_point<std::chrono::system_clock> last_spam_point{}; std::chrono::time_point<std::chrono::system_clock> last_spam_point{};

14
src/hacks/SpyAlert.cpp Executable file → Normal file
View File

@ -15,17 +15,17 @@ namespace spyalert
{ {
static CatVar enabled(CV_SWITCH, "spyalert_enabled", "0", "Enable", static CatVar enabled(CV_SWITCH, "spyalert_enabled", "0", "Enable",
"Master SpyAlert switch"); "Master SpyAlert switch");
static CatVar distance_warning(CV_FLOAT, "spyalert_warning", "500.0", static CatVar distance_warning(CV_FLOAT, "spyalert_warning", "500.0",
"Warning distance", "Warning distance",
"Distance where yellow warning shows"); "Distance where yellow warning shows");
static CatVar distance_backstab(CV_FLOAT, "spyalert_backstab", "200.0", static CatVar distance_backstab(CV_FLOAT, "spyalert_backstab", "200.0",
"Backstab distance", "Backstab distance",
"Distance where red warning shows"); "Distance where red warning shows");
static CatVar sound_alerts(CV_SWITCH, "spyalert_sound", "1", "Sound Alerts", static CatVar sound_alerts(CV_SWITCH, "spyalert_sound", "1", "Sound Alerts",
"Demoman yells spy when a spy is within distance"); "Demoman yells spy when a spy is within distance");
static CatVar sound_alert_interval(CV_FLOAT, "spyalert_interval", "3", static CatVar sound_alert_interval(CV_FLOAT, "spyalert_interval", "3",
"Alert Interval", "Sound alert interval"); "Alert Interval", "Sound alert interval");
bool warning_triggered = false; bool warning_triggered = false;
bool backstab_triggered = false; bool backstab_triggered = false;

View File

@ -449,27 +449,27 @@ index_t CreateNode(const Vector &xyz)
} }
static CatVar active_recording(CV_SWITCH, "wb_recording", "0", "Do recording", static CatVar active_recording(CV_SWITCH, "wb_recording", "0", "Do recording",
"Use BindToggle with this"); "Use BindToggle with this");
static CatVar draw_info(CV_SWITCH, "wb_info", "1", "Walkbot info"); static CatVar draw_info(CV_SWITCH, "wb_info", "1", "Walkbot info");
static CatVar draw_path(CV_SWITCH, "wb_path", "1", "Walkbot path"); static CatVar draw_path(CV_SWITCH, "wb_path", "1", "Walkbot path");
static CatVar draw_nodes(CV_SWITCH, "wb_nodes", "1", "Walkbot nodes"); static CatVar draw_nodes(CV_SWITCH, "wb_nodes", "1", "Walkbot nodes");
static CatVar draw_indices(CV_SWITCH, "wb_indices", "0", "Node indices"); static CatVar draw_indices(CV_SWITCH, "wb_indices", "0", "Node indices");
static CatVar free_move(CV_SWITCH, "wb_freemove", "1", "Allow free movement", static CatVar free_move(CV_SWITCH, "wb_freemove", "1", "Allow free movement",
"Allow free movement while pressing movement keys"); "Allow free movement while pressing movement keys");
static CatVar spawn_distance(CV_FLOAT, "wb_node_spawn_distance", "54", static CatVar spawn_distance(CV_FLOAT, "wb_node_spawn_distance", "54",
"Node spawn distance"); "Node spawn distance");
static CatVar max_distance(CV_FLOAT, "wb_replay_max_distance", "100", static CatVar max_distance(CV_FLOAT, "wb_replay_max_distance", "100",
"Max distance to node when replaying"); "Max distance to node when replaying");
static CatVar reach_distance( static CatVar reach_distance(
CV_FLOAT, "wb_replay_reach_distance", "32", CV_FLOAT, "wb_replay_reach_distance", "32",
"Distance where bot can be considered 'stepping' on the node"); "Distance where bot can be considered 'stepping' on the node");
static CatVar draw_connection_flags(CV_SWITCH, "wb_connection_flags", "1", static CatVar draw_connection_flags(CV_SWITCH, "wb_connection_flags", "1",
"Connection flags"); "Connection flags");
static CatVar force_slot(CV_INT, "wb_force_slot", "1", "Force slot", static CatVar force_slot(CV_INT, "wb_force_slot", "1", "Force slot",
"Walkbot will always select weapon in this slot"); "Walkbot will always select weapon in this slot");
static CatVar leave_if_empty(CV_SWITCH, "wb_leave_if_empty", "0", static CatVar leave_if_empty(CV_SWITCH, "wb_leave_if_empty", "0",
"Leave if no walkbot", "Leave if no walkbot",
"Leave game if there is no walkbot map"); "Leave game if there is no walkbot map");
CatCommand c_start_recording("wb_record", "Start recording", CatCommand c_start_recording("wb_record", "Start recording",
[]() { state::state = WB_RECORDING; }); []() { state::state = WB_RECORDING; });

View File

@ -18,7 +18,7 @@ int count_shots{ 0 };
int count_hits{ 0 }; int count_hits{ 0 };
int count_hits_head{ 0 }; int count_hits_head{ 0 };
static CatVar hitrate_check(CV_SWITCH, "hitrate", "1", "Monitor hitrate"); CatVar hitrate_check(CV_SWITCH, "hitrate", "1", "Monitor hitrate");
std::vector<std::chrono::time_point<std::chrono::high_resolution_clock>> std::vector<std::chrono::time_point<std::chrono::high_resolution_clock>>
shots{}; shots{};

View File

@ -8,11 +8,12 @@
static CatVar ipc_name(CV_STRING, "name_ipc", "", "IPC Name"); static CatVar ipc_name(CV_STRING, "name_ipc", "", "IPC Name");
static CatEnum namesteal_enum({ "OFF", "PASSIVE", "ACTIVE" }); static CatEnum namesteal_enum({ "OFF", "PASSIVE", "ACTIVE" });
static CatVar namesteal(namesteal_enum, "name_stealer", "0", "Name Stealer", static CatVar
"Attemt to steal your teammates names. Usefull for avoiding " namesteal(namesteal_enum, "name_stealer", "0", "Name Stealer",
"kicks\nPassive only changes when the name stolen is no " "Attemt to steal your teammates names. Usefull for avoiding "
"longer the best name to use\nActive Attemps to change the " "kicks\nPassive only changes when the name stolen is no "
"name whenever possible"); "longer the best name to use\nActive Attemps to change the "
"name whenever possible");
static std::string stolen_name; static std::string stolen_name;

View File

@ -38,36 +38,36 @@ const char *skynum[] = { "sky_tf2_04",
"sky_pyroland_02", "sky_pyroland_02",
"sky_pyroland_03" }; "sky_pyroland_03" };
static CatEnum skys({ "sky_tf2_04", static CatEnum skys({ "sky_tf2_04",
"sky_upward", "sky_upward",
"sky_dustbowl_01", "sky_dustbowl_01",
"sky_goldrush_01", "sky_goldrush_01",
"sky_granary_01", "sky_granary_01",
"sky_well_01", "sky_well_01",
"sky_gravel_01", "sky_gravel_01",
"sky_badlands_01", "sky_badlands_01",
"sky_hydro_01", "sky_hydro_01",
"sky_night_01", "sky_night_01",
"sky_nightfall_01", "sky_nightfall_01",
"sky_trainyard_01", "sky_trainyard_01",
"sky_stormfront_01", "sky_stormfront_01",
"sky_morningsnow_01", "sky_morningsnow_01",
"sky_alpinestorm_01", "sky_alpinestorm_01",
"sky_harvest_01", "sky_harvest_01",
"sky_harvest_night_01", "sky_harvest_night_01",
"sky_halloween", "sky_halloween",
"sky_halloween_night_01", "sky_halloween_night_01",
"sky_halloween_night2014_01", "sky_halloween_night2014_01",
"sky_island_01", "sky_island_01",
"sky_jungle_01", "sky_jungle_01",
"sky_invasion2fort_01", "sky_invasion2fort_01",
"sky_well_02", "sky_well_02",
"sky_outpost_01", "sky_outpost_01",
"sky_coastal_01", "sky_coastal_01",
"sky_rainbow_01", "sky_rainbow_01",
"sky_badlands_pyroland_01", "sky_badlands_pyroland_01",
"sky_pyroland_01", "sky_pyroland_01",
"sky_pyroland_02", "sky_pyroland_02",
"sky_pyroland_03" }); "sky_pyroland_03" });
static CatVar static CatVar
skybox_changer(skys, "skybox_changer", "0", "Change Skybox to this skybox", skybox_changer(skys, "skybox_changer", "0", "Change Skybox to this skybox",
"Change Skybox to this skybox, only changes on map load"); "Change Skybox to this skybox, only changes on map load");

View File

@ -12,11 +12,8 @@ static CatVar newlines_msg(CV_INT, "chat_newlines", "0", "Prefix newlines",
static CatVar log_sent(CV_SWITCH, "debug_log_sent_messages", "0", static CatVar log_sent(CV_SWITCH, "debug_log_sent_messages", "0",
"Log sent messages"); "Log sent messages");
static CatVar airstuck(CV_KEY, "airstuck", "0", "Airstuck", ""); static CatVar airstuck(CV_KEY, "airstuck", "0", "Airstuck", "");namespace hooked_methods
namespace hooked_methods
{ {
DEFINE_HOOKED_METHOD(SendNetMsg, bool, INetChannel *this_, INetMessage &msg, DEFINE_HOOKED_METHOD(SendNetMsg, bool, INetChannel *this_, INetMessage &msg,
bool force_reliable, bool voice) bool force_reliable, bool voice)
{ {
@ -24,7 +21,6 @@ DEFINE_HOOKED_METHOD(SendNetMsg, bool, INetChannel *this_, INetMessage &msg,
int offset; int offset;
std::string newlines; std::string newlines;
NET_StringCmd stringcmd; NET_StringCmd stringcmd;
// net_StringCmd // net_StringCmd
if (msg.GetType() == 4 && (newlines_msg || crypt_chat)) if (msg.GetType() == 4 && (newlines_msg || crypt_chat))
{ {

View File

@ -9,7 +9,8 @@
static CatVar resolver(CV_SWITCH, "resolver", "0", "Resolve angles"); static CatVar resolver(CV_SWITCH, "resolver", "0", "Resolve angles");
static CatVar nightmode(CV_SWITCH, "nightmode", "0", "Enable nightmode", ""); static CatVar nightmode(CV_SWITCH, "nightmode", "0", "Enable nightmode", "");
static CatVar servercrash(CV_SWITCH, "servercrash", "0", "crash servers",
"Crash servers by spamming signon net messages");
namespace hooked_methods namespace hooked_methods
{ {
@ -56,6 +57,13 @@ DEFINE_HOOKED_METHOD(FrameStageNotify, void, void *this_,
OldNightmode = nightmode; OldNightmode = nightmode;
} }
} }
// if (servercrash.KeyDown()) {
// NET_SignonState voice_meme(6, 0);
// INetChannel *ch = (INetChannel *) g_IEngine->GetNetChannelInfo();
// for(int i = 0; i<128; i++)
// ch->SendNetMsg((INetMessage&)voice_meme, false, false);
// ch->Transmit();
// }
static IClientEntity *ent; static IClientEntity *ent;
PROF_SECTION(FrameStageNotify_TOTAL); PROF_SECTION(FrameStageNotify_TOTAL);

View File

@ -6,11 +6,12 @@
#include <MiscTemporary.hpp> #include <MiscTemporary.hpp>
#include "HookedMethods.hpp" #include "HookedMethods.hpp"
static CatVar override_fov_zoomed(CV_FLOAT, "fov_zoomed", "0", "FOV override (zoomed)", static CatVar
"Overrides FOV with this value when zoomed in " override_fov_zoomed(CV_FLOAT, "fov_zoomed", "0", "FOV override (zoomed)",
"(default FOV when zoomed is 20)"); "Overrides FOV with this value when zoomed in "
"(default FOV when zoomed is 20)");
static CatVar override_fov(CV_FLOAT, "fov", "0", "FOV override", static CatVar override_fov(CV_FLOAT, "fov", "0", "FOV override",
"Overrides FOV with this value"); "Overrides FOV with this value");
static CatVar freecam(CV_KEY, "debug_freecam", "0", "Freecam"); static CatVar freecam(CV_KEY, "debug_freecam", "0", "Freecam");

View File

@ -13,12 +13,12 @@ CatVar disable_visuals(CV_SWITCH, "no_visuals", "0", "Disable ALL drawing",
CatVar no_zoom(CV_SWITCH, "no_zoom", "0", "Disable scope", CatVar no_zoom(CV_SWITCH, "no_zoom", "0", "Disable scope",
"Disables black scope overlay"); "Disables black scope overlay");
static CatVar pure_bypass(CV_SWITCH, "pure_bypass", "0", "Pure Bypass", static CatVar pure_bypass(CV_SWITCH, "pure_bypass", "0", "Pure Bypass",
"Bypass sv_pure"); "Bypass sv_pure");
void *pure_orig = nullptr; void *pure_orig = nullptr;
void **pure_addr = nullptr; void **pure_addr = nullptr;
static CatEnum software_cursor_enum({ "KEEP", "ALWAYS", "NEVER", "MENU ON", static CatEnum software_cursor_enum({ "KEEP", "ALWAYS", "NEVER", "MENU ON",
"MENU OFF" }); "MENU OFF" });
static CatVar static CatVar
software_cursor_mode(software_cursor_enum, "software_cursor_mode", "0", software_cursor_mode(software_cursor_enum, "software_cursor_mode", "0",
"Software cursor", "Software cursor",

4
src/prediction.cpp Executable file → Normal file
View File

@ -254,8 +254,8 @@ Vector ProjectilePrediction_Engine(CachedEntity *ent, int hb, float speed,
static CatVar debug_pp_extrapolate( static CatVar debug_pp_extrapolate(
CV_SWITCH, "debug_pp_extrapolate", "0", CV_SWITCH, "debug_pp_extrapolate", "0",
"Extrapolate entity position when predicting projectiles"); "Extrapolate entity position when predicting projectiles");
static CatVar debug_pp_rockettimeping(CV_SWITCH, "debug_pp_rocket_time_ping", "0", static CatVar debug_pp_rockettimeping(CV_SWITCH, "debug_pp_rocket_time_ping",
"Compensate for ping in pp"); "0", "Compensate for ping in pp");
Vector ProjectilePrediction(CachedEntity *ent, int hb, float speed, Vector ProjectilePrediction(CachedEntity *ent, int hb, float speed,
float gravitymod, float entgmod) float gravitymod, float entgmod)

View File

@ -408,7 +408,7 @@ bool NET_SignonState::ReadFromBuffer(bf_read &buffer)
const char *NET_SignonState::ToString(void) const const char *NET_SignonState::ToString(void) const
{ {
return "(null)"; return strfmt("net_SignonState: state %i, count %i", m_nSignonState, m_nSpawnCount);
} }
bool NET_SetConVar::WriteToBuffer(bf_write &buffer) bool NET_SetConVar::WriteToBuffer(bf_write &buffer)

View File

@ -15,7 +15,8 @@
namespace effect_chams namespace effect_chams
{ {
static CatVar enable(CV_SWITCH, "chams_enable", "0", "Enable", "Main chams switch"); static CatVar enable(CV_SWITCH, "chams_enable", "0", "Enable",
"Main chams switch");
static CatVar flat(CV_SWITCH, "chams_flat", "0", "Flat", static CatVar flat(CV_SWITCH, "chams_flat", "0", "Flat",
"Makes chams brighter and more full"); "Makes chams brighter and more full");
static CatVar health(CV_SWITCH, "chams_health", "0", "Health", static CatVar health(CV_SWITCH, "chams_health", "0", "Health",

3
src/visual/EffectGlow.cpp Executable file → Normal file
View File

@ -30,7 +30,8 @@ CScreenSpaceEffectRegistration::CScreenSpaceEffectRegistration(
namespace effect_glow namespace effect_glow
{ {
static CatVar enable(CV_SWITCH, "glow_enable", "0", "Enable", "Main glow switch"); static CatVar enable(CV_SWITCH, "glow_enable", "0", "Enable",
"Main glow switch");
static CatVar health(CV_SWITCH, "glow_health", "0", "Health", static CatVar health(CV_SWITCH, "glow_health", "0", "Health",
"Change glow color based on their health"); "Change glow color based on their health");
static CatVar teammates(CV_SWITCH, "glow_teammates", "0", "Teammates", static CatVar teammates(CV_SWITCH, "glow_teammates", "0", "Teammates",

15
src/visual/colors.cpp Executable file → Normal file
View File

@ -8,18 +8,19 @@
#include "common.hpp" #include "common.hpp"
static CatVar user_red_blue(CV_INT, "esp_color_red_b", "0", "Red Team: Blue", static CatVar user_red_blue(CV_INT, "esp_color_red_b", "0", "Red Team: Blue",
"Blue color for red team", 255); "Blue color for red team", 255);
static CatVar user_red_green(CV_INT, "esp_color_red_g", "0", "Red Team: Green", static CatVar user_red_green(CV_INT, "esp_color_red_g", "0", "Red Team: Green",
"Green color for red team", 255); "Green color for red team", 255);
static CatVar user_red_red(CV_INT, "esp_color_red_r", "0", "Red Team: Red", static CatVar user_red_red(CV_INT, "esp_color_red_r", "0", "Red Team: Red",
"Red color for red team", 255); "Red color for red team", 255);
static CatVar user_blue_blue(CV_INT, "esp_color_blue_b", "0", "Blue Team: Blue", static CatVar user_blue_blue(CV_INT, "esp_color_blue_b", "0", "Blue Team: Blue",
"Blue color for blue team", 255); "Blue color for blue team", 255);
static CatVar user_blue_green(CV_INT, "esp_color_blue_g", "0", "Blue Team: Green", static CatVar user_blue_green(CV_INT, "esp_color_blue_g", "0",
"Green color for blue team", 255); "Blue Team: Green", "Green color for blue team",
255);
static CatVar user_blue_red(CV_INT, "esp_color_blue_r", "0", "Blue Team: Red", static CatVar user_blue_red(CV_INT, "esp_color_blue_r", "0", "Blue Team: Red",
"Red color for blue team", 255); "Red color for blue team", 255);
rgba_t colors::EntityF(CachedEntity *ent) rgba_t colors::EntityF(CachedEntity *ent)
{ {

View File

@ -50,11 +50,11 @@ void BeginCheatVisuals()
std::mutex drawing_mutex; std::mutex drawing_mutex;
static CatVar info_text(CV_SWITCH, "info", "1", "Show info", static CatVar info_text(CV_SWITCH, "info", "1", "Show info",
"Show cathook version in top left corner"); "Show cathook version in top left corner");
static CatVar info_text_min(CV_SWITCH, "info_min", "0", "Show minimal info", static CatVar info_text_min(CV_SWITCH, "info_min", "0", "Show minimal info",
"Only show cathook title in top left corner"); "Only show cathook title in top left corner");
static CatVar enable_logo(CV_SWITCH, "nullcore_mode_logo", "1", static CatVar enable_logo(CV_SWITCH, "nullcore_mode_logo", "1",
"Enable Nullcore watermark", ""); "Enable Nullcore watermark", "");
void DrawCheatVisuals() void DrawCheatVisuals()
{ {

View File

@ -13,7 +13,7 @@
#ifndef FEATURE_FIDGET_SPINNER_ENABLED #ifndef FEATURE_FIDGET_SPINNER_ENABLED
static CatVar enable_spinner(CV_SWITCH, "fidgetspinner", "0", "Fidget Spinner", static CatVar enable_spinner(CV_SWITCH, "fidgetspinner", "0", "Fidget Spinner",
"Part of Cathook Autism Awareness program"); "Part of Cathook Autism Awareness program");
CatVar v9mode(CV_SWITCH, "nullcore_mode", "0", "Nullcore mode", CatVar v9mode(CV_SWITCH, "nullcore_mode", "0", "Nullcore mode",
"Part of Cathook Autism Awareness program"); "Part of Cathook Autism Awareness program");
@ -52,14 +52,15 @@ void InitSpinner()
} }
static CatVar spinner_speed_cap(CV_FLOAT, "fidgetspinner_speed_cap", "30", static CatVar spinner_speed_cap(CV_FLOAT, "fidgetspinner_speed_cap", "30",
"Speed cap"); "Speed cap");
static CatVar spinner_speed_scale(CV_FLOAT, "fidgetspinner_speed_scale", "0.03", static CatVar spinner_speed_scale(CV_FLOAT, "fidgetspinner_speed_scale", "0.03",
"Speed scale"); "Speed scale");
static CatVar spinner_decay_speed(CV_FLOAT, "fidgetspinner_decay_speed", "0.1", static CatVar spinner_decay_speed(CV_FLOAT, "fidgetspinner_decay_speed", "0.1",
"Decay speed"); "Decay speed");
static CatVar spinner_scale(CV_FLOAT, "fidgetspinner_scale", "32", "Spinner Size"); static CatVar spinner_scale(CV_FLOAT, "fidgetspinner_scale", "32",
"Spinner Size");
static CatVar spinner_min_speed(CV_FLOAT, "fidgetspinner_min_speed", "2", static CatVar spinner_min_speed(CV_FLOAT, "fidgetspinner_min_speed", "2",
"Spinner Min Speed"); "Spinner Min Speed");
draw_api::texture_handle_t text{ GLEZ_TEXTURE_INVALID }; draw_api::texture_handle_t text{ GLEZ_TEXTURE_INVALID };

View File

@ -8,6 +8,7 @@ const std::vector<std::string> fonts = { "Tahoma Bold", "Tahoma",
"TF2 Build", "Verdana", "TF2 Build", "Verdana",
"Verdana Bold", "Arial", "Verdana Bold", "Arial",
"Courier New", "Ubuntu Mono Bold" }; "Courier New", "Ubuntu Mono Bold" };
CatEnum family_enum(fonts);
} }
int colorsint::FromHSL(float h, float s, float v) int colorsint::FromHSL(float h, float s, float v)

View File

@ -23,10 +23,11 @@ unsigned long font_item = 0;
CatVar scale(CV_FLOAT, "gui_ncc_scale", "1", "NCC GUI Scale", CatVar scale(CV_FLOAT, "gui_ncc_scale", "1", "NCC GUI Scale",
"Defines scale of NCC gui", 0.5f, 4.0f); "Defines scale of NCC gui", 0.5f, 4.0f);
static CatVar font_family(fonts::family_enum, "gui_ncc_font_family", "3", static CatVar font_family(fonts::family_enum, "gui_ncc_font_family", "3",
"NCC Font Family", "Defines font family for NCC menu"); "NCC Font Family",
static CatVar font_title_family(fonts::family_enum, "gui_ncc_font_title_family", "4", "Defines font family for NCC menu");
"NCC Title Family", static CatVar font_title_family(fonts::family_enum, "gui_ncc_font_title_family",
"Defines font family for NCC menu titles"); "4", "NCC Title Family",
"Defines font family for NCC menu titles");
Tooltip *tooltip = nullptr; Tooltip *tooltip = nullptr;
Root *root = nullptr; Root *root = nullptr;