Comp bypass™️

This commit is contained in:
LightCat 2018-08-22 19:17:52 +02:00
parent 546702cb63
commit c31313d81d
5 changed files with 34 additions and 3 deletions

View File

@ -6,7 +6,7 @@
*/
#pragma once
#include "reclasses.hpp"
namespace re
{
@ -26,4 +26,14 @@ public:
int BRequestJoinPlayer(CSteamID steamid);
static bool BInQueue(CTFPartyClient *this_);
};
class ITFMatchGroupDescription
{
public:
char pad0[4];
int m_iID;
char pad1[63];
bool m_bForceCompetitiveSettings;
};
ITFMatchGroupDescription* GetMatchGroupDescription(int& idx);
} // namespace re

View File

@ -10,6 +10,7 @@
#include "common.hpp"
#include "C_BaseEntity.hpp"
#include "ITFGroupMatchCriteria.hpp"
#include "CTFPlayerShared.hpp"
#include "C_BasePlayer.hpp"
#include "C_BaseCombatWeapon.hpp"

View File

@ -403,6 +403,17 @@ free(logname);*/
logging::Info("Initializer stack done");
hack::initialized = true;
for (int i = 0; i < 12; i++)
{
re::ITFMatchGroupDescription* desc = re::GetMatchGroupDescription(i);
if (!desc || desc->m_iID > 9) //ID's over 9 are invalid
continue;
if (desc->m_bForceCompetitiveSettings)
{
desc->m_bForceCompetitiveSettings = false;
logging::Info("Bypassed force competitive cvars!");
}
}
}
void hack::Think()

View File

@ -48,9 +48,7 @@ void checkAFK()
if (CE_BAD(entity))
continue;
if (!CE_VECTOR(entity, netvar.vVelocity).IsZero(60.0f))
{
afkTicks[i].update();
}
}
}

View File

@ -119,3 +119,14 @@ int re::CTFPartyClient::BRequestJoinPlayer(CSteamID steamid)
BRequestJoinPlayer_t(addr);
return BRequestJoinPlayer_fn(this, steamid, false);
}
re::ITFMatchGroupDescription *
re::GetMatchGroupDescription(int &idx)
{
typedef re::ITFMatchGroupDescription *(
*GetMatchGroupDescription_t)(int&);
static uintptr_t addr = gSignatures.GetClientSignature("55 89 E5 8B 45 08 8B 00 83 F8 FF");
static GetMatchGroupDescription_t GetMatchGroupDescription_fn =
GetMatchGroupDescription_t(addr);
return GetMatchGroupDescription_fn(idx);
}