hlsdk

hlsdk

Jan 22nd, 2010
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. /*  ***WHAT IS THIS??!?!?!?***
  2.     for (int i=0;i<clientEntList->GetHighestEntityIndex();i++)
  3.     {
  4.         player_info_t pinfo;
  5.         engine->GetPlayerInfo(i, &pinfo);
  6.  
  7.         if(i>31 || pinfo.name[0] == NULL)
  8.             continue;
  9.  
  10.         if (clientEntList->GetClientEntity(i))
  11.         {
  12.             IClientEntity* ClientEntity = clientEntList->GetClientEntity(i);
  13.             Vector* pVec = MakePointer<Vector>((DWORD)ClientEntity->GetBaseEntity(),0x2C8);
  14.             int t[3] = { pVec->x, pVec->y, pVec->z };
  15.             Msg("Player: %d \t%s \t%d \t%d \t%d\n", i, pinfo.name, t[0], t[1], t[2]);
  16.             if (GetAsyncKeyState(VK_HOME)&1)
  17.             {
  18.                 engineClient->SetViewAngles(Aim(pVec));
  19.             }
  20.         }
  21.     }
  22. */
Advertisement
Add Comment
Please, Sign In to add comment