Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CAimbot::autozeus(SDK::CUserCmd *cmd) {
- for (int i = 1; i < 65; i++)
- {
- auto entity = Interfaces::ClientEntityList->GetClientEntity(i);
- auto local_player = Interfaces::ClientEntityList->GetClientEntity(Interfaces::Engine->GetLocalPlayer());
- if (!entity)
- continue;
- if (!local_player)
- continue;
- bool is_local_player = entity == local_player;
- bool is_teammate = local_player->GetTeam() == entity->GetTeam() && !is_local_player;
- if (is_teammate)
- continue;
- if (is_local_player)
- continue;
- if (entity->GetHealth() <= 0)
- continue;
- if (local_player->GetHealth() <= 0)
- continue;
- // if (local_player->GetTeam() == is_teammate)
- // continue;
- auto weapon = reinterpret_cast<SDK::CBaseWeapon*>(Interfaces::ClientEntityList->GetClientEntity(local_player->GetActiveWeaponIndex()));
- if (!weapon)
- continue;
- if (weapon->GetItemDefenitionIndex() == SDK::WEAPON_TASER) //
- {
- if (can_shoot(cmd))
- {
- int bone = zeus_hitbox(entity); //you can change this but keep in mind this has range stuff. it only has pelvis as a bone but why do other stuff really it will make it inaccurate shooting at arms and legs if they arent resolved right
- if (bone != 1)
- {
- Vector fucknigga = get_hitbox_pos(entity, bone);
- Vector local_position = local_player->GetVecOrigin() + local_player->GetViewOffset();
- if (fucknigga != Vector(0, 0, 0))
- {
- SDK::trace_t trace;
- autowall->UTIL_TraceLine1(local_position, fucknigga, MASK_SOLID, local_player, 0, &trace);
- SDK::player_info_t info;
- if (!(Interfaces::Engine->GetPlayerInfo(trace.m_pEnt->GetIndex(), &info)))
- continue;
- if (fucknigga != Vector(0, 0, 0))
- {
- cmd->viewangles = MATH::NormalizeAngle(UTILS::CalcAngle(local_position, fucknigga));
- GLOBAL::should_send_packet = true;
- cmd->buttons |= IN_ATTACK;
- }
- }
- }
- }
- continue;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement