Merge pull request #77 from julianacan9999/master

Added cool features
This commit is contained in:
nullifiedcat 2017-04-25 21:23:47 +03:00 committed by GitHub
commit d698d4e6d4
4 changed files with 38 additions and 4 deletions

View File

@ -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"

View File

@ -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,10 +346,26 @@ bool Aim(CachedEntity* entity, CUserCmd* cmd) {
break;
}
}
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;
}

View File

@ -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;

View File

@ -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() {