get good get legendware
-
Автор темы
- #1
hello ruskies
since i kept cringing seeing people scanning and running autowall code on unhittable players and wasting fps i wanted to fix that, i came up with this solution in about 30 minutes so lets start
make sure you first force player records before calling this function like so
now lets write our cool ShouldScan function
how to use it?
congratulations now you're one step closer to making your own skeet
since i kept cringing seeing people scanning and running autowall code on unhittable players and wasting fps i wanted to fix that, i came up with this solution in about 30 minutes so lets start
make sure you first force player records before calling this function like so
C++:
/* set record */
g_LagComp->ForcePlayerRecord(player, record);
C++:
bool aimbot::ShouldScanPlayer(float ticks_to_stop, LagRecord_t* record, player_t* player)
{
if (!player || !record)
return false;
// this is our predicted eye pos to see if we can hit our enemy in our next tick.
Vector predicted_eye_pos = g_LocalAnimations->GetShootPosition() + g_EnginePrediction->GetUnpredictedData()->m_vecVelocity * m_globals()->m_intervalpertick * ticks_to_stop;
std::vector<int> hitboxesToScan = { HITBOX_HEAD, HITBOX_RIGHT_HAND, HITBOX_LEFT_HAND, HITBOX_LEFT_FOOT, HITBOX_RIGHT_FOOT, HITBOX_STOMACH };
for (int CurrentHbox : hitboxesToScan)
{
Vector m_pos = player->hitbox_position_matrix(CurrentHbox, record->m_Matricies[MiddleMatrix].data());
penetration::PenetrationInput_t in;
in.m_damage = 1.f;
in.m_damage_pen = 1.f;
in.m_can_pen = true;
in.m_target = player;
in.m_from = g_ctx.local();
in.m_pos = m_pos;
in.m_custom_shoot_pos = predicted_eye_pos;
penetration::PenetrationOutput_t out;
if (penetration::get().run(&in, &out))
{
if (out.m_damage > 0)
return true;
}
}
return false;
}
C++:
/* set record */
g_LagComp->ForcePlayerRecord(player, record);
if (!g_Ragebot->ShouldScanPlayer(8, record, player))
return false;
Последнее редактирование: