Added Misc changes
This commit is contained in:
parent
83bfe64add
commit
a370a25b00
@ -207,7 +207,7 @@ bool CachedEntity::IsVisible() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static CatEnum setupbones_time_enum({ "ZERO", "CURTIME", "LP SERVERTIME", "SIMTIME" });
|
static CatEnum setupbones_time_enum({ "ZERO", "CURTIME", "LP SERVERTIME", "SIMTIME" });
|
||||||
static CatVar setupbones_time(setupbones_time_enum, "setupbones_time", "3", "Setupbones", "Defines setupbones 4th argument, change it if your aimbot misses, idk!!");
|
static CatVar setupbones_time(setupbones_time_enum, "setupbones_time", "1", "Setupbones", "Defines setupbones 4th argument, change it if your aimbot misses, idk!!");
|
||||||
|
|
||||||
matrix3x4_t* CachedEntity::GetBones() {
|
matrix3x4_t* CachedEntity::GetBones() {
|
||||||
static float bones_setup_time = 0.0f;
|
static float bones_setup_time = 0.0f;
|
||||||
|
@ -575,6 +575,7 @@ static const std::string list_tf2 = R"(
|
|||||||
"Follow Bot" [
|
"Follow Bot" [
|
||||||
"Follow Bot Settings"
|
"Follow Bot Settings"
|
||||||
"fb_bot"
|
"fb_bot"
|
||||||
|
"fb_auto_playerlist"
|
||||||
"fb_mimic_slot"
|
"fb_mimic_slot"
|
||||||
"fb_always_medigun"
|
"fb_always_medigun"
|
||||||
"fb_autoclass"
|
"fb_autoclass"
|
||||||
|
@ -543,26 +543,6 @@ bool Aim(CachedEntity* entity) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Broken Autoshoot delay code
|
|
||||||
//Ripped from AAAA timer
|
|
||||||
float autoshoot_timer_start = 0.0f;
|
|
||||||
float autoshoot_timer = 0.0f;
|
|
||||||
|
|
||||||
void UpdateAutoShootTimer() {
|
|
||||||
const float& curtime = g_GlobalVars->curtime;
|
|
||||||
if (autoshoot_timer_start > curtime) autoshoot_timer_start = 0.0f;
|
|
||||||
if (!autoshoot_timer || !autoshoot_timer_start) {
|
|
||||||
autoshoot_timer = autoshoot_delay;
|
|
||||||
autoshoot_timer_start = curtime;
|
|
||||||
} else {
|
|
||||||
if (curtime - autoshoot_timer_start > autoshoot_timer) {
|
|
||||||
cmd->buttons |= IN_ATTACK;
|
|
||||||
autoshoot_timer_start = curtime;
|
|
||||||
autoshoot_timer = autoshoot_delay;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
bool UpdateAimkey() {
|
bool UpdateAimkey() {
|
||||||
static bool aimkey_flip = false;
|
static bool aimkey_flip = false;
|
||||||
static bool pressed_last_tick = false;
|
static bool pressed_last_tick = false;
|
||||||
|
@ -34,7 +34,7 @@ void CreateMove() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ground && jump) {
|
if (!ground && jump) {
|
||||||
if (iTicksLastJump++ >= 5) g_pUserCmd->buttons = g_pUserCmd->buttons &~ IN_JUMP;
|
if (iTicksLastJump++ >= 9) g_pUserCmd->buttons = g_pUserCmd->buttons &~ IN_JUMP;
|
||||||
}
|
}
|
||||||
if (!jump) iTicksLastJump = 0;
|
if (!jump) iTicksLastJump = 0;
|
||||||
return;
|
return;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* LagExploit.cpp
|
* LagExploit.cpp
|
||||||
*
|
*
|
||||||
* Created on: May 7, 2017
|
* Created on: May 7, 2017
|
||||||
|
@ -736,7 +736,7 @@ void RunEnginePrediction(IClientEntity* ent, CUserCmd *ucmd) {
|
|||||||
g_IGameMovement->FinishTrackPredictionErrors(reinterpret_cast<CBasePlayer*>(ent));
|
g_IGameMovement->FinishTrackPredictionErrors(reinterpret_cast<CBasePlayer*>(ent));
|
||||||
|
|
||||||
NET_VAR(ent, 4188, CUserCmd*) = nullptr;
|
NET_VAR(ent, 4188, CUserCmd*) = nullptr;
|
||||||
|
*g_PredictionRandomSeed = -1;
|
||||||
g_GlobalVars->frametime = frameTime;
|
g_GlobalVars->frametime = frameTime;
|
||||||
g_GlobalVars->curtime = curTime;
|
g_GlobalVars->curtime = curTime;
|
||||||
|
|
||||||
|
@ -127,9 +127,9 @@ void StoreClientData() {
|
|||||||
data.friendid = g_ISteamUser->GetSteamID().GetAccountID();
|
data.friendid = g_ISteamUser->GetSteamID().GetAccountID();
|
||||||
strncpy(data.name, g_ISteamFriends->GetPersonaName(), sizeof(data.name));
|
strncpy(data.name, g_ISteamFriends->GetPersonaName(), sizeof(data.name));
|
||||||
}
|
}
|
||||||
|
static CatVar fbPlayUpdate(CV_SWITCH, "fb_auto_playerlist", "1", "Assign State", "Automaticly assign playerstates for bots");
|
||||||
void UpdatePlayerlist() {
|
void UpdatePlayerlist() {
|
||||||
if (peer) {
|
if (peer && fbPlayUpdate) {
|
||||||
for (unsigned i = 1; i < cat_ipc::max_peers; i++) {
|
for (unsigned i = 1; i < cat_ipc::max_peers; i++) {
|
||||||
if (!peer->memory->peer_data[i].free) {
|
if (!peer->memory->peer_data[i].free) {
|
||||||
playerlist::userdata& info = playerlist::AccessData(peer->memory->peer_user_data[i].friendid);
|
playerlist::userdata& info = playerlist::AccessData(peer->memory->peer_user_data[i].friendid);
|
||||||
|
Reference in New Issue
Block a user