HelpADDYS

Posts 1–15 of 20 · Page 1 of 2
ADDYS
How do i find the addresses of these


Code:
struct CPlayer 
{
	char unknown0[66030];
	WORD weapon; //0x101EE  
};

struct CWeaponInformations
{
	char _0x0000[20]; 
	char Name[25]; //0x0014 
	char _0x002D[39];
		char ShortName[4]; //0x0054 
	char _0x0058[1];
		char Animation[4]; //0x0059 
	char _0x005D[5219];
	DWORD dwDamage; //0x14C0 
	DWORD dwDefence; //0x14C4 
	DWORD dwRange; //0x14C8 
	DWORD dwAmmoNum; //0x14CC 
	DWORD dwMagazineNum; //0x14D0 
	DWORD dwEffectRange; //0x14D4
	DWORD dwParabola; //0x14D8 ?
	float ReactAmount; //0x14DC 
	float ReactRecovery; //0x14E0 
	float Accurate; //0x14E4 
	DWORD dwShotSpeed; //0x14E8 
	DWORD dwWeight; //0x14EC 
};
is there anyone knows how to find these addresses? Hope you can help me guys.
Quote Originally Posted by delarmente View Post
I already know how to do that, what i am asking is what text do i search so that i can find those addies. eg. if i want to search for FarFog the all i need to do is to search for "Fog.FarDistance".
Can someone tell me how exactly do I use that code? Im aware its weapon related... but how?
Quote Originally Posted by noisyboymax View Post
Can someone tell me how exactly do I use that code? Im aware its weapon related... but how?
You need to update it before using it
Quote Originally Posted by n4n033 View Post
You need to update it before using it
can you teach us how to find the up to date addresses using IDA?
Quote Originally Posted by -=meow=- View Post
can you teach us how to find the up to date addresses using IDA?
just search in old and new dump occurence then you can find the good address
Quote Originally Posted by n4n033 View Post
just search in old and new dump occurence then you can find the good address
Thanks and I did what you said, compared the old and new dump occurrences and i found out that it is still the same(Not sure though if i found the right one, but i guess i did).
The old addies from here: http://www.mpgh.net/forum/showthread...=803585&page=5

Code:
	
        Damage =             0x84;
	Defence =            0x88;
	Range =               0x8C;
	AmmoNum =          0x90;
	MagazineNum =      0x94;
	EffectRange =        0x98;
	Parabola =             0x9C;
	ShotSpeed =          0xAC;
	Weight =               0xB0;
I tried it and warrock crashed.

The code that i am using

Code:
class CWeaponInformations
{
public:
     char padd1[132];
     DWORD dwDamage; // 0x84  
     DWORD dwDefence; //0x88
     DWORD dwRange; // 0x8C   
     DWORD dwAmmoNum; //0x90   
     DWORD dwMagazineNum; //0x94 
     DWORD dwEffectRange; //0x98  
     DWORD dwParabola; // 0x9C
	 char padd2[12];
     DWORD dwShotSpeed; //0xAC 
     DWORD dwWeight; //0xB0
};

CWeaponInformations* getWeaponInfo(int index, DWORD ptr)
{
    DWORD dwPtrToWeapons = *(DWORD *)(ptr + 0x40);
    if(!dwPtrToWeapons)   
        return 0;       

    DWORD dwPtrToDesiredWeapon = *(DWORD *)(dwPtrToWeapons + index);
    
    if(!dwPtrToDesiredWeapon)
        return 0;    
    
    return (CWeaponInformations*)(dwPtrToDesiredWeapon);
}

// Initialize Class
CWeaponInformations* weaponInformations = getWeaponInfo(66, ADR_WeaponGlobal1);
CWeaponInformations* weaponInformations2 = getWeaponInfo(66, ADR_WeaponGlobal2);

// How To Use

void AMMO()
{
	weaponInformations->dwAmmoNum = 9;
        weaponInformations->dwRange = 9000000;
        weaponInformations->dwEffectRange = 90000;
}
@RED Originally it's WEAPONINDEX and i just changed it to 66 which is SPG_1 index number. Did I changed it correctly?
Quote Originally Posted by -=meow=- View Post
Thanks and I did what you said, compared the old and new dump occurrences and i found out that it is still the same(Not sure though if i found the right one, but i guess i did).
The old addies from here: http://www.mpgh.net/forum/showthread...=803585&page=5

Code:
	
        Damage =             0x84;
	Defence =            0x88;
	Range =               0x8C;
	AmmoNum =          0x90;
	MagazineNum =      0x94;
	EffectRange =        0x98;
	Parabola =             0x9C;
	ShotSpeed =          0xAC;
	Weight =               0xB0;
I tried it and warrock crashed.

The code that i am using

Code:
class CWeaponInformations
{
public:
     char padd1[132];
     DWORD dwDamage; // 0x84  
     DWORD dwDefence; //0x88
     DWORD dwRange; // 0x8C   
     DWORD dwAmmoNum; //0x90   
     DWORD dwMagazineNum; //0x94 
     DWORD dwEffectRange; //0x98  
     DWORD dwParabola; // 0x9C
	 char padd2[12];
     DWORD dwShotSpeed; //0xAC 
     DWORD dwWeight; //0xB0
};

CWeaponInformations* getWeaponInfo(int index, DWORD ptr)
{
    DWORD dwPtrToWeapons = *(DWORD *)(ptr + 0x40);
    if(!dwPtrToWeapons)   
        return 0;       

    DWORD dwPtrToDesiredWeapon = *(DWORD *)(dwPtrToWeapons + index);
    
    if(!dwPtrToDesiredWeapon)
        return 0;    
    
    return (CWeaponInformations*)(dwPtrToDesiredWeapon);
}

// Initialize Class
CWeaponInformations* weaponInformations = getWeaponInfo(66, ADR_WeaponGlobal1);
CWeaponInformations* weaponInformations2 = getWeaponInfo(66, ADR_WeaponGlobal2);

// How To Use

void AMMO()
{
	weaponInformations->dwAmmoNum = 9;
        weaponInformations->dwRange = 9000000;
        weaponInformations->dwEffectRange = 90000;
}
@RED Originally it's WEAPONINDEX and i just changed it to 66 which is SPG_1 index number. Did I changed it correctly?
All this is wrong man, you aint gonna have it working like this and that probably why it's crashing
Quote Originally Posted by n4n033 View Post
All this is wrong man, you aint gonna have it working like this and that probably why it's crashing
Why is it all wrong? What are the necessary addys do i need? How do i fix it? Thank you.
Could you tell us how to fix it then?
Posts 1–15 of 20 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?