Affichage des articles dont le libellé est bone. Afficher tous les articles
Affichage des articles dont le libellé est bone. Afficher tous les articles

mercredi 12 mars 2014

[Coding] Internal Bone Aimbot topic




func to get hitbox

PHP Code:







Vector __cdecl GetHitboxVec(__in CBaseEntity *pEnt__in int iHitbox)
{
    
mstudiobbox_t *pStudioTransform NULL;
    
matrix3x4a_t mBoneTransform[128]; // MAXSTUDIOBONES
    
studiohdr_t *pStudioHeader NULL;
    
Vector vHitboxvMaxvMin;
    const 
model_t *model;
 
    if(
pEnt && pEnt->SetupBones(mBoneTransformMAXSTUDIOBONESBONE_USED_BY_HITBOX0.f)) {
        
model pEnt->GetModel();
        if(
modelpStudioHeader pModel->GetStudiomodel(model);  
        if(
pStudioHeader) {
            
// never gets executed
            
Warning("pStudioHeader not null!\n");
            
pStudioTransform pStudioHeader->pHitbox(iHitbox0);
            
VectorTransform(pStudioTransform[iHitbox].bbminmBoneTransform[iHitbox], vMin);
            
VectorTransform(pStudioTransform[iHitbox].bbmaxmBoneTransform[iHitbox], vMax);
            
vHitbox = (vMin vMax) * 0.5f;
        }
    }
    return 
vHitbox;










code in my aimbot loop to get ent

PHP Code:







IClientEntity *pTemp pEntity->GetClientEntity(i);
if(
pTemp) {
    
CBaseEntity *pCheck pTemp->GetBaseEntity();
    ...
    
pAimAt pCheck;
    ... 









why does GetStudiomodel fail? D:





lundi 10 mars 2014

[Help] Reading bone internal crash :-( topic




Hello i've been trying to draw/get bone pos, in my internal hack but it always crash :/
(i tried on my overlay and it does work so my offset are right)
note : this is on an emu.

Here is my code actually :


Code:


//getting Skeleton and bone coeff from Cplayer class
D3DXMATRIX GetCoeff( void)
        {
                return *(D3DXMATRIX*)( ( DWORD )( this ) + 0xF84 );
        }
        CSkeleton* getSkeleton( void )
    {
        return ( CSkeleton* )( ( DWORD )( this ) + 0xDB4 );
    }


Getting my bones pos :

Code:


D3DXVECTOR3 CEngine::GetBonePos(CPlayer *pPlayer, INT i)
{
       
        CSkeleton * m_Skeleton = pPlayer->getSkeleton();

        if ( !VALID( pPlayer ) || !VALID( m_Skeleton )  )
                return D3DXVECTOR3( 0, 0, 0 );

        if ( !VALID( m_Skeleton->BonePtr ) )
                return D3DXVECTOR3( 0, 0, 0 );
       
        D3DXVECTOR3 Pos;
        D3DXMATRIX v6, v7, BoneMatrix;
        D3DXMATRIX BoneCoeff;

        D3DXMatrixRotationYawPitchRoll( &v6, 0.0, 1.570796251296997, 0.0 );
        BoneMatrix = m_Skeleton->BonePtr->pBones[i].BoneMatrix;


        BoneCoeff = pPlayer->GetCoeff();
        D3DXMatrixMultiply( &BoneMatrix, &BoneMatrix, &BoneCoeff );
        D3DXMatrixMultiply( &v7, &v6, &BoneMatrix );

        Pos.x = v7._41;
        Pos.y = v7._42;
        Pos.z = v7._43;

        return Pos;
}


if any of you could help :S





lundi 10 février 2014

[Help] Bone read causing crash topic




hello i'm trying to make a bone esp but i'm having a issue..

I'm using this classes:


Code:


class CBone
{
public:
    char*      m_BoneName;    //0x00 
    char        pad_04[136];      //0x04
    D3DXMATRIX  BoneMatrix;  //0x8C 
    D3DXMATRIX  SomeMatrix;  //0xCC 
};


class CBoneInfo
{
public:
    char      pad_00[20];
    DWORD      oneNum;          //0x18
    CBone*    pBones;            //0x1C
};


class CSkeleton
{
public:
    char      pad_00[40];
    CBoneInfo* BonePtr;        //0x28
};

class CPlayer
{
public:
    char _0x0000[36];
    D3DXVECTOR3 m_Position; //0x0024
    char _0x0030[16];
    D3DXVECTOR3 m_vMuzzlePosition; //0x0040
    char _0x004C[908];
    DWORD m_NameXor; //0x03D8
    char _0x03DC[60];
    __int32 m_NameLength; //0x0418
    char _0x041C[132];
    __int32 backpackItemID; //0x04A0
    __int32 alive_state; //0x04A4
    char _0x04A8[12];
    float m_iHealth; //0x04B4
    char _0x04B8[3392];
    CSkeleton* m_Skeleton; //0x11F8
    char _0x11FC[36];
    //    CWeaponInfo* m_pWeaponPrimary; //0x1220
    //CWeaponInfo* m_pWeaponSecondary; //0x1224
    char _0x1228[32];
    float m_flPickupTime; //0x1248
    char _0x124C[96];
    D3DXVECTOR3 m_Movement; //0x12AC
    char _0x12B8[4];
    float m_cameraHeight; //0x12BC
    float m_stamina; //0x12C0
    char _0x12C4[16];
    __int32 SniperTest1; //0x12D4
    __int32 SniperTest2; //0x12D8
    char _0x12DC[28];
    DWORD m_bDead; //0x12F8
    char _0x12FC[36];
    float m_jumpHeight; //0x1320
    char _0x1324[16];
    D3DXVECTOR3 m_vRecoilCameraAngles; //0x1334
    char _0x1340[116];
    float m_yaw; //0x13B4
    float m_pitch; //0x13B8
    char _0x13BC[4];
    float m_fSpeedStrafe; //0x13C0
    char _0x13C4[4];
    float m_fSpeed; //0x13C8
    char _0x13CC[92];
    D3DXMATRIX m_BoneCoeff; //0x1428
    char _0x1468[24];
};


and this to read:


Code:


CPlayer Player = p_MemProc->read<CPlayer>(PlayerAddress);
BoneMatrix = Player.m_Skeleton->BonePtr->pBones[1].BoneMatrix;


but when it runs it crash on the 2 line.. someone can help me?

thx