Thread: Get WeaponInfo

Results 1 to 3 of 3
  1. #1
    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

    Get WeaponInfo

    Code:
    DWORD CBot::GetWeaponInfo(DWORD WeaponNum)
    {
    	static DWORD dwCall = 0x503960;
    	static DWORD dwReturn;
    	__asm{
    		PUSH WeaponNum
    		CALL [dwCall]
    		mov dwReturn, eax
    		ADD ESP,0x4
    	}
    	return dwReturn;
    }
    Code:
    weaponstruct* wstruct = (weaponstruct*)(GetWeaponInfo(Client->WeapNum));
    Credits:
    Cardoow
    I Am on this site for the mods for mw2 ONLY. Not hacks.

  2. #2
    PornFlakesreg's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Hello . What are we supposed to do with that ?

  3. #3
    scmogc0's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    257
    Reputation
    10
    Thanks
    27
    My Mood
    Bored
    Quote Originally Posted by PornFlakesreg View Post
    Hello . What are we supposed to do with that ?
    add it in ur own c++/c# hack i think so?