diff --git a/src/gui/ncc/Menu.cpp b/src/gui/ncc/Menu.cpp index de02d560..3a41f8c9 100644 --- a/src/gui/ncc/Menu.cpp +++ b/src/gui/ncc/Menu.cpp @@ -240,6 +240,7 @@ static const std::string list_tf2 = R"( "aimbot_aimkey" "aimbot_aimkey_mode" "aimbot_autoshoot" + "aimbot_autoshoot_delay" "aimbot_hitboxmode" "aimbot_fov" "aimbot_prioritymode" @@ -525,6 +526,7 @@ static const std::string list_tf2 = R"( ] "bhop_enabled" "noisemaker" + "nopush_enabled" "fast_vischeck" "anti_afk" "rollspeedhack" diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index e523ddd7..68107649 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -26,6 +26,9 @@ bool headonly { false }; int last_target { -1 }; bool silent_huntsman { false }; +int iTickAutoshootDelay { 0 }; +static CatVar autoshoot_delay(CV_FLOAT, "aimbot_autoshoot_delay", "0", "Autoshoot Delay", "Delays your shot to increase accuracy", 100.0); + static CatVar ignore_hoovy(CV_SWITCH, "aimbot_ignore_hoovy", "0", "Ignore Hoovies", "Aimbot won't attack hoovies"); int ClosestHitbox(CachedEntity* target) { @@ -343,9 +346,25 @@ bool Aim(CachedEntity* entity, CUserCmd* cmd) { break; } } - if (attack) { - cmd->buttons |= IN_ATTACK; - } + bool autoshoot_delay_bool = false; + if ( autoshoot_delay == 0 ) { + bool autoshoot_delay_bool = false; + } else { + bool autoshoot_delay_bool = true; + } + int autoshootdelayvar = autoshoot_delay; + if ( attack == false ) { + iTickAutoshootDelay = 0; + } + if ( attack && autoshoot_delay_bool ) { + if ( (iTickAutoshootDelay++ / 200 ) >= autoshootdelayvar ) { + cmd->buttons |= IN_ATTACK; + } + } else { + if ( attack ) { + cmd->buttons |= IN_ATTACK; + } + } } return true; } diff --git a/src/hacks/Bunnyhop.cpp b/src/hacks/Bunnyhop.cpp index fe62f8f9..788bcb4e 100644 --- a/src/hacks/Bunnyhop.cpp +++ b/src/hacks/Bunnyhop.cpp @@ -34,7 +34,7 @@ void CreateMove() { } if (!ground && jump) { - if (iTicksLastJump++ >= 20) g_pUserCmd->buttons = g_pUserCmd->buttons &~ IN_JUMP; + if (iTicksLastJump++ >= 5) g_pUserCmd->buttons = g_pUserCmd->buttons &~ IN_JUMP; } if (!jump) iTicksLastJump = 0; return; diff --git a/src/hacks/Misc.cpp b/src/hacks/Misc.cpp index 7a310768..82d9a524 100644 --- a/src/hacks/Misc.cpp +++ b/src/hacks/Misc.cpp @@ -103,6 +103,8 @@ static CatCommand clear_conds("debug_clear_conds", "Actually doesn't do anything RemoveCondition(LOCAL_E, TFCond_Milked); }); +CatVar nopush_enabled(CV_SWITCH, "nopush_enabled", "0", "No Push", "Prevents other players from pushing you around."); + static IClientEntity* found_crit_weapon = nullptr; static int found_crit_number = 0; static int last_number = 0; @@ -189,6 +191,17 @@ void CreateMove() { g_pUserCmd->forwardmove = RandFloatRange(-450.0, 450.0); g_pUserCmd->buttons = rand(); } + //Pasted by Julianacat from F1ssion + ConVar * pNoPush = g_ICvar->FindVar( "tf_avoidteammates_pushaway" ); + int nopushvar = nopush_enabled; + if ( nopushvar == (pNoPush -> GetInt()) ) { + if (nopushvar == 1) { + pNoPush->SetValue( 0 ); + } else { + pNoPush->SetValue( 1 ); + } + + } } void Draw() {