Page 1 of 3 123 LastLast
Results 1 to 15 of 43
  1. #1
    xbeatsszzx's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Behind a dumpster jerking off. xD jks
    Posts
    2,519
    Reputation
    13
    Thanks
    1,508
    My Mood
    Asleep

    2D Bounding Boxes

    Here you go

    Code:
    static Vec4 Vec4Transform( Vec4 In, Mat4 pm )
        {
            Vec4 Out;
    
            Out.x = pm.m_rows[0].x * In.x + pm.m_rows[1].x * In.y + pm.m_rows[2].x * In.z + pm.m_rows[3].x;
            Out.y = pm.m_rows[0].y * In.x + pm.m_rows[1].y * In.y + pm.m_rows[2].y * In.z + pm.m_rows[3].y;
            Out.z = pm.m_rows[0].z * In.x + pm.m_rows[1].z * In.y + pm.m_rows[2].z * In.z + pm.m_rows[3].z;
            Out.w = pm.m_rows[0].w * In.x + pm.m_rows[1].w * In.y + pm.m_rows[2].w * In.z + pm.m_rows[3].w;
    
            return Out;
        }
    
        static Vec4 Vec4Transform( Vec4 In, LinearTransform pm )
        {
            Vec4 Out;
    
            Out.x = pm.left.x * In.x + pm.up.x * In.y + pm.forward.x * In.z + pm.trans.x;
            Out.y = pm.left.y * In.x + pm.up.y * In.y + pm.forward.y * In.z + pm.trans.y;
            Out.z = pm.left.z * In.x + pm.up.z * In.y + pm.forward.z * In.z + pm.trans.z;
            Out.w = pm.left.w * In.x + pm.up.w * In.y + pm.forward.w * In.z + pm.trans.w;
    
            return Out;
        }
    
        static Vec3 Vec3Transform( Vec3 In, Mat4 pm )
        {
            Vec3 Out;
    
            Out.x = pm.m_rows[0].x * In.x + pm.m_rows[1].x * In.y + pm.m_rows[2].x * In.z + pm.m_rows[3].x;
            Out.y = pm.m_rows[0].y * In.x + pm.m_rows[1].y * In.y + pm.m_rows[2].y * In.z + pm.m_rows[3].y;
            Out.z = pm.m_rows[0].z * In.x + pm.m_rows[1].z * In.y + pm.m_rows[2].z * In.z + pm.m_rows[3].z;
    
            return Out;
        }
    
        static Vec3 Vec3Transform( Vec3 In, LinearTransform pm )
        {
            Vec3 Out;
    
            Out.x = pm.left.x * In.x + pm.up.x * In.y + pm.forward.x * In.z + pm.trans.x;
            Out.y = pm.left.y * In.x + pm.up.y * In.y + pm.forward.y * In.z + pm.trans.y;
            Out.z = pm.left.z * In.x + pm.up.z * In.y + pm.forward.z * In.z + pm.trans.z;
    
            return Out;
        }  
    
    Code:
    dice::AxisAlignedBox GetSoldierBounds( dice::ClientSoldierEntity* pEntity, bool CenterBounds = false ) { dice::AxisAlignedBox AABB; dice::LinearTransform AAWorldTransform; pEntity->computeBoundingBox( &AABB ); pEntity->computeBoundingBoxWorldTransform( &AAWorldTransform ); dice::AxisAlignedBox R; R.min = dice::Vec3Transform( AABB.min, AAWorldTransform ); R.max = dice::Vec3Transform( AABB.max, AAWorldTransform ); if( CenterBounds ) { R.min.x = pEntity->m_cameraLocalSpace.trans.x; R.min.z = pEntity->m_cameraLocalSpace.trans.z; R.max.x = pEntity->m_cameraLocalSpace.trans.x; R.max.z = pEntity->m_cameraLocalSpace.trans.z; } return R; }
    Code:
           dice::AxisAlignedBox Bounds = GetSoldierBounds( pEntity, true );
    
            dice::Vec3 SoldierBounds[2];
    
            if( 
                dice::Core::WorldToScreen( &Bounds.max, &SoldierBounds[0] ) &&
                dice::Core::WorldToScreen( &Bounds.min, &SoldierBounds[1] ) )
            {
                float w = ( SoldierBounds[1].y - SoldierBounds[0].y ) / 4;
    
                D3DRender::OutlineRGB( SoldierBounds[0].x - w, SoldierBounds[0].y, w * 2, 
                    ( SoldierBounds[1].y - SoldierBounds[0].y ), 1, RenderColor );
            }  
    
    Entity VTable + 0x50 = computeBoundingBoxWorldTransform
    Entity VTable + 0x54 = computeBoundingBox



    Credits:
    s0biet
    I Am on this site for the mods for mw2 ONLY. Not hacks.

  2. The Following 3 Users Say Thank You to xbeatsszzx For This Useful Post:

    blaine1 (03-27-2011),huhula96 (04-02-2011),squash85 (02-23-2011)

  3. #2
    msr890's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    176
    Reputation
    10
    Thanks
    7
    can you please tell me how to use this ?

  4. #3
    Pandemic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Seattle
    Posts
    3,588
    Reputation
    143
    Thanks
    275
    My Mood
    Angelic
    Quote Originally Posted by msr890 View Post
    can you please tell me how to use this ?
    compile it to a dll file and inject it

  5. #4
    msr890's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    176
    Reputation
    10
    Thanks
    7
    Quote Originally Posted by fierguy View Post


    compile it to a dll file and inject it
    were can i find the process to compile it ?

  6. #5
    CrazeyHazey's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    53
    Reputation
    10
    Thanks
    5
    My Mood
    Devilish
    I agree with him id like to know how to compile it what program

  7. #6
    Lawllypawp's Avatar
    Join Date
    Feb 2011
    Gender
    female
    Location
    Melbourne, Australia
    Posts
    582
    Reputation
    27
    Thanks
    66
    My Mood
    Sick
    You use hacks every day but you don't even know what program you use to compile a dll:|
    You use https://www.microsof*****m/express/Windows/

  8. The Following User Says Thank You to Lawllypawp For This Useful Post:

    woodz (04-09-2011)

  9. #7
    lpjz50's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Posts
    118
    Reputation
    10
    Thanks
    128
    My Mood
    Bashful
    C++ compiles them.

  10. #8
    Comet's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    MPGH
    Posts
    6,433
    Reputation
    376
    Thanks
    805
    My Mood
    Amazed
    you need to know C++, visual basic etc. Basic coding.

  11. #9
    squash85's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    NSW, AUSTRALIA
    Posts
    26
    Reputation
    10
    Thanks
    1
    My Mood
    Buzzed
    very nice ty, if you dont know how to compile & inject stuff then google it guys however assinat3d why not release it with a tut and already compiled? ne ways good job and thank you. but the code seems incomplete? or is it just me??
    Last edited by squash85; 02-23-2011 at 04:18 AM.

  12. #10

  13. #11
    austin209's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    California
    Posts
    153
    Reputation
    10
    Thanks
    19
    My Mood
    Hot
    does this work on PB servers? :P New to BFBC2..

  14. #12
    nikolayl's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    The Netherlands
    Posts
    506
    Reputation
    13
    Thanks
    196
    My Mood
    Amazed
    if just someone compile's it to dll and upload it here then you would have less people asking for ''how to compile''

  15. #13
    Miklo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by nikolayl View Post
    if just someone compile's it to dll and upload it here then you would have less people asking for ''how to compile''
    Then leechers don't have to do anything... (Next people will be asking for an injector.)

  16. #14
    [D]ark's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    196
    Reputation
    10
    Thanks
    29
    Very Good !

  17. #15
    Steelhawk92's Avatar
    Join Date
    Dec 2010
    Gender
    female
    Posts
    23
    Reputation
    10
    Thanks
    0
    A tut/how to, or a final compiled version would be a heaven send.

Page 1 of 3 123 LastLast