Welcome, Guest.

Author Topic: Solution to find the headhitboxnum  (Read 147 times)

Offline asdqwe1548

  • Level 1 - Noob
  • *
  • Posts: 11
    • View Profile
  • Korea, Republic of
Solution to find the headhitboxnum
« on: August 19, 2018, 04:12:29 am »
so this is actually from dudes cheat (creds to dude).
but its not working anymore...
is the method outdated or am i just retarded?

Code:
studiohdr_t *hdr = g_pModelInfo->GetStudiomodel(pPlayer->model);
   if (!hdr)
      return -1;
   mstudiobone_t* bone;
   for (int k = 0; k < hdr->numbones; k++)
   {
      bone = hdr->pBone(k);
      if ((bone && (bone->flags & (BONE_USED_BY_HITBOX)) && (bone->parent != -1)))
      {
         char* boneName = bone->pszName();
         string name(boneName);
         size_t found = name.find("Head");
         if (found != string::npos)
            return k;
      }
   }
   return -1;




Total Members


  • Youtube Youtube
  • Facebook Facebook
  • Twitter Twitter
  • Steam Steam

  • Powered by SMF | SMF © 2018, Simple Machines

    2018 BigPackets. All rights reserved. All other trademarks, logos and copyrights are the property of their respective owners. This site is not associated with any company in any way.