-
Автор темы
- #1
Код:
bool landed = false;
if (!(g_LocalPlayer->m_fFlags() & 1)) {
if (!lastjumping) {
jump_positions[0] = Vector(g_LocalPlayer->GetRenderOrigin());
jspre = round(g_LocalPlayer->m_vecVelocity().Length2D());
}
lastjumping = true;
return;
}
else if (g_LocalPlayer->m_fFlags() & 1) {
if (lastjumping) {
landed = true;
jump_positions[1] = Vector(g_LocalPlayer->GetRenderOrigin());
}
lastjumping = false;
}
if (!landed)
return;
auto substract = [](Vector first, Vector second) -> Vector {
Vector beb;
beb.x = first.x - second.x;
beb.y = first.y - second.y;
beb.z = first.z - second.z;
return beb;
};
Vector sub = substract(jump_positions[1], jump_positions[0]);
float dist = ((sqrt(sub.x * sub.x + sub.y * sub.y) + 31.f) * 100.f) / 100.f;
if (g_LocalPlayer->m_fFlags() & (1 << 1))
dist += 5.f;
if (dist > 200) {
char sz[256];
sprintf_s(sz, " \x08[""\x07""BIBRA\x08] lj: %.3f units | pre: %.1f", dist, jspre);
g_ChatElement->ChatPrintf(0, CHudChat::ChatFilters::CHAT_FILTER_NONE, sz);
}
this->_Mypari._Myval2._Myhead было 0xC385B988
тута
креатмуви до старта предикта