pNoZoom + Aimbot FIXED!
This commit is contained in:
parent
e707b194bd
commit
3d794a687b
@ -216,11 +216,6 @@ void Hk_Shutdown(void* thisptr, const char* reason) {
|
|||||||
bool hack::Hk_CreateMove(void* thisptr, float inputSample, CUserCmd* cmd) {
|
bool hack::Hk_CreateMove(void* thisptr, float inputSample, CUserCmd* cmd) {
|
||||||
SEGV_BEGIN;
|
SEGV_BEGIN;
|
||||||
|
|
||||||
if (g_pLocalPlayer->entity) {
|
|
||||||
if (g_pLocalPlayer->bWasZoomed) {
|
|
||||||
SetEntityValue(g_pLocalPlayer->entity, netvar.iCond, g_pLocalPlayer->cond_0 |= cond::zoomed);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
bool ret = ((CreateMove_t*)hooks::hkClientMode->GetMethod(hooks::offCreateMove))(thisptr, inputSample, cmd);
|
bool ret = ((CreateMove_t*)hooks::hkClientMode->GetMethod(hooks::offCreateMove))(thisptr, inputSample, cmd);
|
||||||
if (!interfaces::engineClient->IsInGame()) {
|
if (!interfaces::engineClient->IsInGame()) {
|
||||||
hack::invalidated = true;
|
hack::invalidated = true;
|
||||||
@ -269,12 +264,6 @@ bool hack::Hk_CreateMove(void* thisptr, float inputSample, CUserCmd* cmd) {
|
|||||||
ret = false;
|
ret = false;
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
if (g_pLocalPlayer->entity) {
|
|
||||||
if (g_Settings.bNoZoom->GetBool()) {
|
|
||||||
SetEntityValue(g_pLocalPlayer->entity, netvar.iCond, g_pLocalPlayer->cond_0 &= ~cond::zoomed);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
hack::invalidated = false;
|
hack::invalidated = false;
|
||||||
if (g_pLocalPlayer->bUseSilentAngles) {
|
if (g_pLocalPlayer->bUseSilentAngles) {
|
||||||
Vector vsilent(cmd->forwardmove, cmd->sidemove, cmd->upmove);
|
Vector vsilent(cmd->forwardmove, cmd->sidemove, cmd->upmove);
|
||||||
|
@ -393,7 +393,7 @@ bool Aimbot::Aim(IClientEntity* entity, CUserCmd* cmd) {
|
|||||||
}
|
}
|
||||||
if (!smoothed && this->v_bAutoShoot->GetBool()) {
|
if (!smoothed && this->v_bAutoShoot->GetBool()) {
|
||||||
if (g_pLocalPlayer->clazz == tf_class::tf_sniper) {
|
if (g_pLocalPlayer->clazz == tf_class::tf_sniper) {
|
||||||
if (g_pLocalPlayer->cond_0 & cond::zoomed) {
|
if (g_pLocalPlayer->bZoomed) {
|
||||||
if (this->v_iAutoShootCharge->GetBool()) {
|
if (this->v_iAutoShootCharge->GetBool()) {
|
||||||
int rifleHandle = GetEntityValue<int>(local, netvar.hActiveWeapon);
|
int rifleHandle = GetEntityValue<int>(local, netvar.hActiveWeapon);
|
||||||
IClientEntity* rifle = interfaces::entityList->GetClientEntity(rifleHandle & 0xFFF);
|
IClientEntity* rifle = interfaces::entityList->GetClientEntity(rifleHandle & 0xFFF);
|
||||||
|
@ -327,7 +327,7 @@ void Misc::PaintTraverse(void*, unsigned int, bool, bool) {
|
|||||||
GetProjectileData(g_pLocalPlayer->weapon, speed, gravity);
|
GetProjectileData(g_pLocalPlayer->weapon, speed, gravity);
|
||||||
AddSideString(draw::white, draw::black, "Speed: %f", speed);
|
AddSideString(draw::white, draw::black, "Speed: %f", speed);
|
||||||
AddSideString(draw::white, draw::black, "Gravity: %f", gravity);
|
AddSideString(draw::white, draw::black, "Gravity: %f", gravity);
|
||||||
AddSideString(draw::white, draw::black, "IsZoomed: %i", g_pLocalPlayer->bWasZoomed);
|
AddSideString(draw::white, draw::black, "IsZoomed: %i", g_pLocalPlayer->bZoomed);
|
||||||
AddSideString(draw::white, draw::black, "IsThirdPerson: %i", interfaces::iinput->CAM_IsThirdPerson());
|
AddSideString(draw::white, draw::black, "IsThirdPerson: %i", interfaces::iinput->CAM_IsThirdPerson());
|
||||||
//AddSideString(draw::white, draw::black, "???: %f", GetEntityValue<float>(g_pLocalPlayer->entity, netvar.test));
|
//AddSideString(draw::white, draw::black, "???: %f", GetEntityValue<float>(g_pLocalPlayer->entity, netvar.test));
|
||||||
//AddSideString(draw::white, draw::black, "VecPunchAngle: %f %f %f", pa.x, pa.y, pa.z);
|
//AddSideString(draw::white, draw::black, "VecPunchAngle: %f %f %f", pa.x, pa.y, pa.z);
|
||||||
|
@ -107,7 +107,7 @@ bool Triggerbot::CreateMove(void* thisptr, float sampl, CUserCmd* cmd) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
if (!bodyshot && (g_pLocalPlayer->clazz == tf_class::tf_sniper) && this->v_bZoomedOnly->GetBool() &&
|
if (!bodyshot && (g_pLocalPlayer->clazz == tf_class::tf_sniper) && this->v_bZoomedOnly->GetBool() &&
|
||||||
!((g_pLocalPlayer->cond_0 & cond::zoomed) && CanHeadshot(g_pLocalPlayer->entity))) {
|
!((g_pLocalPlayer->bZoomed) && CanHeadshot(g_pLocalPlayer->entity))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//IClientEntity* weapon;
|
//IClientEntity* weapon;
|
||||||
|
@ -20,8 +20,8 @@ void LocalPlayer::Update() {
|
|||||||
clazz = GetEntityValue<int>(entity, netvar.iClass);
|
clazz = GetEntityValue<int>(entity, netvar.iClass);
|
||||||
health = GetEntityValue<int>(entity, netvar.iHealth);
|
health = GetEntityValue<int>(entity, netvar.iHealth);
|
||||||
this->bUseSilentAngles = false;
|
this->bUseSilentAngles = false;
|
||||||
bZoomed = GetEntityValue<int>(entity, netvar.iFOV) != GetEntityValue<int>(entity, netvar.iDefaultFOV);
|
bZoomed = GetEntityValue<int>(entity, netvar.iFOV) == 20; //!= GetEntityValue<int>(entity, netvar.iDefaultFOV);
|
||||||
if (cond_0 & cond::zoomed) {
|
if (bZoomed) {
|
||||||
if (flZoomBegin == 0.0f) flZoomBegin = interfaces::gvars->curtime;
|
if (flZoomBegin == 0.0f) flZoomBegin = interfaces::gvars->curtime;
|
||||||
} else {
|
} else {
|
||||||
flZoomBegin = 0.0f;
|
flZoomBegin = 0.0f;
|
||||||
|
Reference in New Issue
Block a user