ProjESP fixed

This commit is contained in:
nullifiedcat 2016-12-21 12:11:51 +03:00
parent cf216c5386
commit 037e39a626
4 changed files with 14 additions and 3 deletions

View File

@ -174,6 +174,15 @@ Color colors::EntityF(CachedEntity* ent) {
result = green; // TODO currency pack (red)
}
if (IsProjectile(ent->m_pEntity)) {
if (ent->m_iTeam == TEAM_BLU) result = blu;
else if (ent->m_iTeam == TEAM_RED) result = red;
if (ent->m_bCritProjectile) {
if (ent->m_iTeam == TEAM_BLU) result = blu_u;
else if (ent->m_iTeam == TEAM_RED) result = red_u;
}
}
if (IsPlayer(ent->m_pEntity) || IsBuilding(ent->m_pEntity)) {
if (ent->m_iTeam == TEAM_BLU) result = blu;
else if (ent->m_iTeam == TEAM_RED) result = red;

View File

@ -59,7 +59,7 @@ void EntityVariables::Init() {
this->nForceTauntCam = gNetvars.get_offset("DT_TFPlayer", "m_nForceTauntCam");
this->iFOV = gNetvars.get_offset("DT_BasePlayer", "m_iFOV");
this->iDefaultFOV = gNetvars.get_offset("DT_BasePlayer", "m_iDefaultFOV");
this->Rocket_bCritical = gNetvars.get_offset("DT_TFBaseRocket", "m_bCritical");
this->Rocket_bCritical = gNetvars.get_offset("DT_TFProjectile_Rocket", "m_bCritical");
this->Grenade_bCritical = gNetvars.get_offset("DT_TFWeaponBaseGrenadeProj", "m_bCritical");
}

View File

@ -9,6 +9,7 @@
#include <fstream>
#include <iostream>
#include <sys/prctl.h>
//#include <cstring>
#include <unistd.h>
#include <link.h>
@ -366,6 +367,7 @@ void hack::CC_Cat(const CCommand& args) {
void hack::Initialize() {
logging::Initialize();
prctl(PR_SET_DUMPABLE,0,42,42,42);
logging::Info("Build: " __DATE__ " " __TIME__);
logging::Info("Loading shared objects...");
sharedobj::LoadAllSharedObjects();

View File

@ -305,7 +305,7 @@ bool Aimbot::ShouldTarget(IClientEntity* entity) {
if ((enemy_pos - my_pos).Length() > v_iMaxRange->GetInt()) return false;
}
if (GetWeaponMode(g_pLocalPlayer->entity) == weaponmode::weapon_melee) {
if ((enemy_pos - my_pos).Length() > 105) return false;
if ((enemy_pos - my_pos).Length() > 95) return false;
}
int econd = GetEntityValue<int>(entity, netvar.iCond1);
if ((econd & cond_ex::vacc_bullet)) return false;
@ -333,7 +333,7 @@ bool Aimbot::ShouldTarget(IClientEntity* entity) {
if ((enemy_pos - g_pLocalPlayer->v_Origin).Length() > v_iMaxRange->GetInt()) return false;
}
if (GetWeaponMode(g_pLocalPlayer->entity) == weaponmode::weapon_melee) {
if ((enemy_pos - g_pLocalPlayer->v_Origin).Length() > 105) return false;
if ((enemy_pos - g_pLocalPlayer->v_Origin).Length() > 95) return false;
}
Vector resultAim;
// TODO fix proj buildings