-
Автор темы
- #1
i dont know how to name it, just watch video.
everything is fine except the first shot..
how to fix it please help...
VIDEO:
my cl_move dt code:
hooking this function with sig: 55 8B EC 81 EC ? ? ? ? 53 56 8A
everything is fine except the first shot..
how to fix it please help...
VIDEO:
Пожалуйста, авторизуйтесь для просмотра ссылки.
my cl_move dt code:
C++:
bool misc::double_tap(CUserCmd* m_pcmd) {
static auto lastdoubletaptime = 0;
if (!vars.ragebot.double_tap_key.key) {
csgo.globals.shift_ticks = 0;
return false;
}
if (!vars.ragebot.double_tap)
return false;;
if (key_binds::get().get_key_bind_state(12))
{
csgo.globals.shift_ticks = 0;
return false;
}
csgo.globals.tickbase_shift = 0;
auto weapon = csgo.local()->m_hActiveWeapon();
if (!(m_pcmd->m_buttons & IN_ATTACK) && csgo.globals.tocharge < csgo.globals.weapon->get_max_tickbase_shift() + 2 && csgo.globals.fixed_tickbase - lastdoubletaptime > TIME_TO_TICKS(0.75f)) {
csgo.globals.startcharge = true;
csgo.globals.tochargeamount = csgo.globals.weapon->get_max_tickbase_shift() + 2;
}
else {
csgo.globals.startcharge = false;
}
if (csgo.globals.tocharge > csgo.globals.weapon->get_max_tickbase_shift() + 2)
csgo.globals.shift_ticks = csgo.globals.tocharge - csgo.globals.weapon->get_max_tickbase_shift() + 2;
if (weapon && (m_pcmd->m_buttons & IN_ATTACK || (m_pcmd->m_buttons & IN_ATTACK2 && weapon->is_knife())) && csgo.globals.tocharge == csgo.globals.weapon->get_max_tickbase_shift() + 2) {
if ((m_pcmd->m_buttons & IN_ATTACK2 && weapon->is_knife()) || weapon->is_grenade() || weapon->m_iItemDefinitionIndex() == WEAPON_TASER)
{
lastdoubletaptime = csgo.globals.fixed_tickbase;
csgo.globals.shift_ticks = 0;
}
else {
lastdoubletaptime = csgo.globals.fixed_tickbase;
csgo.globals.shift_ticks = csgo.globals.weapon->get_max_tickbase_shift() + 2;
}
}
}
C++:
void __cdecl hooks::Hooked_CLMove(float flAccumulatedExtraSamples, bool bFinalTick)
{
if (csgo.globals.fakeducking)
return (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));
/*
if (!vars.ragebot.double_tap_key.key) {
csgo.globals.shift_ticks = 0;
return (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));
}
*/
if (csgo.globals.startcharge && csgo.globals.tocharge < csgo.globals.tochargeamount)
{
csgo.globals.tocharge++;
csgo.globals.ticks_allowed = csgo.globals.tocharge;
m_globals()->m_interpolation_amount = 0.f;
return;
}
(clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));
while (csgo.globals.shift_ticks)
{
csgo.globals.isshifting = true;
csgo.globals.shift_ticks--;
csgo.globals.tocharge--;
(clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));
}
csgo.globals.isshifting = false;
//return (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));
}