unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Other FPS Games > Crysis

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 02-23-2010, 08:39 PM
disco disco is offline
Administrator
 
Join Date: Feb 2010
Posts: 271
Default GetBoneOrigin (for Crysis Wars)

Posted by root..



Refering to this thread: http://www.uc-forum.com/forum/crysis...basic-esp.html

R4z8r is using GetBoneById to get the Bone Position.
This Function has been removed, so here is an updated Version:

Code:
Vec3 Infinium::GetBoneOrigin( IActor* player, const char* boneName )
{
    IEntity * playerEnt = player->GetEntity();
    if(!playerEnt->GetCharacter(0))
        return Vec3(0,0,0);

    ICharacterInstance * pChar = playerEnt->GetCharacter(0);
    if(!pChar)
        return Vec3(0,0,0);

    ISkeletonPose* pSkeleton = pChar->GetISkeletonPose();
    if(!pSkeleton)
        return Vec3(0,0,0);

    uint16 bone = pSkeleton->GetJointIDByName(boneName);
    Vec3 vAdd = pSkeleton->GetAbsJointByID(bone).t;

    return (playerEnt->GetWorldPos() + vAdd);
}
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
crysis, getboneorigin, wars

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 06:47 AM.