Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CAimbot::zeusbot(SDK::CUserCmd *cmd)
- {
- int i = 1;
- auto local_player = INTERFACES::ClientEntityList->GetClientEntity(INTERFACES::Engine->GetLocalPlayer());
- Vector local_position = local_player->GetVecOrigin() + local_player->GetViewOffset();
- auto entity = INTERFACES::ClientEntityList->GetClientEntity(i);
- Vector scan_point;
- auto weapon = reinterpret_cast<SDK::CBaseWeapon*>(INTERFACES::ClientEntityList->GetClientEntity(local_player->GetActiveWeaponIndex()));
- if (SETTINGS::settings.zeus_bot)
- {
- if (weapon->GetItemDefenitionIndex() == SDK::ItemDefinitionIndex::WEAPON_TASER)
- {
- Vector zeus_point;
- float zeushitdist = 180;
- float pos_distance = local_position.DistTo(scan_point);
- zeus_point = get_hitbox_pos(entity, 3);
- if (pos_distance > zeushitdist)
- {
- cmd->buttons |= IN_ATTACK;
- }
- cmd->viewangles = MATH::NormalizeAngle(UTILS::CalcAngle(local_position, zeus_point));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement