How to improve this bruteforce resolver

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
19 Май 2019
Сообщения
18
Реакции
2
I don't have people to teach me the right to improve a resolver and I'm also very new to it, I'm trying to improve this solution for the weave but I always miss it.

sorry for google translate

void CResolver::De2(IBasePlayer* player)
{
if (!csgo->local->isAlive())
return;
const auto info = csgo->weapon->GetCSWpnData();
int idx = player->GetIndex();
auto animState = player->GetPlayerAnimState();
float m_flFakeGoalFeetYaw[65];
// Rebuild setup velocity to receive flMinBodyYaw and flMaxBodyYaw
Vector velocity = player->GetVelocity();
float spd = velocity.LengthSqr();
if (spd > std::powf(1.2f * 260.0f, 2.f)) {
Vector velocity_normalized = velocity.Normalize();
velocity = velocity_normalized * (1.2f * 260.0f);
}

float v25 = clamp(player->GetDuckSpeed() + animState->m_fLandingDuckAdditiveSomething, 0.0f, 1.0f);
float v26 = animState->m_fDuckAmount;
float v27 = csgo->client_state->iChokedCommands * 6.0f;
float v28;

// clamp
if ((v25 - v26) <= v27) {
if (-v27 <= (v25 - v26))
v28 = v25;
else
v28 = v26 - v27;
}
else {
v28 = v26 + v27;
}

float GetDuckAmount = clamp(v28, 0.0f, 1.0f);

Vector animationVelocity = GetSmoothedVelocity(csgo->client_state->iChokedCommands * 2000.0f, velocity, player->GetVelocity());
float speed = std::fminf(animationVelocity.Length(), 260.0f);

auto weapon = player->GetWeapon();

float flMaxMovementSpeed = 260.0f;
if (weapon) {
float max_speed = weapon->GetZoomLevel() == 0 ? info->m_flMaxSpeed : info->m_flMaxSpeedAlt;
flMaxMovementSpeed = std::fmaxf(max_speed, 0.001f);
}
float m_flGroundFraction = *(float*)(animState + 0x11C);
float flRunningSpeed = speed / (flMaxMovementSpeed * 0.520f);
float flDuckingSpeed = speed / (flMaxMovementSpeed * 0.340f);

flRunningSpeed = clamp(flRunningSpeed, 0.0f, 1.0f);

float flYawModifier = (((m_flGroundFraction * -0.3f) - 0.2f) * flRunningSpeed) + 1.0f;
if (GetDuckAmount > 0.0f) {
float flDuckingSpeed = clamp(flDuckingSpeed, 0.0f, 1.0f);
flYawModifier += (GetDuckAmount * flDuckingSpeed) * (0.5f - flYawModifier);
}

float flMinBodyYaw = std::fabsf(((float)(uintptr_t(animState) + 0x330)) * flYawModifier);
float flMaxBodyYaw = std::fabsf(((float)(uintptr_t(animState) + 0x334)) * flYawModifier);

float flEyeYaw = player->GetEyeAngles().y;
float flEyeDiff = std::remainderf(flEyeYaw - m_flFakeGoalFeetYaw[player->EntIndex()], 360.f);

if (flEyeDiff <= flMaxBodyYaw) {
if (flMinBodyYaw > flEyeDiff)
m_flFakeGoalFeetYaw[player->EntIndex()] = fabs(flMinBodyYaw) + flEyeYaw;
}
else {
m_flFakeGoalFeetYaw[player->EntIndex()] = flEyeYaw - fabs(flMaxBodyYaw);
}

m_flFakeGoalFeetYaw[player->EntIndex()] = std::remainderf(m_flFakeGoalFeetYaw[player->EntIndex()], 360.f);

if (speed > 0.1f || fabs(velocity.z) > 100.0f) {
m_flFakeGoalFeetYaw[player->EntIndex()] = ApproachAngle(
flEyeYaw,
m_flFakeGoalFeetYaw[player->EntIndex()],
((m_flGroundFraction * 20.0f) + 30.0f)
* csgo->client_state->iChokedCommands);
}
else {
m_flFakeGoalFeetYaw[player->EntIndex()] = ApproachAngle(
player->GetLBY(),
m_flFakeGoalFeetYaw[player->EntIndex()],
csgo->client_state->iChokedCommands * 100.0f);
}

float Left = flEyeYaw + flMinBodyYaw;
float Right = flEyeYaw + flMaxBodyYaw;

float resolveYaw;

switch (csgo->missedshots[player->EntIndex()] % 2) {
case 0: // brute left side
ResolverMode[idx] = "A";
resolveYaw = Left;
break;
case 1: // brute fake side
ResolverMode[idx] = "B";
resolveYaw = m_flFakeGoalFeetYaw[player->EntIndex()];
break;
case 2: // brute right side
ResolverMode[idx] = "C";
resolveYaw = Right;
break;
default:
break;
}

animState->m_flGoalFeetYaw = resolveYaw;
}
 
ctrl + a + del
 
add logic lmao or just anti freestand tbh hvh is nothing but a cointoss anymore with all the exploits having a resolver is whatever unless you wanna scout tbh dont even bother just get doubletap and a decent antiaim system and ur done
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
m_flFakeGoalFeetYaw[pEnt->EntIndex()] ??

Use just get max desync delta
 
use anti freestanding to try get the enemy desync side also use logic also bruteforce shouldnt always be used on as a reserve you should make a jitter resolver aswell
 
The rule is simple: if you don't know C ++ or the same basics as C ++, don't try to improve your resolver. Stop begging and try to learn first. When you are done learning C ++, you start trying to understand each feature and its functionality. When you finish learning, you can automatically think of new ideas on how to use the logic to improve some part of the code. The main important part is: understanding what you are doing. Do not do this type of posting. The reason why this forum has some low quality topics is because people don't know what they're doing, but they still try to do something complex without any knowledge.
 
Последнее редактирование:
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
ну вообще то икфакоф ну ладно
Это антипаста была, ок? А solpadoin с shitcoder такие типо аа это важная часть в бухте икфака, брутя третью фейковую сторону какую то, хотя у десинка их две.
 
Это антипаста была, ок? А solpadoin с shitcoder такие типо аа это важная часть в бухте икфака, брутя третью фейковую сторону какую то, хотя у десинка их две.
......
Этот фейкгоалфитяв пытается задетектить сторону десинка исходя из ребилба сетапвелосити, антипаста была в самом получении этого самого фейкгоалфитяв
upd : какая нахуй десинк дельта, посмотри код фейкгоалфитяв при определнных условиях принимает те или иные значения, он пытается найти тот самый фейксайд
 
Последнее редактирование:
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
@ikfakof
ну я блять тебя нихуя не понял,что тут собственно неправильного ????
он умер
1594298453817.png
 
Назад
Сверху Снизу