Merge remote-tracking branch 'origin/newui'
This commit is contained in:
commit
54e6216c3b
@ -50,7 +50,7 @@
|
||||
<Option name="FakeLeft" value="19"/>
|
||||
<Option name="FakeRight" value="20"/>
|
||||
<Option name="FakeREdge" value="21"/>
|
||||
<Option name="OmegaFake" value="22"/>
|
||||
<Option name="TestAA" value="22"/>
|
||||
</Select>
|
||||
</LabeledObject>
|
||||
</List>
|
||||
|
@ -57,7 +57,7 @@
|
||||
<Box name="NavBot" width="content" height="content" padding="12 6 6 6" x="390">
|
||||
<List width="170">
|
||||
<AutoVariable width="fill" target="misc.pathing" label="Enable Pathing"/>
|
||||
<AutoVariable width="fill" target="misc.pathing.draw" label="Draw Path"/>
|
||||
<AutoVariable width="fill" target="misc.pathing.draw" label="Draw Path"/>
|
||||
<AutoVariable width="fill" target="navbot.enable" label="Enable NavBot"/>
|
||||
<AutoVariable width="fill" target="navbot.spy-mode" label="Enable Spy Mode"/>
|
||||
<AutoVariable width="fill" target="navbot.heavy-mode" label="Enable Heavy Mode"/>
|
||||
|
@ -20,6 +20,7 @@ public:
|
||||
static ITFGroupMatchCriteria *MutLocalGroupCriteria(CTFPartyClient *client);
|
||||
static bool BCanQueueForStandby(CTFPartyClient *this_);
|
||||
char RequestQueueForMatch(int type);
|
||||
void RequestQueueForStandby();
|
||||
bool BInQueueForMatchGroup(int type);
|
||||
char RequestLeaveForMatch(int type);
|
||||
int BInvitePlayerToParty(CSteamID steamid);
|
||||
|
@ -28,7 +28,7 @@ public:
|
||||
self->GetClientClass()->m_ClassID == CL_CLASS(CTFKatana))
|
||||
return 128;
|
||||
else
|
||||
return (128.0f * 0.67) - 0.5f;
|
||||
return 72;
|
||||
}
|
||||
};
|
||||
} // namespace re
|
||||
|
@ -401,6 +401,7 @@ void FakeCrouch(CUserCmd *cmd)
|
||||
if ((cmd->buttons & IN_ATTACK))
|
||||
*bSendPackets = true;
|
||||
}
|
||||
static float randyaw = 0.0f;
|
||||
void ProcessUserCmd(CUserCmd *cmd)
|
||||
{
|
||||
if (!enable)
|
||||
@ -547,12 +548,11 @@ void ProcessUserCmd(CUserCmd *cmd)
|
||||
case 22: // Omegayaw
|
||||
if (*bSendPackets)
|
||||
{
|
||||
rngyaw = RandFloatRange(-180.0f, 180.0f);
|
||||
y = rngyaw;
|
||||
randyaw += RandFloatRange(-30.0f, 30.0f);
|
||||
y = randyaw;
|
||||
}
|
||||
else
|
||||
y = rngyaw - 180.0f;
|
||||
break;
|
||||
y = randyaw - 180.0f + RandFloatRange(-40.0f, 40.0f);
|
||||
default:
|
||||
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)
|
||||
angles.y += 360.0f;
|
||||
angles.y -= 180.0f;
|
||||
if (angles.x >= 90)
|
||||
angles.x = -89;
|
||||
if (angles.x <= -90)
|
||||
angles.x = 89;
|
||||
if (quota < 0.8f)
|
||||
switch (g_Settings.brute.brutenum[IDX])
|
||||
{
|
||||
|
@ -483,6 +483,8 @@ CatCommand set_value("set", "Set value", [](const CCommand &args) {
|
||||
return;
|
||||
std::string value(args.Arg(2));
|
||||
ReplaceString(value, "\\n", "\n");
|
||||
var->m_fMaxVal = 999999999.9f;
|
||||
var->m_fMinVal = -999999999.9f;
|
||||
var->SetValue(value.c_str());
|
||||
logging::Info("Set '%s' to '%s'", args.Arg(1), value.c_str());
|
||||
});
|
||||
|
@ -218,6 +218,8 @@ void initonce()
|
||||
cd2.update();
|
||||
cd3.update();
|
||||
engi_spot_cd.update();
|
||||
sniper_spots.clear();
|
||||
preferred_sniper_spots.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,15 @@ int re::CTFPartyClient::LoadSavedCasualCriteria()
|
||||
|
||||
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)
|
||||
{
|
||||
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",
|
||||
[]() { 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",
|
||||
[]() { tfmm::abandon(); });
|
||||
|
||||
@ -56,6 +59,7 @@ void startQueue()
|
||||
if (*queue == 7)
|
||||
client->LoadSavedCasualCriteria();
|
||||
client->RequestQueueForMatch((int) queue);
|
||||
client->RequestQueueForStandby();
|
||||
hacks::shared::autojoin::resetQueueTimer();
|
||||
queuecount++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user