works?? low fps

This commit is contained in:
nullifiedcat 2017-01-09 20:16:21 +03:00
parent 37c17b8640
commit 767eb360d6
2 changed files with 10 additions and 7 deletions

View File

@ -339,13 +339,13 @@ void hack::Hk_FrameStageNotify(void* thisptr, int stage) {
// Ambassador to festive ambassador changer. simple. // Ambassador to festive ambassador changer. simple.
if (!interfaces::engineClient->IsInGame()) g_Settings.bInvalid = true; if (!interfaces::engineClient->IsInGame()) g_Settings.bInvalid = true;
//logging::Info("fsi begin");// TODO dbg //logging::Info("fsi begin");// TODO dbg
/*if (g_Settings.bHackEnabled->GetBool() && !g_Settings.bInvalid) { if (g_Settings.bHackEnabled->GetBool() && !g_Settings.bInvalid) {
if (CE_GOOD(g_pLocalPlayer->entity) && CE_GOOD(g_pLocalPlayer->weapon())) { /*if (CE_GOOD(g_pLocalPlayer->entity) && CE_GOOD(g_pLocalPlayer->weapon())) {
int defidx = CE_INT(g_pLocalPlayer->weapon(), netvar.iItemDefinitionIndex); int defidx = CE_INT(g_pLocalPlayer->weapon(), netvar.iItemDefinitionIndex);
if (defidx == 61) { if (defidx == 61) {
CE_INT(g_pLocalPlayer->weapon(), netvar.iItemDefinitionIndex) = 1006; CE_INT(g_pLocalPlayer->weapon(), netvar.iItemDefinitionIndex) = 1006;
} }
} }*/
if (g_Settings.bThirdperson->GetBool() && CE_GOOD(g_pLocalPlayer->entity)) { if (g_Settings.bThirdperson->GetBool() && CE_GOOD(g_pLocalPlayer->entity)) {
CE_INT(g_pLocalPlayer->entity, netvar.nForceTauntCam) = 1; CE_INT(g_pLocalPlayer->entity, netvar.nForceTauntCam) = 1;
} }
@ -355,7 +355,7 @@ void hack::Hk_FrameStageNotify(void* thisptr, int stage) {
CE_FLOAT(g_pLocalPlayer->entity, netvar.deadflag + 8) = last_angles.y; CE_FLOAT(g_pLocalPlayer->entity, netvar.deadflag + 8) = last_angles.y;
} }
} }
}*/ }
((FrameStageNotify_t*)hooks::hkClient->GetMethod(hooks::offFrameStageNotify))(thisptr, stage); ((FrameStageNotify_t*)hooks::hkClient->GetMethod(hooks::offFrameStageNotify))(thisptr, stage);
/*if (g_Settings.bHackEnabled->GetBool() && !g_Settings.bInvalid) { /*if (g_Settings.bHackEnabled->GetBool() && !g_Settings.bInvalid) {
if (stage == 5 && g_Settings.bNoFlinch->GetBool()) { if (stage == 5 && g_Settings.bNoFlinch->GetBool()) {

View File

@ -284,7 +284,7 @@ int Aimbot::BestHitbox(CachedEntity* target, int preferred) {
if (!v_bAutoHitbox->GetBool()) return preferred; if (!v_bAutoHitbox->GetBool()) return preferred;
if (m_bHeadOnly) return 0; if (m_bHeadOnly) return 0;
if (target->m_pHitboxCache->VisibilityCheck(preferred)) return preferred; if (target->m_pHitboxCache->VisibilityCheck(preferred)) return preferred;
for (int i = 0; i < target->m_pHitboxCache->m_nNumHitboxes; i++) { for (int i = m_bProjectileMode ? 1 : 0; i < target->m_pHitboxCache->m_nNumHitboxes; i++) {
if (target->m_pHitboxCache->VisibilityCheck(i)) return i; if (target->m_pHitboxCache->VisibilityCheck(i)) return i;
} }
return -1; return -1;
@ -313,7 +313,8 @@ bool Aimbot::ShouldTarget(CachedEntity* entity) {
int hitbox = BestHitbox(entity, m_iPreferredHitbox); int hitbox = BestHitbox(entity, m_iPreferredHitbox);
if (m_bHeadOnly && hitbox) return false; if (m_bHeadOnly && hitbox) return false;
if (m_bProjectileMode) { if (m_bProjectileMode) {
if (!IsVectorVisible(g_pLocalPlayer->v_Eye, ProjectilePrediction(entity, hitbox, m_flProjSpeed, m_flProjGravity))) return false; resultAim = ProjectilePrediction(entity, hitbox, m_flProjSpeed, m_flProjGravity);
if (!IsVectorVisible(g_pLocalPlayer->v_Eye, resultAim)) return false;
} else { } else {
if (v_bMachinaPenetration->GetBool()) { if (v_bMachinaPenetration->GetBool()) {
if (!GetHitbox(entity, hitbox, resultAim)) return false; if (!GetHitbox(entity, hitbox, resultAim)) return false;
@ -338,11 +339,13 @@ bool Aimbot::ShouldTarget(CachedEntity* entity) {
Vector resultAim; Vector resultAim;
// TODO fix proj buildings // TODO fix proj buildings
if (m_bProjectileMode) { if (m_bProjectileMode) {
return false; if (!IsBuildingVisible(entity)) return false;
resultAim = GetBuildingPosition(entity);
//resultAim = entity->GetAbsOrigin(); //resultAim = entity->GetAbsOrigin();
//if (!PredictProjectileAim(g_pLocalPlayer->v_Eye, entity, (hitbox_t)m_iHitbox, m_flProjSpeed, m_bProjArc, m_flProjGravity, resultAim)) return false; //if (!PredictProjectileAim(g_pLocalPlayer->v_Eye, entity, (hitbox_t)m_iHitbox, m_flProjSpeed, m_bProjArc, m_flProjGravity, resultAim)) return false;
} else { } else {
//logging::Info("IsVisible?"); //logging::Info("IsVisible?");
resultAim = GetBuildingPosition(entity);
if (!IsBuildingVisible(entity)) return false; if (!IsBuildingVisible(entity)) return false;
} }
//logging::Info("IsFOV?"); //logging::Info("IsFOV?");