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"
// This is a temporary file to put code that needs moving/refactoring in.
extern bool *bSendPackets;
extern CatVar no_zoom;
extern CatVar clean_screenshots;

View File

@ -4,7 +4,6 @@
*/
#include "MiscTemporary.hpp"
CatVar minigun_jump(CV_SWITCH, "minigun_jump", "0", "TF2C minigun jump",
"Allows jumping while shooting with minigun");
@ -24,8 +23,6 @@ CatVar serverlag_amount(
CV_INT, "serverlag", "0", "serverlag",
"Lag the server by spamming this many voicecommands per tick");
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;
CatVar crypt_chat(

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

@ -25,7 +25,8 @@ std::mutex cache_mutex{};
std::string api_key_s = "";
bool valid_api_key = false;
static CatVar enable_bptf(CV_SWITCH, "bptf_enable", "0", "Enable backpack.tf",
static CatVar
enable_bptf(CV_SWITCH, "bptf_enable", "0", "Enable backpack.tf",
"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) {

View File

@ -15,7 +15,8 @@
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",
"Don't log your messages if spam is active");
static CatVar dont_log_ipc(CV_SWITCH, "chat_log_noipc", "1", "No IPC",

View File

@ -21,28 +21,31 @@ CatVar enabled(CV_SWITCH, "aa_enabled", "0", "Anti-Aim",
"Master AntiAim switch");
static CatVar trueang(CV_SWITCH, "aa_realfakes", "0", "Real fakes",
"Do real fakeangles (Unresolveable)");
static CatVar yaw(CV_FLOAT, "aa_yaw", "0.0", "Yaw", "Static yaw (left/right)", 360.0);
static CatVar pitch(CV_FLOAT, "aa_pitch", "-89.0", "Pitch", "Static pitch (up/down)",
-89.0, 89.0);
static CatVar yaw(CV_FLOAT, "aa_yaw", "0.0", "Yaw", "Static yaw (left/right)",
360.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 yaw (left/right)", 360.0);
static CatVar pitch_real(CV_FLOAT, "aa_pitch_real", "-89.0", "Real Pitch",
"Static pitch (up/down)", -89.0, 89.0);
static CatEnum yaw_mode_enum({ "KEEP", "STATIC", "JITTER", "BIGRANDOM", "RANDOM",
"SPIN", "OFFSETKEEP", "EDGE", "HECK", "FAKESIDEWAYS" });
static CatEnum yaw_mode_enum({ "KEEP", "STATIC", "JITTER", "BIGRANDOM",
"RANDOM", "SPIN", "OFFSETKEEP", "EDGE", "HECK",
"FAKESIDEWAYS" });
static CatEnum pitch_mode_enum({ "KEEP", "STATIC", "JITTER", "RANDOM", "FLIP",
"FAKEFLIP", "FAKEUP", "FAKEDOWN", "FAKECENTER", "UP",
"DOWN", "HECK" });
"FAKEFLIP", "FAKEUP", "FAKEDOWN", "FAKECENTER",
"UP", "DOWN", "HECK" });
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",
"Pitch mode");
static CatVar true_yaw_mode(yaw_mode_enum, "aa_yaw_mode_real", "0", "The Real Yaw",
"Yaw mode");
static CatVar true_yaw_mode(yaw_mode_enum, "aa_yaw_mode_real", "0",
"The Real Yaw", "Yaw mode");
static CatVar true_pitch_mode(pitch_mode_enum, "aa_pitch_mode_real", "0",
"The Real Pitch", "Pitch mode");
static CatVar roll(CV_FLOAT, "aa_roll", "0", "Roll", "Roll angle (viewangles.z)", -180,
180);
static CatVar no_clamping(CV_SWITCH, "aa_no_clamp", "0", "Don't clamp angles",
static CatVar roll(CV_FLOAT, "aa_roll", "0", "Roll",
"Roll angle (viewangles.z)", -180, 180);
static CatVar
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",
"Spin speed (degrees/second)");

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

View File

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

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

@ -15,7 +15,8 @@ namespace autodetonator
{
// Vars for user settings
static CatVar enabled(CV_SWITCH, "detonator_enabled", "0", "Auto-Detonator-detonator",
static CatVar enabled(CV_SWITCH, "detonator_enabled", "0",
"Auto-Detonator-detonator",
"Master auto detonator switch");
static CatVar legit(CV_SWITCH, "detonator_legit", "0", "Ignore invis",
"Ignores invis spies");

View File

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

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

@ -18,26 +18,30 @@ namespace autoreflect
// Vars for user settings
static CatVar enabled(CV_SWITCH, "reflect_enabled", "0", "Auto Reflect",
"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",
"Only when not shooting",
"Don't AutoReflect if you're holding M1");
static CatVar legit(CV_SWITCH, "reflect_legit", "0", "Legit Reflect",
static CatVar
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",
"Allows auto-reflect to work in dodgeball servers");
static CatVar blastkey(CV_KEY, "reflect_key", "0", "Reflect Key",
"Hold this key to activate auto-airblast");
static CatVar stickies(CV_SWITCH, "reflect_stickybombs", "0", "Reflect stickies",
"Reflect Stickybombs");
static CatVar stickies(CV_SWITCH, "reflect_stickybombs", "0",
"Reflect stickies", "Reflect Stickybombs");
static CatVar teammates(CV_SWITCH, "reflect_teammates", "0",
"Reflect teammates projectiles", "Useful in dodgeball with "
"Reflect teammates projectiles",
"Useful in dodgeball with "
"free-for-all enabled");
static CatVar fov(CV_FLOAT, "reflect_fov", "85", "Reflect FOV", "Reflect FOV", 180.0f);
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",
"Draws a ring to represent your current reflect fov");
static CatVar fovcircle_opacity(CV_FLOAT, "reflect_fov_draw_opacity", "0.7",
"FOV Circle Opacity", "Defines opacity of FOV circle",
0.0f, 1.0f);
"FOV Circle Opacity",
"Defines opacity of FOV circle", 0.0f, 1.0f);
// TODO setup proj sorting
// TODO CatVar big_proj(CV_SWITCH, "reflect_big_projectile", "0", "Reflect big
// projectiles", "Reflect Rockets");

View File

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

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

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

@ -15,7 +15,8 @@ namespace bunnyhop
{
// Var for user settings
static CatVar enabled(CV_SWITCH, "bhop_enabled", "0", "Bunnyhop",
static CatVar
enabled(CV_SWITCH, "bhop_enabled", "0", "Bunnyhop",
"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

View File

@ -16,14 +16,17 @@ namespace esp
{
// 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
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_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
static CatEnum tracers_enum({ "OFF", "CENTER", "BOTTOM" });
static CatVar tracers(tracers_enum, "esp_tracers", "0", "Tracers",
static CatVar
tracers(tracers_enum, "esp_tracers", "0", "Tracers",
"SDraws a line from the player to a position on your screen");
// Emoji Esp
static CatEnum emoji_esp_enum({ "None", "Joy", "Thinking" });
@ -35,7 +38,8 @@ static CatVar emoji_esp_size(CV_FLOAT, "esp_emoji_size", "32", "Emoji ESP Size",
"Emoji size");
static CatVar emoji_esp_scaling(CV_SWITCH, "esp_emoji_scaling", "1",
"Emoji ESP Scaling", "Emoji ESP Scaling");
static CatVar emoji_min_size(CV_INT, "esp_emoji_min_size", "20", "Emoji ESP min size",
static CatVar
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]{};
@ -44,24 +48,28 @@ static CatEnum show_health_enum({ "None", "Text", "Healthbar", "Both" });
static CatVar show_health(show_health_enum, "esp_health", "3", "Health ESP",
"Show enemy health");
static CatVar draw_bones(CV_SWITCH, "esp_bones", "0", "Draw Bones");
static CatEnum sightlines_enum({ "None", "Sniper Only",
static CatEnum
sightlines_enum({ "None", "Sniper Only",
"All" }); // I ripped of lbox's choices cuz its nice
static CatVar sightlines(sightlines_enum, "esp_sightlines", "0", "Show sightlines",
static CatVar sightlines(sightlines_enum, "esp_sightlines", "0",
"Show sightlines",
"Displays a line of where players are looking");
static CatEnum esp_text_position_enum({ "TOP RIGHT", "BOTTOM RIGHT", "CENTER", "ABOVE",
"BELOW" });
static CatVar esp_text_position(esp_text_position_enum, "esp_text_position", "0",
"Text position", "Defines text position");
static CatEnum esp_text_position_enum({ "TOP RIGHT", "BOTTOM RIGHT", "CENTER",
"ABOVE", "BELOW" });
static CatVar esp_text_position(esp_text_position_enum, "esp_text_position",
"0", "Text position", "Defines text position");
static CatVar esp_expand(
CV_INT, "esp_expand", "0", "Expand Esp",
"Spreads out Box, health bar, and text from center"); // Note, check if this
// should be int, it
// is being used by
// casting as float
static CatVar vischeck(CV_SWITCH, "esp_vischeck", "1", "VisCheck",
static CatVar
vischeck(CV_SWITCH, "esp_vischeck", "1", "VisCheck",
"ESP visibility check - makes enemy info behind walls darker, "
"disable this if you get FPS drops");
static CatVar legit(CV_SWITCH, "esp_legit", "0", "Legit Mode",
static CatVar
legit(CV_SWITCH, "esp_legit", "0", "Legit Mode",
"Don't show invisible enemies\nHides invisable enemies with "
"visibility enabled");
// Selective esp options
@ -71,14 +79,16 @@ static CatVar buildings(CV_SWITCH, "esp_buildings", "1", "Building ESP",
"Show buildings");
static CatVar teammates(CV_SWITCH, "esp_teammates", "0", "ESP Teammates",
"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
static CatVar show_weapon(CV_SWITCH, "esp_weapon", "0", "Show weapon name",
"Show which weapon the enemy is using");
static CatVar show_distance(CV_SWITCH, "esp_distance", "1", "Distance ESP",
"Show distance to target");
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",
"Show conditions");
static CatVar
@ -95,11 +105,12 @@ static CatVar item_dropped_weapons(CV_SWITCH, "esp_item_weapons", "0",
"Dropped weapons", "Show dropped weapons");
static CatVar item_ammo_packs(CV_SWITCH, "esp_item_ammo", "0", "Ammo packs",
"Show ammo packs");
static CatVar item_health_packs(CV_SWITCH, "esp_item_health", "1", "Health packs",
"Show health packs");
static CatVar item_health_packs(CV_SWITCH, "esp_item_health", "1",
"Health packs", "Show health packs");
static CatVar item_powerups(CV_SWITCH, "esp_item_powerups", "1", "Powerups",
"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",
"Show red MvM money");
static CatVar item_spellbooks(CV_SWITCH, "esp_spellbooks", "1", "Spellbooks",
@ -107,18 +118,22 @@ static CatVar item_spellbooks(CV_SWITCH, "esp_spellbooks", "1", "Spellbooks",
static CatVar item_weapon_spawners(CV_SWITCH, "esp_weapon_spawners", "1",
"Show weapon spawners",
"TF2C deathmatch weapon spawners");
static CatVar item_adrenaline(CV_SWITCH, "esp_item_adrenaline", "0", "Show Adrenaline",
"TF2C adrenaline pills");
static CatVar item_adrenaline(CV_SWITCH, "esp_item_adrenaline", "0",
"Show Adrenaline", "TF2C adrenaline pills");
// 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 CatVar proj_rockets(proj_esp_enum, "esp_proj_rockets", "1", "Rockets",
"Rockets");
static CatVar proj_arrows(proj_esp_enum, "esp_proj_arrows", "1", "Arrows", "Arrows");
static CatVar proj_pipes(proj_esp_enum, "esp_proj_pipes", "1", "Pipes", "Pipebombs");
static CatVar proj_arrows(proj_esp_enum, "esp_proj_arrows", "1", "Arrows",
"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",
"Stickybombs");
static CatVar proj_enemy(CV_SWITCH, "esp_proj_enemy", "1", "Only enemy projectiles",
static CatVar proj_enemy(CV_SWITCH, "esp_proj_enemy", "1",
"Only enemy projectiles",
"Don't show friendly projectiles");
// Debug
static CatVar entity_info(CV_SWITCH, "esp_entity", "0", "Entity ESP",

View File

@ -34,8 +34,8 @@ CatVar follow_steam(CV_INT, "fb_steam", "0", "Follow Steam Id",
"Set a steam id to let followbot prioritize players");
static CatVar mimic_slot(CV_SWITCH, "fb_mimic_slot", "0", "Mimic weapon slot",
"Mimic follow target's weapon slot");
static CatVar always_medigun(CV_SWITCH, "fb_always_medigun", "0", "Always Medigun",
"Always use medigun");
static CatVar always_medigun(CV_SWITCH, "fb_always_medigun", "0",
"Always Medigun", "Always use medigun");
static CatVar sync_taunt(CV_SWITCH, "fb_sync_taunt", "0", "Synced taunt",
"Taunt when follow target does");
static CatVar change(CV_SWITCH, "fb_switch", "1", "Change followbot target",

View File

@ -16,7 +16,8 @@ namespace shared
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",
"Instant revvup/shoot two shots at once");
@ -28,7 +29,8 @@ static CatVar razorback(CV_SWITCH, "se_antirazorback", "0", "Anti-Razorback",
"Stab through razorbacks");
static CatVar stickyspam(CV_SWITCH, "se_stickyspam", "0", "Sticky spam",
"Allows Spam of stickies simply by holding Mouse1.");
static CatVar infinitecharge(CV_SWITCH, "se_infinite_charge", "0",
static CatVar
infinitecharge(CV_SWITCH, "se_infinite_charge", "0",
"Infinite sticky charge",
"Infinitely charge stickies, (can be used for sniping "
"and or b1g dmg using the quickiebomb launcher)");
@ -47,12 +49,14 @@ static CatVar delay1(CV_INT, "se_switch_delay1", "0",
"Delay before switching to melee");
static CatVar delay2(CV_INT, "se_switch_delay2", "0",
"Delay before switching to Primary");
static CatVar master_switch(CV_SWITCH, "se_master", "1", "Enable sequence exploit",
static CatVar
master_switch(CV_SWITCH, "se_master", "1", "Enable sequence exploit",
"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",
"Value of user cmds to spam with");
static CatVar cap_range(CV_FLOAT, "se_cap_range", "200.0f", "Autocap range",
static CatVar
cap_range(CV_FLOAT, "se_cap_range", "200.0f", "Autocap range",
"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)",

View File

@ -29,16 +29,19 @@ static CatVar debug_info(CV_SWITCH, "debug_info", "0", "Debug info",
"Shows some debug info in-game");
static CatVar flashlight_spam(CV_SWITCH, "flashlight", "0", "Flashlight spam",
"HL2DM flashlight spam");
static CatVar auto_balance_spam(CV_SWITCH, "request_balance_spam", "0",
static CatVar
auto_balance_spam(CV_SWITCH, "request_balance_spam", "0",
"Inf Auto Balance Spam",
"Use to send a autobalance request to the server that "
"doesnt prevent you from using it again\nCredits to "
"Blackfire");
static CatVar anti_afk(CV_SWITCH, "anti_afk", "0", "Anti-AFK",
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",
"Automaticly airstrafes for you.");
static CatVar render_zoomed(CV_SWITCH, "render_zoomed", "0",
static CatVar
render_zoomed(CV_SWITCH, "render_zoomed", "0",
"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",
@ -54,7 +57,8 @@ static CatVar tauntslide_tf2(CV_SWITCH, "tauntslide_tf2", "0", "Tauntslide",
static CatVar
show_spectators(CV_SWITCH, "show_spectators", "0", "Show spectators",
"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;
bool C_TFPlayer__ShouldDraw_hook(IClientEntity *thisptr)

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

@ -36,12 +36,15 @@ static CatVar radar_x(CV_INT, "radar_x", "100", "Radar X",
"Defines radar position (X)");
static CatVar radar_y(CV_INT, "radar_y", "100", "Radar Y",
"Defines radar position (Y)");
static CatVar use_icons(CV_SWITCH, "radar_icons", "1", "Use Icons",
static CatVar
use_icons(CV_SWITCH, "radar_icons", "1", "Use Icons",
"Radar will use class icons instead of class portraits");
static CatVar show_teammates(CV_SWITCH, "radar_teammates", "1", "Show Teammates");
static CatVar show_teammates(CV_SWITCH, "radar_teammates", "1",
"Show Teammates");
static CatVar show_healthpacks(CV_SWITCH, "radar_healthpacks", "1",
"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()
{

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

@ -21,7 +21,8 @@ CatVar spam_source(spam_enum, "spam", "0", "Chat Spam",
"in cat_spam_file and loaded with cat_spam_reload (Use "
"console!)");
static CatVar random_order(CV_SWITCH, "spam_random", "0", "Random Order");
static CatVar filename(CV_STRING, "spam_file", "spam.txt", "Spam file",
static CatVar
filename(CV_STRING, "spam_file", "spam.txt", "Spam file",
"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);
@ -31,7 +32,8 @@ static CatVar spam_delay(CV_INT, "spam_delay", "800", "Spam delay",
static CatEnum voicecommand_enum({ "DISABLED", "RANDOM", "MEDIC", "THANKS",
"NICE SHOT", "CHEERS", "JEERS" });
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",
"Spam changes the tournament name");

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

View File

@ -18,7 +18,7 @@ int count_shots{ 0 };
int count_hits{ 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>>
shots{};

View File

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

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",
"Log sent messages");
static CatVar airstuck(CV_KEY, "airstuck", "0", "Airstuck", "");
namespace hooked_methods
static CatVar airstuck(CV_KEY, "airstuck", "0", "Airstuck", "");namespace hooked_methods
{
DEFINE_HOOKED_METHOD(SendNetMsg, bool, INetChannel *this_, INetMessage &msg,
bool force_reliable, bool voice)
{
@ -24,7 +21,6 @@ DEFINE_HOOKED_METHOD(SendNetMsg, bool, INetChannel *this_, INetMessage &msg,
int offset;
std::string newlines;
NET_StringCmd stringcmd;
// net_StringCmd
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 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
{
@ -56,6 +57,13 @@ DEFINE_HOOKED_METHOD(FrameStageNotify, void, void *this_,
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;
PROF_SECTION(FrameStageNotify_TOTAL);

View File

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

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(
CV_SWITCH, "debug_pp_extrapolate", "0",
"Extrapolate entity position when predicting projectiles");
static CatVar debug_pp_rockettimeping(CV_SWITCH, "debug_pp_rocket_time_ping", "0",
"Compensate for ping in pp");
static CatVar debug_pp_rockettimeping(CV_SWITCH, "debug_pp_rocket_time_ping",
"0", "Compensate for ping in pp");
Vector ProjectilePrediction(CachedEntity *ent, int hb, float speed,
float gravitymod, float entgmod)

View File

@ -408,7 +408,7 @@ bool NET_SignonState::ReadFromBuffer(bf_read &buffer)
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)

View File

@ -15,7 +15,8 @@
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",
"Makes chams brighter and more full");
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
{
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",
"Change glow color based on their health");
static CatVar teammates(CV_SWITCH, "glow_teammates", "0", "Teammates",

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

@ -16,8 +16,9 @@ static CatVar user_red_red(CV_INT, "esp_color_red_r", "0", "Red Team: Red",
static CatVar user_blue_blue(CV_INT, "esp_color_blue_b", "0", "Blue Team: Blue",
"Blue color for blue team", 255);
static CatVar user_blue_green(CV_INT, "esp_color_blue_g", "0", "Blue Team: Green",
"Green color for blue team", 255);
static CatVar user_blue_green(CV_INT, "esp_color_blue_g", "0",
"Blue Team: Green", "Green color for blue team",
255);
static CatVar user_blue_red(CV_INT, "esp_color_blue_r", "0", "Blue Team: Red",
"Red color for blue team", 255);

View File

@ -57,7 +57,8 @@ static CatVar spinner_speed_scale(CV_FLOAT, "fidgetspinner_speed_scale", "0.03",
"Speed scale");
static CatVar spinner_decay_speed(CV_FLOAT, "fidgetspinner_decay_speed", "0.1",
"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",
"Spinner Min Speed");

View File

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

View File

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