-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Hello Guys iam back again i was not uploading tutorials because i got ban from this site :(
;-;
So here is the first one :v
;-;
So here is the first one :v
Код:
void CFakewalk :: slow_mo (SDK :: CUserCmd * cmd)
{
auto local_player = INTERFACES :: ClientEntityList-> GetClientEntity (INTERFACES :: Engine-> GetLocalPlayer ());
if (SETTINGS :: settings.glitch_bool)
{
static int iChoked = -1;
iChoked ++;
static bool slowmo;
slowmo =! slowmo;
const auto lag = 90;
if (iChoked <lag)
{
GLOBAL :: should_send_packet = false;
if (slowmo)
{
cmd-> tick_count = INT_MAX;
cmd-> command_number + = INT_MAX + cmd-> tick_count% 2? 10;
cmd-> buttons | = IN_FORWARD;
cmd-> buttons | = IN_LEFT;
cmd-> buttons | = IN_BACK;
cmd-> forwardmove = cmd-> sidemove = 0.f;
}
else
{
GLOBAL :: should_send_packet = true;
iChoked = -1;
INTERFACES :: Globals-> frametime * = (local_player-> GetVelocity (). Length2D ()) / 1.2;
cmd-> buttons | = IN_FORWARD;
}
}
else
{
if (! GLOBAL :: should_send_packet)
{
if (slowmo)
{
cmd-> tick_count = INT_MAX;
cmd-> command_number + = INT_MAX + cmd-> tick_count% 2? 10;
cmd-> buttons | = IN_FORWARD;
cmd-> buttons | = IN_LEFT;
cmd-> buttons | = IN_BACK;
cmd-> forwardmove = cmd-> sidemove = 0.f;
}
}
else
{
if (slowmo)
{
GLOBAL :: should_send_packet = true;
iChoked = -1;
cmd-> tick_count = INT_MAX;
INTERFACES :: Globals-> frametime * = (local_player-> GetVelocity (). Length2D ()) / 1.25;
cmd-> buttons | = IN_FORWARD;
}
}
}
}
} [/ CODE]
In fakewalk.h:
[CODE] void slow_mo (SDK :: CUserCmd * cmd); [/ CODE]
In hook.cpp under:
[CODE] HookedCreateMove [/ CODE]
We paste:
if (SETTINGS :: settings.glitch_bool)
slidebitch-> slow_mo (cmd);
variables.h:
bool glitch_bool;