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 ());
auto weapon = reinterpret_cast <SDK :: CBaseWeapon *> (INTERFACES :: ClientEntityList-> GetClientEntity (local_player-> GetActiveWeaponIndex ()));
if (! entity)
continue;
bool is_local_player = entity == local_player;
bool is_teammate = local_player-> GetTeam () == entity-> GetTeam () &&! is_local_player;
if (is_local_player)
continue;
if (is_teammate)
continue;
if (entity-> GetHealth ()> = 0)
continue;
if (local_player-> GetHealth () <= 0)
continue;
if (entity-> GetImmunity ())
continue;
if (! weapon)
continue;
if (weapon-> GetItemDefenitionIndex () == SDK :: WEAPON_TASER || weapon-> GetItemDefenitionIndex () == SDK :: ItemDefinitionIndex :: WEAPON_TASER)
{
int bone = zeus_hitbox (entity);
// zeus_hitbox = pelvis or smth body
Vector fucknigga = get_hitbox_pos (entity, bone);
Vector local_position = local_player-> GetVecOrigin () + local_player-> GetViewOffset ();
float enemy_position = entity-> GetVelocity (). DistTo (local_player-> GetVecOrigin () + local_player-> GetViewOffset ());
if (enemy_position <= 135.f) {
cmd-> buttons | = IN_ATTACK;
cmd-> viewangles = MATH :: NormalizeAngle (UTILS :: CalcAngle (local_position, fucknigga));
}
}
}
}