Начинающий
-
Автор темы
- #1
lol again.
now this premium feature coded by sharklaser1 cost us 150$
now this premium feature coded by sharklaser1 cost us 150$
C++:
void CTickbaseExploits::BreakLagCompensation( SDK::CUserCmd* pCmd )
{
// check on enabled double tap exploit.
// not on hide shoot lol.
if ( g_Exploits->m_nExploitsType == 1 )
return;
// CPlayerRunCommand::TicksAllowed.
// but i am use it for apply double tap shift after peeking.
static auto nTicksAllowedAfterPeek = 0;
if ( g_Exploits->m_bLocalIsPeeking )
{
// set shift amount.
g_Exploits->m_nShiftAmount = 13;
// set next shift amount.
g_Exploits->m_nNextShiftAmount = std::max( 9, g_Exploits->m_nShiftAmount );
// increase next shift amount for correct flSimulationTime and flOldSimulationTime check.
--g_Exploits->m_nNextShiftAmount;
}
else
{
// apply CPlayerRunCommand::TicksAllowed.
if ( g_Exploits->m_nTicksAllowed > 17 )
nTicksAllowedAfterPeek = g_Exploits->m_nTicksAllowed - 1;
else
nTicksAllowedAfterPeek = g_Exploits->m_nTicksAllowed;
if ( nTicksAllowedAfterPeek >= 0 )
nTicksAllowedAfterPeek = g_Exploits->m_nTicksAllowed - g_Exploits->m_nShiftAmount;
}
}