before ItemESP+

This commit is contained in:
nullifiedcat 2017-02-10 17:05:32 +03:00
parent 6259b690a3
commit 5b2b83f588
8 changed files with 32 additions and 11 deletions

View File

@ -1,10 +1,10 @@
Trace Fraction
alias clearcond "host_timescale 300;wait 500;host_timescale 1" alias clearcond "host_timescale 300;wait 500;host_timescale 1"
alias clearcond_taunt "taunt;wait 50;host_timescale 300;wait 500;host_timescale 1" alias clearcond_taunt "taunt;wait 50;host_timescale 300;wait 500;host_timescale 1"
bind l clearcond_taunt bind l clearcond_taunt
no fakelag shoot TF2C teams
TF2C merc
HL2DM teams
fullbright toggle fullbright toggle
Hunter Rifle Hunter Rifle
@ -16,10 +16,9 @@ Auto backstab, noise maker spam, kill say, team name spam (pre round team name s
Player List Player List
dominatesay assistsay worldsay dominatesay assistsay worldsay
Huntsman Leg
DS esp slow DS esp slow
antinewl switch
menu reorder menu reorder
AutoDetonator
MAX -> MIN priority MAX -> MIN priority
Crit Hack Crit Hack
@ -49,7 +48,6 @@ Engine Prediction
An option to ignore taunting enemies An option to ignore taunting enemies
AutoSticky improve AutoSticky improve
No AutoShoot when disguised No AutoShoot when disguised
Cloaked ESP
Ambassador bodyshotting Ambassador bodyshotting
No Trigger Mediguns No Trigger Mediguns
More projectile weapons aimbot (wrap assassin, wrangler, stickybomb, airstrike) More projectile weapons aimbot (wrap assassin, wrangler, stickybomb, airstrike)

View File

@ -105,6 +105,8 @@ Aimbot::Aimbot() {
"If disabled, FOV restrictions apply to current target position"); "If disabled, FOV restrictions apply to current target position");
this->v_bAimAtTeammates = new CatVar(CV_SWITCH, "aimbot_teammates", "0", "Aim at teammates", NULL, this->v_bAimAtTeammates = new CatVar(CV_SWITCH, "aimbot_teammates", "0", "Aim at teammates", NULL,
"Aim at your own team. Useful for HL2DM"); "Aim at your own team. Useful for HL2DM");
//this->v_bAdvancedSapperAim = new CatVar(CV_SWITCH, "aimbot_sapper", "1", "Advanced Sapper Aim", NULL,
// "Aim at buildings while holding sapper");
} }
bool Aimbot::ShouldAim(CUserCmd* cmd) { bool Aimbot::ShouldAim(CUserCmd* cmd) {

View File

@ -84,6 +84,7 @@ public:
CatVar* v_ePriorityMode; CatVar* v_ePriorityMode;
CatVar* v_bProjPredVisibility; CatVar* v_bProjPredVisibility;
CatVar* v_bProjPredFOV; CatVar* v_bProjPredFOV;
CatVar* v_bAdvancedSapperAim;
}; };
DECLARE_HACK_SINGLETON(Aimbot); DECLARE_HACK_SINGLETON(Aimbot);

View File

@ -19,6 +19,7 @@
#include "../common.h" #include "../common.h"
#include <checksum_md5.h> #include <checksum_md5.h>
#include "../sdk.h" #include "../sdk.h"
#include "../hooks/hookedmethods.h"
#include "../netmessage.h" #include "../netmessage.h"
#include "../copypasted/CSignature.h" #include "../copypasted/CSignature.h"
@ -304,6 +305,7 @@ Misc::Misc() {
v_bCleanChat = new CatVar(CV_SWITCH, "clean_chat", "1", "Remove newlines from messages", NULL, "Removes newlines from messages, at least it should do that. Might be broken."); v_bCleanChat = new CatVar(CV_SWITCH, "clean_chat", "1", "Remove newlines from messages", NULL, "Removes newlines from messages, at least it should do that. Might be broken.");
if (TF2) c_Schema = CreateConCommand(CON_PREFIX "schema", CC_Misc_Schema, "Load item schema"); if (TF2) c_Schema = CreateConCommand(CON_PREFIX "schema", CC_Misc_Schema, "Load item schema");
if (TF2) v_bDebugCrits = new CatVar(CV_SWITCH, "debug_crits", "0", "???", NULL, "???"); if (TF2) v_bDebugCrits = new CatVar(CV_SWITCH, "debug_crits", "0", "???", NULL, "???");
//if (TF2) v_bHookInspect = new CatVar(CV_SWITCH, "hook_inspect", "0", "Hook CanInspect", NULL, "Once enabled, can't be turned off. cathook can't be unloaded after enabling it");
//interfaces::eventManager->AddListener(&listener, "player_death", false); //interfaces::eventManager->AddListener(&listener, "player_death", false);
} }
@ -342,6 +344,20 @@ bool canmeleecrit(IClientEntity* weapon) {
void Misc::ProcessUserCmd(CUserCmd* cmd) { void Misc::ProcessUserCmd(CUserCmd* cmd) {
static bool flswitch = false; static bool flswitch = false;
/*if (TF2 && v_bHookInspect->GetBool()) {
if (CE_GOOD(LOCAL_W)) {
//logging::Info("%i", vfunc<bool(*)(IClientEntity*)>(RAW_ENT(LOCAL_W), offCanInspect, 0)(RAW_ENT(LOCAL_W)));
uintptr_t* vtable = *(uintptr_t**)(RAW_ENT(LOCAL_W));
if (vtable[offCanInspect] != (uintptr_t)CanInspect_hook) {
uintptr_t patch = (uintptr_t)CanInspect_hook;
Patch((void*)((uintptr_t)vtable + offCanInspect * 4), &patch, 4);
//vtable[offCanInspect] = (uintptr_t*)CanInspect_hook;
}
//logging::Info("%i", vfunc<bool(*)(IClientEntity*)>(RAW_ENT(LOCAL_W), offCanInspect, 0)(RAW_ENT(LOCAL_W)));
}
}
*/
if (TF2 && v_bDebugCrits->GetBool() && CE_GOOD(LOCAL_W)) { if (TF2 && v_bDebugCrits->GetBool() && CE_GOOD(LOCAL_W)) {
//static uintptr_t helper = gSignatures.GetClientSignature("55 89 E5 81 EC 88 00 00 00 89 5D F4 8B 5D 08 89 75 F8 89 7D FC 31 FF 89 1C 24 E8 ? ? ? ? 85 C0 89 C6 74 0F 8B 00 89 34 24 FF 90 E0 02 00 00 84 C0 75 14 89 F8 8B 5D F4 8B 75 F8 8B 7D FC 89 EC 5D C3"); //static uintptr_t helper = gSignatures.GetClientSignature("55 89 E5 81 EC 88 00 00 00 89 5D F4 8B 5D 08 89 75 F8 89 7D FC 31 FF 89 1C 24 E8 ? ? ? ? 85 C0 89 C6 74 0F 8B 00 89 34 24 FF 90 E0 02 00 00 84 C0 75 14 89 F8 8B 5D F4 8B 75 F8 8B 7D FC 89 EC 5D C3");
/*if (interfaces::gvars->curtime - lastcheck >= 1.0f) { /*if (interfaces::gvars->curtime - lastcheck >= 1.0f) {
@ -362,7 +378,7 @@ void Misc::ProcessUserCmd(CUserCmd* cmd) {
ciac_s = vfunc<bool(*)(IClientEntity*)>(RAW_ENT(LOCAL_W), 1836 / 4, 0)(RAW_ENT(LOCAL_W)); ciac_s = vfunc<bool(*)(IClientEntity*)>(RAW_ENT(LOCAL_W), 1836 / 4, 0)(RAW_ENT(LOCAL_W));
lastcheck = interfaces::gvars->curtime; lastcheck = interfaces::gvars->curtime;
if (ciac_s != 0) { if (ciac_s != 0) {
logging::Info("Attack!!!"); //logging::Info("Attack!!!");
cmd->buttons = cmd->buttons | IN_ATTACK; cmd->buttons = cmd->buttons | IN_ATTACK;
AddCenterString(colors::red, "Crit!"); AddCenterString(colors::red, "Crit!");
} }

View File

@ -29,6 +29,7 @@ public:
CatVar* v_bMinigunJump; // TF2C CatVar* v_bMinigunJump; // TF2C
CatVar* v_bDebugCrits; // TF2C CatVar* v_bDebugCrits; // TF2C
CatVar* v_bAntiAFK; CatVar* v_bAntiAFK;
CatVar* v_bHookInspect;
CatVar* v_iFakeLag; CatVar* v_iFakeLag;
//ConVar* v_bDumpEventInfo; //ConVar* v_bDumpEventInfo;
ConCommand* c_DumpItemAttributes; ConCommand* c_DumpItemAttributes;

View File

@ -11,7 +11,4 @@
void BeginFrame_hook(IStudioRender* _this) { void BeginFrame_hook(IStudioRender* _this) {
((BeginFrame_t*)hooks::hkStudioRender->GetMethod(hooks::offBeginFrame))(_this); ((BeginFrame_t*)hooks::hkStudioRender->GetMethod(hooks::offBeginFrame))(_this);
if (!g_Settings.bInvalid)
interfaces::debug->AddTextOverlay(LOCAL_E->m_vecOrigin, -1.0f, "AyyLmao");
} }

View File

@ -13,6 +13,7 @@ class CUserCmd;
class INetMessage; class INetMessage;
class bf_read; class bf_read;
class CViewSetup; class CViewSetup;
class IClientEntity;
typedef bool(CreateMove_t)(void*, float, CUserCmd*); typedef bool(CreateMove_t)(void*, float, CUserCmd*);
typedef void(PaintTraverse_t)(void*, unsigned int, bool, bool); typedef void(PaintTraverse_t)(void*, unsigned int, bool, bool);
@ -26,6 +27,9 @@ typedef void(FrameStageNotify_t)(void*, int);
typedef void(LevelInit_t)(void*, const char*); typedef void(LevelInit_t)(void*, const char*);
typedef void(LevelShutdown_t)(void*); typedef void(LevelShutdown_t)(void*);
typedef void(BeginFrame_t)(IStudioRender*); typedef void(BeginFrame_t)(IStudioRender*);
typedef bool(*CanInspect_t)(IClientEntity*);
bool CanInspect_hook(IClientEntity*);
const unsigned int offCanInspect = 512;
void BeginFrame_hook(IStudioRender*); void BeginFrame_hook(IStudioRender*);
#include "CreateMove.h" #include "CreateMove.h"

View File

@ -152,6 +152,8 @@ void LevelInit_hook(void* thisptr, const char* newmap) {
g_pChatStack->Reset(); g_pChatStack->Reset();
} }
bool CanInspect_hook(IClientEntity*) { return true; }
void LevelShutdown_hook(void* thisptr) { void LevelShutdown_hook(void* thisptr) {
((LevelShutdown_t*) hooks::hkClientMode->GetMethod(hooks::offLevelShutdown))(thisptr); ((LevelShutdown_t*) hooks::hkClientMode->GetMethod(hooks::offLevelShutdown))(thisptr);
g_Settings.bInvalid = true; g_Settings.bInvalid = true;