From 5b59cb7182f237775e1c70c2495497b848c4b12a Mon Sep 17 00:00:00 2001 From: julianacat Date: Fri, 25 Aug 2017 16:18:06 -0500 Subject: [PATCH] Prepare for push --- src/hacks/Aimbot.cpp | 12 +++++++----- src/hacks/Misc.cpp | 9 +++------ src/hooks/CreateMove.cpp | 2 +- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index 1efc62f5..5f3bbe26 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -18,6 +18,8 @@ static CatVar autoshoot(CV_SWITCH, "aimbot_autoshoot", "1", "Autoshoot", "Shoot static CatEnum hitbox_mode_enum({ "AUTO-HEAD", "AUTO-CLOSEST", "STATIC" }); static CatVar hitbox_mode(hitbox_mode_enum, "aimbot_hitboxmode", "0", "Hitbox Mode", "Defines hitbox selection mode"); static CatVar fov(CV_FLOAT, "aimbot_fov", "0", "Aimbot FOV", "FOV range for aimbot to lock targets. \"Smart FOV\" coming eventually.", 180.0f); +static CatVar fovcircle_opacity(CV_FLOAT, "aimbot_fov_draw_opacity", "0.7", "FOV Circle Opacity", "Defines opacity of FOV circle", 0.0f, 1.0f); + static CatEnum priority_mode_enum({ "SMART", "FOV", "DISTANCE", "HEALTH" }); static CatVar priority_mode(priority_mode_enum, "aimbot_prioritymode", "0", "Priority mode", "Priority mode.\n" "SMART: Basically Auto-Threat. Will be tweakable eventually. " @@ -30,6 +32,7 @@ static CatVar ignore_deadringer(CV_SWITCH, "aimbot_ignore_deadringer", "1", "Ign static CatVar buildings_sentry(CV_SWITCH, "aimbot_buildings_sentry", "1", "Aim Sentry", "Should aimbot aim at sentryguns?"); static CatVar buildings_other(CV_SWITCH, "aimbot_buildings_other", "1", "Aim Other building", "Should aimbot aim at other buildings"); static CatVar stickybot(CV_SWITCH, "aimbot_stickys", "0", "Aim Sticky", "Should aimbot aim at stickys"); +static CatVar rageonly(CV_SWITCH, "aimbot_rage_only", "0", "Ignore non-rage targets", "Use playerlist to set up rage targets"); static CatEnum teammates_enum({ "ENEMY ONLY", "TEAMMATE ONLY", "BOTH" }); static CatVar teammates(teammates_enum, "aimbot_teammates", "0", "Aim at teammates", "Use to choose which team/s to target"); static CatVar silent(CV_SWITCH, "aimbot_silent", "1", "Silent", "Your screen doesn't get snapped to the point where aimbot aims at"); @@ -62,19 +65,17 @@ static CatVar proj_speed(CV_FLOAT, "aimbot_proj_speed", "0", "Projectile speed", static CatVar huntsman_autoshoot(CV_FLOAT, "aimbot_huntsman_charge", "0.5", "Huntsman autoshoot", "Minimum charge for autoshooting with huntsman.\n" "Set it to 0.01 if you want to shoot as soon as you start pulling the arrow", 0.01f, 1.0f); static CatVar huntsman_full_auto(CV_SWITCH, "aimbot_full_auto_huntsman", "1", "Auto Huntsman", "Autoshoot will pull huntsman's string"); +static CatVar miss_chance(CV_FLOAT, "aimbot_miss_chance", "0", "Miss chance", "From 0 to 1. Aimbot will NOT aim in these % cases", 0.0f, 1.0f); // Debug vars static CatVar aimbot_debug(CV_SWITCH, "aimbot_debug", "0", "Aimbot Debug", "Display simple debug info for aimbot"); static CatVar engine_projpred(CV_SWITCH, "debug_aimbot_engine_pp", "0", "Engine ProjPred"); + // Followbot vars static CatVar auto_spin_up(CV_SWITCH, "aimbot_spin_up", "0", "Auto Spin Up", "Spin up minigun if you can see target, useful for followbots"); static CatVar auto_zoom(CV_SWITCH, "aimbot_auto_zoom", "0", "Auto Zoom", "Automatically zoom in if you can see target, useful for followbots"); - -static CatVar fovcircle_opacity(CV_FLOAT, "aimbot_fov_draw_opacity", "0.7", "FOV Circle Opacity", "Defines opacity of FOV circle", 0.0f, 1.0f); -static CatVar rageonly(CV_SWITCH, "aimbot_rage_only", "0", "Ignore non-rage targets", "Use playerlist to set up rage targets"); - -static CatVar miss_chance(CV_FLOAT, "aimbot_miss_chance", "0", "Miss chance", "From 0 to 1. Aimbot will NOT aim in these % cases", 0.0f, 1.0f); static CatVar auto_unzoom(CV_SWITCH, "aimbot_auto_unzoom", "0", "Auto Un-zoom", "Automatically unzoom"); + // Current Entity int target_eid { 0 }; CachedEntity* target = 0; @@ -623,6 +624,7 @@ const Vector& PredictEntity(CachedEntity* entity) { } else { result = entity->m_vecOrigin; } + // Reset the predicted tickcount for the ent cd.predict_tick = tickcount; // Pre-Calculate fov and store to array diff --git a/src/hacks/Misc.cpp b/src/hacks/Misc.cpp index 82428d2a..b498df9b 100644 --- a/src/hacks/Misc.cpp +++ b/src/hacks/Misc.cpp @@ -37,7 +37,7 @@ CatVar anti_afk(CV_SWITCH, "anti_afk", "0", "Anti-AFK", "Sends random commands t CatVar auto_strafe(CV_SWITCH, "auto_strafe", "0", "Auto-Strafe", "Automaticly airstrafes for you."); CatVar render_zoomed(CV_SWITCH, "render_zoomed", "0", "Render model when zoomed-in", "Renders player model while being zoomed in as Sniper"); CatVar nopush_enabled(CV_SWITCH, "nopush_enabled", "0", "No Push", "Prevents other players from pushing you around."); -CatVar no_homo(CV_SWITCH, "no_homo", "1", "No Homo", "Disable if not gay"); +//CatVar no_homo(CV_SWITCH, "no_homo", "1", "No Homo", "read if gay"); // Taunting stuff CatEnum spycrab_mode_enum({"DISABLED", "FORCE CRAB", "FORCE NON-CRAB"}); CatVar spycrab_mode(spycrab_mode_enum, "spycrab", "0", "Spycrab", "Defines spycrab taunting mode"); @@ -105,9 +105,6 @@ static CatCommand test_chat_print("debug_print_chat", "machine broke", [](const } }); - - - // Use to send a autobalance request to the server that doesnt prevent you from using it again, Allowing infinite use of it. void SendAutoBalanceRequest() { // Credits to blackfire if (!g_IEngine->IsInGame()) return; @@ -385,7 +382,7 @@ void DrawText() { } } - if (!no_homo) { + /*if (!no_homo) { int width, height; g_IEngine->GetScreenSize(width, height); @@ -405,7 +402,7 @@ void DrawText() { //FTGL_StringLength(string.data, fonts::font_main, &size_x); //FTGL_Draw(string.data, draw_point.x - size_x / 2, draw_point.y, fonts::font_main, color); - } + }*/ if (!debug_info) return; if (CE_GOOD(g_pLocalPlayer->weapon())) { diff --git a/src/hooks/CreateMove.cpp b/src/hooks/CreateMove.cpp index 1d3bacab..d827911e 100644 --- a/src/hooks/CreateMove.cpp +++ b/src/hooks/CreateMove.cpp @@ -178,7 +178,7 @@ bool CreateMove_hook(void* thisptr, float inputSample, CUserCmd* cmd) { cl_interp->m_nValue = 0; } if (cl_interp_ratio->GetInt() != 0) cl_interp_ratio->SetValue(0); - if (cl_interpolate->GetInt() != 0) cl_interpolate->SetValue(0); + //if (cl_interpolate->GetInt() != 0) cl_interpolate->SetValue(0); } if (!g_Settings.bInvalid && CE_GOOD(g_pLocalPlayer->entity)) {