-
Автор темы
- #1
dont bully :(
firstly u need replace ur trash GetEyePosition or u will miss
it's somewhere in i_base_player.cpp
fakeduck code
ik im late
firstly u need replace ur trash GetEyePosition or u will miss
it's somewhere in i_base_player.cpp
Код:
Vector IBasePlayer::GetEyePosition()
{
if (vars.antiaim.fakeduck->active && this->EntIndex() == interfaces.engine->GetLocalPlayer()) {
auto origin = GetOrigin();
auto vDuckHullMin = interfaces.game_movement->GetPlayerMins(true);
auto vStandHullMin = interfaces.game_movement->GetPlayerMins(false);
float fMore = (vDuckHullMin.z - vStandHullMin.z);
auto vecDuckViewOffset = interfaces.game_movement->GetPlayerViewOffset(true);
auto vecStandViewOffset = interfaces.game_movement->GetPlayerViewOffset(false);
float duckFraction = GetDuckAmount();
float tempz = ((vecDuckViewOffset.z - fMore) * duckFraction) +
(vecStandViewOffset.z * (1 - duckFraction));
origin.z += tempz;
return origin;
}
return GetOrigin() + GetVecViewOffset();
}
Код:
void FakeDuck(bool& send_packet)
{
csgo->cmd->buttons |= IN_BULLRUSH; // force IN_BULLRUSH
if (vars.antiaim.fakeduck->active && csgo->local->GetFlags() & FL_ONGROUND) {
if (csgo->client_state->iChokedCommands <= 14 / 2) {
send_packet = csgo->client_state->iChokedCommands >= 14;
csgo->cmd->buttons &= ~IN_DUCK;
}
else {
send_packet = csgo->client_state->iChokedCommands >= 14;
csgo->cmd->buttons |= IN_DUCK;
}
}
}