Merge remote-tracking branch 'origin/newui'
This commit is contained in:
commit
54e6216c3b
@ -50,7 +50,7 @@
|
|||||||
<Option name="FakeLeft" value="19"/>
|
<Option name="FakeLeft" value="19"/>
|
||||||
<Option name="FakeRight" value="20"/>
|
<Option name="FakeRight" value="20"/>
|
||||||
<Option name="FakeREdge" value="21"/>
|
<Option name="FakeREdge" value="21"/>
|
||||||
<Option name="OmegaFake" value="22"/>
|
<Option name="TestAA" value="22"/>
|
||||||
</Select>
|
</Select>
|
||||||
</LabeledObject>
|
</LabeledObject>
|
||||||
</List>
|
</List>
|
||||||
|
@ -20,6 +20,7 @@ public:
|
|||||||
static ITFGroupMatchCriteria *MutLocalGroupCriteria(CTFPartyClient *client);
|
static ITFGroupMatchCriteria *MutLocalGroupCriteria(CTFPartyClient *client);
|
||||||
static bool BCanQueueForStandby(CTFPartyClient *this_);
|
static bool BCanQueueForStandby(CTFPartyClient *this_);
|
||||||
char RequestQueueForMatch(int type);
|
char RequestQueueForMatch(int type);
|
||||||
|
void RequestQueueForStandby();
|
||||||
bool BInQueueForMatchGroup(int type);
|
bool BInQueueForMatchGroup(int type);
|
||||||
char RequestLeaveForMatch(int type);
|
char RequestLeaveForMatch(int type);
|
||||||
int BInvitePlayerToParty(CSteamID steamid);
|
int BInvitePlayerToParty(CSteamID steamid);
|
||||||
|
@ -28,7 +28,7 @@ public:
|
|||||||
self->GetClientClass()->m_ClassID == CL_CLASS(CTFKatana))
|
self->GetClientClass()->m_ClassID == CL_CLASS(CTFKatana))
|
||||||
return 128;
|
return 128;
|
||||||
else
|
else
|
||||||
return (128.0f * 0.67) - 0.5f;
|
return 72;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} // namespace re
|
} // namespace re
|
||||||
|
@ -401,6 +401,7 @@ void FakeCrouch(CUserCmd *cmd)
|
|||||||
if ((cmd->buttons & IN_ATTACK))
|
if ((cmd->buttons & IN_ATTACK))
|
||||||
*bSendPackets = true;
|
*bSendPackets = true;
|
||||||
}
|
}
|
||||||
|
static float randyaw = 0.0f;
|
||||||
void ProcessUserCmd(CUserCmd *cmd)
|
void ProcessUserCmd(CUserCmd *cmd)
|
||||||
{
|
{
|
||||||
if (!enable)
|
if (!enable)
|
||||||
@ -547,12 +548,11 @@ void ProcessUserCmd(CUserCmd *cmd)
|
|||||||
case 22: // Omegayaw
|
case 22: // Omegayaw
|
||||||
if (*bSendPackets)
|
if (*bSendPackets)
|
||||||
{
|
{
|
||||||
rngyaw = RandFloatRange(-180.0f, 180.0f);
|
randyaw += RandFloatRange(-30.0f, 30.0f);
|
||||||
y = rngyaw;
|
y = randyaw;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
y = rngyaw - 180.0f;
|
y = randyaw - 180.0f + RandFloatRange(-40.0f, 40.0f);
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
4
src/hacks/AntiAntiAim.cpp
Executable file → Normal file
4
src/hacks/AntiAntiAim.cpp
Executable file → Normal file
@ -49,6 +49,10 @@ void hacks::shared::anti_anti_aim::resolveEnt(int IDX, IClientEntity *entity)
|
|||||||
if (angles.y < 0)
|
if (angles.y < 0)
|
||||||
angles.y += 360.0f;
|
angles.y += 360.0f;
|
||||||
angles.y -= 180.0f;
|
angles.y -= 180.0f;
|
||||||
|
if (angles.x >= 90)
|
||||||
|
angles.x = -89;
|
||||||
|
if (angles.x <= -90)
|
||||||
|
angles.x = 89;
|
||||||
if (quota < 0.8f)
|
if (quota < 0.8f)
|
||||||
switch (g_Settings.brute.brutenum[IDX])
|
switch (g_Settings.brute.brutenum[IDX])
|
||||||
{
|
{
|
||||||
|
@ -483,6 +483,8 @@ CatCommand set_value("set", "Set value", [](const CCommand &args) {
|
|||||||
return;
|
return;
|
||||||
std::string value(args.Arg(2));
|
std::string value(args.Arg(2));
|
||||||
ReplaceString(value, "\\n", "\n");
|
ReplaceString(value, "\\n", "\n");
|
||||||
|
var->m_fMaxVal = 999999999.9f;
|
||||||
|
var->m_fMinVal = -999999999.9f;
|
||||||
var->SetValue(value.c_str());
|
var->SetValue(value.c_str());
|
||||||
logging::Info("Set '%s' to '%s'", args.Arg(1), value.c_str());
|
logging::Info("Set '%s' to '%s'", args.Arg(1), value.c_str());
|
||||||
});
|
});
|
||||||
|
@ -218,6 +218,8 @@ void initonce()
|
|||||||
cd2.update();
|
cd2.update();
|
||||||
cd3.update();
|
cd3.update();
|
||||||
engi_spot_cd.update();
|
engi_spot_cd.update();
|
||||||
|
sniper_spots.clear();
|
||||||
|
preferred_sniper_spots.clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,15 @@ int re::CTFPartyClient::LoadSavedCasualCriteria()
|
|||||||
|
|
||||||
return LoadSavedCasualCriteria_fn(this);
|
return LoadSavedCasualCriteria_fn(this);
|
||||||
}
|
}
|
||||||
|
void re::CTFPartyClient::RequestQueueForStandby()
|
||||||
|
{
|
||||||
|
typedef void (*RequestStandby_t)(re::CTFPartyClient *);
|
||||||
|
static uintptr_t addr = gSignatures.GetClientSignature(
|
||||||
|
"55 89 E5 57 56 53 83 EC ? 8B 7D ? 8B 4F ? 85 C9 74");
|
||||||
|
static RequestStandby_t RequestStandby_fn = RequestStandby_t(addr);
|
||||||
|
RequestStandby_fn(this);
|
||||||
|
return;
|
||||||
|
}
|
||||||
char re::CTFPartyClient::RequestQueueForMatch(int type)
|
char re::CTFPartyClient::RequestQueueForMatch(int type)
|
||||||
{
|
{
|
||||||
typedef char (*RequestQueueForMatch_t)(re::CTFPartyClient *, int);
|
typedef char (*RequestQueueForMatch_t)(re::CTFPartyClient *, int);
|
||||||
|
@ -13,7 +13,10 @@ settings::Int queue{ "autoqueue.mode", "7" };
|
|||||||
|
|
||||||
CatCommand cmd_queue_start("mm_queue_casual", "Start casual queue",
|
CatCommand cmd_queue_start("mm_queue_casual", "Start casual queue",
|
||||||
[]() { tfmm::startQueue(); });
|
[]() { tfmm::startQueue(); });
|
||||||
|
CatCommand queue_party("mm_queue_party", "Queue for Party", []() {
|
||||||
|
re::CTFPartyClient *client = re::CTFPartyClient::GTFPartyClient();
|
||||||
|
client->RequestQueueForStandby();
|
||||||
|
});
|
||||||
CatCommand cmd_abandon("mm_abandon", "Abandon match",
|
CatCommand cmd_abandon("mm_abandon", "Abandon match",
|
||||||
[]() { tfmm::abandon(); });
|
[]() { tfmm::abandon(); });
|
||||||
|
|
||||||
@ -56,6 +59,7 @@ void startQueue()
|
|||||||
if (*queue == 7)
|
if (*queue == 7)
|
||||||
client->LoadSavedCasualCriteria();
|
client->LoadSavedCasualCriteria();
|
||||||
client->RequestQueueForMatch((int) queue);
|
client->RequestQueueForMatch((int) queue);
|
||||||
|
client->RequestQueueForStandby();
|
||||||
hacks::shared::autojoin::resetQueueTimer();
|
hacks::shared::autojoin::resetQueueTimer();
|
||||||
queuecount++;
|
queuecount++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user