Results 1 to 13 of 13
  1. #1
    IGotBanned.'s Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    imageshack.us/photo/my-images/190/uban.png
    Posts
    1,290
    Reputation
    -49
    Thanks
    122
    My Mood
    Aggressive

    No Spread ALTERIW! <3

    Code:
    typedef struct{
        /*...*/
    }RandSpread_t;
    
    typedef struct{
        char  z_crap0[284];
        float SpreadMultiplier;
    }playerSnap_t;
    
    typedef struct{
        /*...*/
    }weapon_t;
    
    playerSnap_t    *playerSnap        = (playerSnap_t *)        0x7F4838;
    
    WeaponAngleX = *( float* )0x862F50;
    WeaponAngleY = *( float* )0x862F4C;
    
    void (__cdecl *R_GetWeaponSpread)(playerSnap_t* playerSnap, weapon_t* cg_Weapon, vec3_t Max, vec3_t Base  ) = (void (__cdecl *)(  playerSnap_t* ,weapon_t* , vec3_t , vec3_t  ))0x476900;
    
    RandSpread_t* (__cdecl *R_GetRandPointer)(  ) = (RandSpread_t* (__cdecl *)(  ))0x502ED0;
    
    float (__cdecl *R_RandomizedSeed)( RandSpread_t*RandS ) = (float (__cdecl *)( RandSpread_t*  ))0x457160;
    
    float (__cdecl *R_RandomizedSpread)( Vector* Vecs ) = (float (__cdecl *)( Vector*  ))0x44FF00;
    
    void CG_WeaponSpread ( weapon_t* pWeapon, vec3_t WeaponSpread )
    {
        float SpreadMultiplier = 0.0f;
    
        SpreadMultiplier = *(float*)0x8F1B3C / 255.0;
    
        vec3_t BaseSpread, MaxSpread;
    
        if(pWeapon)
        {
            R_GetWeaponSpread( playerSnap, pWeapon,  MaxSpread, BaseSpread );
       
            WeaponSpread[0] = BaseSpread[0] + ( ( MaxSpread[0] - BaseSpread[0] ) * -SpreadMultiplier  );
            WeaponSpread[1] = BaseSpread[1] + ( ( MaxSpread[1] - BaseSpread[1] ) * -SpreadMultiplier  );
            WeaponSpread[2] = BaseSpread[2] + ( ( MaxSpread[2] - BaseSpread[2] ) * -SpreadMultiplier  );
        }
       
    }
    
    void R_GetPlayerOrigin(playerSnap_t *_playerSnap, vec3_t Origin )
    {
        DWORD CG_GetPlayerViewPoint = 0x415220;
       
        _asm               push    Origin
        _asm               push    _playerSnap
        _asm               push    0
        _asm               call [CG_GetPlayerViewPoint]
        _asm                 add esp, 0x8
           
    }
    credits : King-OrgY , unreal, chod

  2. The Following User Says Thank You to IGotBanned. For This Useful Post:

    xbeatsszzx (06-30-2011)

  3. #2
    aIW|Convery's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    2,876
    Reputation
    124
    Thanks
    595
    My Mood
    Cynical
    Wrong section?

  4. #3

  5. #4
    IGotBanned.'s Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    imageshack.us/photo/my-images/190/uban.png
    Posts
    1,290
    Reputation
    -49
    Thanks
    122
    My Mood
    Aggressive
    where is that tut? @**Seals**

  6. #5
    xbeatsszzx's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Behind a dumpster jerking off. xD jks
    Posts
    2,520
    Reputation
    13
    Thanks
    1,494
    My Mood
    Asleep
    This could be useful
    I Am on this site for the mods for mw2 ONLY. Not hacks.

  7. #6
    369669's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    England
    Posts
    43
    Reputation
    13
    Thanks
    3
    My Mood
    Breezy
    Could someone please compile this into a dll for me?

  8. #7
    IGotBanned.'s Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    imageshack.us/photo/my-images/190/uban.png
    Posts
    1,290
    Reputation
    -49
    Thanks
    122
    My Mood
    Aggressive
    Quote Originally Posted by 369669 View Post
    Could someone please compile this into a dll for me?
    no. not me atleast

  9. #8
    nomercy12345's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    1
    My Mood
    Worried
    what makes this?

  10. #9
    aIW|Convery's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    2,876
    Reputation
    124
    Thanks
    595
    My Mood
    Cynical
    Quote Originally Posted by nomercy12345 View Post
    what makes this?
    Read the code? Also, clue is in the title..

  11. #10
    369669's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    England
    Posts
    43
    Reputation
    13
    Thanks
    3
    My Mood
    Breezy
    I used c++ and turned this code into a .dll and injected, but it dosent work...did i do something wrong?

  12. #11
    jdslashv2's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Bratislava
    Posts
    138
    Reputation
    10
    Thanks
    267
    My Mood
    Yeehaw
    Quote Originally Posted by 369669 View Post
    I used c++ and turned this code into a .dll and injected, but it dosent work...did i do something wrong?
    I google that for you
    sig?

  13. #12
    dontjump's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    4
    It works for me /iGotBanned.

  14. #13
    lolbie's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Netherlands
    Posts
    5,207
    Reputation
    288
    Thanks
    2,090
    My Mood
    Angelic
    Quote Originally Posted by 369669 View Post
    I used c++ and turned this code into a .dll and injected, but it dosent work...did i do something wrong?
    maybe because you need more than only this?
    for example a hook etc?
    I love it when people keep their agreements /sarcasm ftw