this is so catbots crashing
This commit is contained in:
parent
e88e756610
commit
46c4d9f0c0
@ -40,7 +40,9 @@ bool UnassignedClass()
|
||||
|
||||
static Timer autoqueue_timer{};
|
||||
static Timer queuetime{};
|
||||
#if not ENABLE_VISUALS
|
||||
static Timer req_timer{};
|
||||
#endif
|
||||
void updateSearch()
|
||||
{
|
||||
// segfaults for no reason
|
||||
@ -90,7 +92,12 @@ void updateSearch()
|
||||
return;
|
||||
}
|
||||
if (g_IEngine->IsInGame())
|
||||
{
|
||||
#if not ENABLE_VISUALS
|
||||
req_timer.update();
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
static uintptr_t addr =
|
||||
gSignatures.GetClientSignature("C7 04 24 ? ? ? ? 8D 7D ? 31 F6");
|
||||
@ -106,32 +113,34 @@ void updateSearch()
|
||||
re::CTFPartyClient *pc = re::CTFPartyClient::GTFPartyClient();
|
||||
|
||||
if (current_user_cmd && gc && gc->BConnectedToMatchServer(false) &&
|
||||
gc->BHaveLiveMatch())
|
||||
gc->BHaveLiveMatch())
|
||||
{
|
||||
#if not ENABLE_VISUALS
|
||||
req_timer.update();
|
||||
#endif
|
||||
tfmm::leaveQueue();
|
||||
}
|
||||
// if (gc && !gc->BConnectedToMatchServer(false) &&
|
||||
// queuetime.test_and_set(10 * 1000 * 60) && !gc->BHaveLiveMatch())
|
||||
// tfmm::leaveQueue();
|
||||
// if (gc && !gc->BConnectedToMatchServer(false) &&
|
||||
// queuetime.test_and_set(10 * 1000 * 60) &&
|
||||
// !gc->BHaveLiveMatch())
|
||||
// tfmm::leaveQueue();
|
||||
|
||||
if (auto_requeue)
|
||||
{
|
||||
if (gc && !gc->BConnectedToMatchServer(false) && !gc->BHaveLiveMatch() &&
|
||||
!invites)
|
||||
if (gc && !gc->BConnectedToMatchServer(false) &&
|
||||
!gc->BHaveLiveMatch() && !invites)
|
||||
if (!(pc && pc->BInQueueForMatchGroup(tfmm::getQueue())))
|
||||
{
|
||||
logging::Info("Starting queue for standby, Invites %d", invites);
|
||||
logging::Info("Starting queue for standby, Invites %d",
|
||||
invites);
|
||||
tfmm::startQueueStandby();
|
||||
}
|
||||
}
|
||||
|
||||
if (auto_queue)
|
||||
{
|
||||
if (gc && !gc->BConnectedToMatchServer(false) && !gc->BHaveLiveMatch() &&
|
||||
!invites)
|
||||
if (gc && !gc->BConnectedToMatchServer(false) &&
|
||||
!gc->BHaveLiveMatch() && !invites)
|
||||
if (!(pc && pc->BInQueueForMatchGroup(tfmm::getQueue())))
|
||||
{
|
||||
logging::Info("Starting queue, Invites %d", invites);
|
||||
|
@ -23,7 +23,7 @@ DEFINE_HOOKED_METHOD(Shutdown, void, INetChannel *this_, const char *reason)
|
||||
logging::Info("Disconnect: %s", reason);
|
||||
if (strstr(reason, "Generic_Kicked"))
|
||||
{
|
||||
if (die_if_vac) {
|
||||
if (*die_if_vac) {
|
||||
static uintptr_t addr =
|
||||
gSignatures.GetClientSignature("C7 04 24 ? ? ? ? 8D 7D ? 31 F6");
|
||||
static uintptr_t offset0 = uintptr_t(*(uintptr_t *) (addr + 0x3));
|
||||
@ -48,7 +48,7 @@ DEFINE_HOOKED_METHOD(Shutdown, void, INetChannel *this_, const char *reason)
|
||||
}
|
||||
if (strstr(reason, "banned"))
|
||||
{
|
||||
if (die_if_vac)
|
||||
if (*die_if_vac)
|
||||
{
|
||||
logging::Info("VAC/Matchmaking banned");
|
||||
*(int *) 0 = 0;
|
||||
|
Reference in New Issue
Block a user