pNoZoom + Aimbot FIXED!

This commit is contained in:
nullifiedcat 2016-12-20 15:14:02 +03:00
parent e707b194bd
commit 3d794a687b
5 changed files with 5 additions and 16 deletions

View File

@ -216,11 +216,6 @@ void Hk_Shutdown(void* thisptr, const char* reason) {
bool hack::Hk_CreateMove(void* thisptr, float inputSample, CUserCmd* cmd) {
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);
if (!interfaces::engineClient->IsInGame()) {
hack::invalidated = true;
@ -269,12 +264,6 @@ bool hack::Hk_CreateMove(void* thisptr, float inputSample, CUserCmd* cmd) {
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;
if (g_pLocalPlayer->bUseSilentAngles) {
Vector vsilent(cmd->forwardmove, cmd->sidemove, cmd->upmove);

View File

@ -393,7 +393,7 @@ bool Aimbot::Aim(IClientEntity* entity, CUserCmd* cmd) {
}
if (!smoothed && this->v_bAutoShoot->GetBool()) {
if (g_pLocalPlayer->clazz == tf_class::tf_sniper) {
if (g_pLocalPlayer->cond_0 & cond::zoomed) {
if (g_pLocalPlayer->bZoomed) {
if (this->v_iAutoShootCharge->GetBool()) {
int rifleHandle = GetEntityValue<int>(local, netvar.hActiveWeapon);
IClientEntity* rifle = interfaces::entityList->GetClientEntity(rifleHandle & 0xFFF);

View File

@ -327,7 +327,7 @@ void Misc::PaintTraverse(void*, unsigned int, bool, bool) {
GetProjectileData(g_pLocalPlayer->weapon, speed, gravity);
AddSideString(draw::white, draw::black, "Speed: %f", speed);
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, "???: %f", GetEntityValue<float>(g_pLocalPlayer->entity, netvar.test));
//AddSideString(draw::white, draw::black, "VecPunchAngle: %f %f %f", pa.x, pa.y, pa.z);

View File

@ -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() &&
!((g_pLocalPlayer->cond_0 & cond::zoomed) && CanHeadshot(g_pLocalPlayer->entity))) {
!((g_pLocalPlayer->bZoomed) && CanHeadshot(g_pLocalPlayer->entity))) {
return true;
}
//IClientEntity* weapon;

View File

@ -20,8 +20,8 @@ void LocalPlayer::Update() {
clazz = GetEntityValue<int>(entity, netvar.iClass);
health = GetEntityValue<int>(entity, netvar.iHealth);
this->bUseSilentAngles = false;
bZoomed = GetEntityValue<int>(entity, netvar.iFOV) != GetEntityValue<int>(entity, netvar.iDefaultFOV);
if (cond_0 & cond::zoomed) {
bZoomed = GetEntityValue<int>(entity, netvar.iFOV) == 20; //!= GetEntityValue<int>(entity, netvar.iDefaultFOV);
if (bZoomed) {
if (flZoomBegin == 0.0f) flZoomBegin = interfaces::gvars->curtime;
} else {
flZoomBegin = 0.0f;