fix: melee crit hack doesn't work, made 3d box for invis spies
transparent
This commit is contained in:
parent
7f34f9e106
commit
6493073fd3
@ -14,13 +14,13 @@
|
||||
std::unordered_map<int, int> command_number_mod {};
|
||||
|
||||
bool AllowAttacking() {
|
||||
if (!hacks::shared::misc::crit_hack) return true;
|
||||
if (!(hacks::shared::misc::crit_hack || ((GetWeaponMode(LOCAL_E) == weapon_melee) && hacks::shared::misc::crit_melee))) return true;
|
||||
bool crit = IsAttackACrit(g_pUserCmd);
|
||||
if (hacks::shared::misc::crit_suppress && !hacks::shared::misc::crit_hack && WeaponCanCrit()) {
|
||||
if (hacks::shared::misc::crit_suppress && !(hacks::shared::misc::crit_hack || ((GetWeaponMode(LOCAL_E) == weapon_melee) && hacks::shared::misc::crit_melee))) {
|
||||
if (crit && !IsPlayerCritBoosted(LOCAL_E)) {
|
||||
return false;
|
||||
}
|
||||
} else if (((GetWeaponMode(LOCAL_E) == weapon_melee && hacks::shared::misc::crit_melee) || hacks::shared::misc::crit_hack) && RandomCrits() && WeaponCanCrit() && (g_pLocalPlayer->weapon()->m_iClassID != g_pClassID->CTFKnife)) {
|
||||
} else if ((hacks::shared::misc::crit_hack || ((GetWeaponMode(LOCAL_E) == weapon_melee) && hacks::shared::misc::crit_melee)) && RandomCrits() && WeaponCanCrit() && (g_pLocalPlayer->weapon()->m_iClassID != g_pClassID->CTFKnife)) {
|
||||
if (!crit) return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -157,7 +157,8 @@ void Draw3DBox(CachedEntity* ent, int clr, bool healthbar, int health, int healt
|
||||
};
|
||||
|
||||
if (esp_3d_box_health) clr = colors::Health(health, healthmax);
|
||||
|
||||
bool cloak = ent->m_iClassID == g_pClassID->C_Player && IsPlayerInvisible(ent);
|
||||
if (cloak) clr = colors::Transparent(clr, 0.2);
|
||||
for (int i = 0; i < 12; i++) {
|
||||
const Vector& p1 = points[indices[i][0]];
|
||||
const Vector& p2 = points[indices[i][1]];
|
||||
@ -339,7 +340,8 @@ void ProcessEntity(CachedEntity* ent) {
|
||||
}*/
|
||||
}
|
||||
if (power >= 0) {
|
||||
AddEntityString(ent, format("HAS ", powerups[power]));
|
||||
// FIXME Disabled powerup ESP.
|
||||
//AddEntityString(ent, format("HAS ", powerups[power]));
|
||||
}
|
||||
if (ent->m_bEnemy || teammates || GetRelation(ent)) {
|
||||
if (show_name)
|
||||
|
@ -464,7 +464,7 @@ weaponmode GetWeaponMode(CachedEntity* player) {
|
||||
}
|
||||
CachedEntity* weapon = (ENTITY(weapon_handle & 0xFFF));
|
||||
if (CE_BAD(weapon)) return weaponmode::weapon_invalid;
|
||||
if (IsMeleeWeapon(weapon)) return weaponmode::weapon_melee;
|
||||
if (vfunc<int(*)(IClientEntity*)>(RAW_ENT(g_pLocalPlayer->weapon()), 395, 0)(RAW_ENT(g_pLocalPlayer->weapon())) == 2) return weaponmode::weapon_melee;
|
||||
if (weapon->m_iClassID == g_pClassID->CTFLunchBox ||
|
||||
weapon->m_iClassID == g_pClassID->CTFLunchBox_Drink ||
|
||||
weapon->m_iClassID == g_pClassID->CTFBuffItem) {
|
||||
|
@ -154,7 +154,7 @@ bool DispatchUserMessage_hook(void* thisptr, int type, bf_read& buf) {
|
||||
|
||||
void LevelInit_hook(void* thisptr, const char* newmap) {
|
||||
((LevelInit_t*) hooks::hkClientMode->GetMethod(hooks::offLevelInit))(thisptr, newmap);
|
||||
g_IEngine->ExecuteClientCmd("exec cat_matchexec");
|
||||
g_IEngine->ClientCmd_Unrestricted("exec cat_matchexec");
|
||||
hacks::shared::aimbot::Reset();
|
||||
hacks::shared::airstuck::Reset();
|
||||
// LEVEL_SHUTDOWN(FollowBot);
|
||||
|
Reference in New Issue
Block a user