-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
go to config.h
go to key_binds.cpp
go to hooked_createmove.cpp and
find airstrafe::get().create_move(m_pcmd); or engineprediction::get().setup();
paste after them
Go to menu.cpp
Код:
key_bind jumpbug_key;
Код:
void key_binds::update_key_binds()
{
update_key_bind(&g_cfg.misc.jumpbug_key, 28);
}
find airstrafe::get().create_move(m_pcmd); or engineprediction::get().setup();
paste after them
Код:
if (key_binds::get().get_key_bind_state(28))
{
if (g_ctx.local()->m_fFlags() & FL_ONGROUND) {
g_cfg.misc.bunnyhop = false;
bool unduck = g_ctx.get_command()->m_buttons &= ~IN_DUCK;
if (unduck) {
g_ctx.get_command()->m_buttons &= ~IN_DUCK; // duck
g_ctx.get_command()->m_buttons |= IN_JUMP; // jump
unduck = false;
}
Vector pos = g_ctx.local()->abs_origin();
for (float a = 0.f; a < max_radias; a += step) {
Vector pt;
pt.x = (xThick * cos(a)) + pos.x;
pt.y = (xThick * sin(a)) + pos.y;
pt.z = pos.z;
Vector pt2 = pt;
pt2.z -= 8192;
trace_t fag;
Ray_t ray;
ray.Init(pt, pt2);
CTraceFilter flt;
flt.pSkip = g_ctx.local();
m_trace()->TraceRay(ray, MASK_PLAYERSOLID, &flt, &fag);
if (fag.fraction != 1.f && fag.fraction != 0.f) {
g_ctx.get_command()->m_buttons |= IN_DUCK; // duck
g_ctx.get_command()->m_buttons &= ~IN_JUMP; // jump
unduck = true;
}
}
for (float a = 0.f; a < max_radias; a += step) {
Vector pt;
pt.x = ((xThick - 2.f) * cos(a)) + pos.x;
pt.y = ((xThick - 2.f) * sin(a)) + pos.y;
pt.z = pos.z;
Vector pt2 = pt;
pt2.z -= 8192;
trace_t fag;
Ray_t ray;
ray.Init(pt, pt2);
CTraceFilter flt;
flt.pSkip = g_ctx.local();
m_trace()->TraceRay(ray, MASK_PLAYERSOLID, &flt, &fag);
if (fag.fraction != 1.f && fag.fraction != 0.f) {
g_ctx.get_command()->m_buttons |= IN_DUCK; // duck
g_ctx.get_command()->m_buttons &= ~IN_JUMP; // jump
unduck = true;
}
}
for (float a = 0.f; a < max_radias; a += step) {
Vector pt;
pt.x = ((xThick - 20.f) * cos(a)) + pos.x;
pt.y = ((xThick - 20.f) * sin(a)) + pos.y;
pt.z = pos.z;
Vector pt2 = pt;
pt2.z -= 8192;
trace_t fag;
Ray_t ray;
ray.Init(pt, pt2);
CTraceFilter flt;
flt.pSkip = g_ctx.local();
m_trace()->TraceRay(ray, MASK_PLAYERSOLID, &flt, &fag);
if (fag.fraction != 1.f && fag.fraction != 0.f) {
g_ctx.get_command()->m_buttons |= IN_DUCK; // duck
g_ctx.get_command()->m_buttons &= ~IN_JUMP; // jump
unduck = true;
}
}
}
else g_cfg.misc.bunnyhop = true;
}
Код:
draw_keybind(crypt_str("Jump bug"), &g_cfg.misc.jumpbug_key, crypt_str("##JUMPBUG__HOTKEY"));
Go to structs.cpp and paste code
Код:
Vector entity_t::abs_origin()
{
return call_virtual<Vector& (__thiscall*)(void*)>(this, 10)(this);
}