Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. void CAimbot::zeusbot(SDK::CUserCmd *cmd)
  2. {
  3. int i = 1;
  4. auto local_player = INTERFACES::ClientEntityList->GetClientEntity(INTERFACES::Engine->GetLocalPlayer());
  5. Vector local_position = local_player->GetVecOrigin() + local_player->GetViewOffset();
  6. auto entity = INTERFACES::ClientEntityList->GetClientEntity(i);
  7. Vector scan_point;
  8. auto weapon = reinterpret_cast<SDK::CBaseWeapon*>(INTERFACES::ClientEntityList->GetClientEntity(local_player->GetActiveWeaponIndex()));
  9. if (SETTINGS::settings.zeus_bot)
  10. {
  11.  
  12.  
  13. if (weapon->GetItemDefenitionIndex() == SDK::ItemDefinitionIndex::WEAPON_TASER)
  14. {
  15. Vector zeus_point;
  16. float zeushitdist = 180;
  17. float pos_distance = local_position.DistTo(scan_point);
  18. zeus_point = get_hitbox_pos(entity, 3);
  19.  
  20. if (pos_distance > zeushitdist)
  21. {
  22. cmd->buttons |= IN_ATTACK;
  23. }
  24.  
  25. cmd->viewangles = MATH::NormalizeAngle(UTILS::CalcAngle(local_position, zeus_point));
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement