Red faceESP Rank

Posts 114 of 14 · Page 1 of 1
ESP Rank
Well, I am awfully bored now so I decided to release ESP Rank, I slightly modified it for efficiency. It's noob proofed as well and will be an easy fix for some. It is also missing a function in which it will assign the correct rank, also not as hard to fix. Have fun!

- Ranks -
Code:
RankList_t dRankList[56] = 
{
	{"Trainee", "TRN", 0}, {"Recruit", "RCT", 550}, {"Private", "PVT", 1200}, {"Pvt. 1st Class", "PFC", 2500}, {"Corporal", "CPL", 5000},
	{"Sergeant", "SGT", 8700}, {"Staff Sgt. I", "SSG1", 15000}, {"Staff Sgt. II", "SSG2", 22000}, {"Staff Sgt. III", "SSG3", 30500},
	{"Sgt. 1st Class I", "SFC1", 40500}, {"Sgt. 1st Class II", "SFC2", 52000}, {"Sgt. 1st Class III", "SFC3", 65000},
	{"Master Sgt. I", "MSG1", 81000}, {"Master Sgt. II", "MSG2", 99000}, {"Master Sgt. III", "MSG3", 119000},
	{"Master Sgt. IV", "MSG4", 141000}, {"Command Sgt. Major I", "CSM1", 166000}, {"Command Sgt. Major II", "CSM2", 194000},
	{"Command Sgt. Major III", "CSM3", 225000}, {"Command Sgt. Major IV", "CSM4", 259000}, {"Command Sgt. Major V", "CSM5", 296000},
	{"2nd Lieutenant I", "2LT1", 336000}, {"2nd Lieutenant II", "2LT2", 379000}, {"2nd Lieutenant III", "2LT3", 425000},
	{"2nd Lieutenant IV", "2LT4", 474000}, {"2nd Lieutenant V", "2LT5", 526000}, {"1st Lieutenant I", "1LT1", 580000},
	{"1st Lieutenant II", "1LT2", 638000}, {"1st Lieutenant III", "1LT3", 699000}, {"1st Lieutenant IV", "1LT4", 763000},
	{"1st Lieutenant V", "1LT5", 830000}, {"Captain I", "CPT1", 900000}, {"Captain II", "CPT2", 983000}, {"Captain III", "CPT3", 1074000},
	{"Captain IV", "CPT4", 1173000}, {"Captain V", "CPT5", 1280000}, {"Major I", "MAJ1", 1400000}, {"Major II", "MAJ2", 1533000},
	{"Major III", "MAJ3", 1679000}, {"Major IV", "MAJ4", 1838000}, {"Major V", "MAJ5", 2010000}, {"Lt. Colonel I", "LTC1", 2200000},
	{"Lt. Colonel II", "LTC2", 2408000}, {"Lt. Colonel III", "LTC3", 2634000}, {"Lt. Colonel IV", "LTC4", 2878000}, 
	{"Lt. Colonel V", "LTC5", 3140000}, {"Colonel I", "COL1", 3420000}, {"Colonel II", "COL2", 3718000}, {"Colonel III", "COL3", 4034000},
	{"Colonel IV", "COL4", 4308000}, {"Colonel V", "COL5", 4720000}, {"Brigadier General", "BG", 5100000}, {"Major General", "MG", 5500000},
	{"Lieutenant General", "LTG", 6000000}, {"General", "GEN", 6800000}, {"General of the Army", "GOA", 8000000}
};
- Get Rank from Player -
Code:
struct RankList_t
{
    char LongName[30];
    char ShortName[5];
    DWORD dwMinEXP;
};

char *cTools::GetRankNameByIndex( int index, bool longname )
{
	if( index > 55 )
		return "Unknown LVL";
	return ( longname ) ? dRankList[ index ].LongName : dRankList[ index ].ShortName;
}
- Calling the Function -
Code:
char szRank[256];

if(Variable.ESPRank)
{
    sprintf(Variable.szRank, "Rank : [%s]", Main->Tools->GetRankNameByIndex(pPlayer->index, false));
    Main->Menu->DrawText(pDevice, Position.x, Position.y + 25, dwCol, Variable.szRank);
}
Credits:
USSR(me)
disav0w_
Gellin
Dun forget to credit donoob/disav0w_ also for diss useless shits of ESP which is actually gud luking in riptide
Quote Originally Posted by Flengo View Post
Dun forget to credit donoob/disav0w_ also for diss useless shits of ESP which is actually gud luking in riptide
Good looking in a menu that you copied.
Quote Originally Posted by Shadow` View Post
Good looking in a menu that you copied.
Who cares? Its not even active by the original coder anymore. Why would it matter

Plus, arun you didn't even post the class for this.
Quote Originally Posted by Flengo View Post
Dun forget to credit donoob/disav0w_ also for diss useless shits of ESP which is actually gud luking in riptide
Yeah I know, forgot to add his name
Quote Originally Posted by arun823 View Post
Yeah I know, forgot to add his name
YOU FORGOT THE CLASS TOO.
Missed that part

Code:
void oEsp::EspRank ( LPDIRECT3DDEVICE9 pDevice )
{
	GetPlayerByIndex2 = (lpGetPlayerByIndex2)ClientInfoMgr;
	GetPlayerByIndex  = (lpGetPlayerByIndex)PlayerByIndex;
	DWORD ulThis = *(DWORD *)ClientInfoMgr;
	GetLocalPlayer = (lpGetLocalPlayer)LocalPlayer;

	for( int i = 0; i < 55; i++ )
	{
		cClientInfo *ClientInfo = GetPlayerByIndex2(ulThis, i, NULL); 
		cPlayerInfo  *pPlayer = GetPlayerByIndex(ulThis, i, 0);
		cPlayerInfo  *pLocal  = GetLocalPlayer(ulThis);
		D3DXVECTOR3 Proj;
		CHAR Rank[80];

		if(pPlayer != 0 && pPlayer->obj != 0 && pPlayer->IsDead == 0) 
		{
			if(WorldToScreen(pDevice,pPlayer,&Proj) )
			{
				sprintf(Rank,"%s", ClientInfo->_pRank);
				this->GetRankNameByIndex(i, Rank);
				d3d->WriteTextCenter(pFont, Proj.x, Proj.y, dwTeamColor, (char*)Rank);
			}
		}
	}
}
@Shadow is a beast, @Flengo is a beast.
YOU guys together, sound like 2 teenage girls/
your both great, dont get into kiddie fights
just because your two visual and coding styles differ
@arn823 nice work dude.
Stop making this a fucking rage thread, take it to the pms, you guys are getting off topic -_-
@Shadow` @Flengo Jr.

/Request delete rage posts @[SMA] Paradise` @YellowFever


---------- Post added at 01:12 PM ---------- Previous post was at 01:11 PM ----------

Quote Originally Posted by Coder.Anonymous View Post
Missed that part

Code:
void oEsp::EspRank ( LPDIRECT3DDEVICE9 pDevice )
{
	GetPlayerByIndex2 = (lpGetPlayerByIndex2)ClientInfoMgr;
	GetPlayerByIndex  = (lpGetPlayerByIndex)PlayerByIndex;
	DWORD ulThis = *(DWORD *)ClientInfoMgr;
	GetLocalPlayer = (lpGetLocalPlayer)LocalPlayer;

	for( int i = 0; i < 55; i++ )
	{
		cClientInfo *ClientInfo = GetPlayerByIndex2(ulThis, i, NULL); 
		cPlayerInfo  *pPlayer = GetPlayerByIndex(ulThis, i, 0);
		cPlayerInfo  *pLocal  = GetLocalPlayer(ulThis);
		D3DXVECTOR3 Proj;
		CHAR Rank[80];

		if(pPlayer != 0 && pPlayer->obj != 0 && pPlayer->IsDead == 0) 
		{
			if(WorldToScreen(pDevice,pPlayer,&Proj) )
			{
				sprintf(Rank,"%s", ClientInfo->_pRank);
				this->GetRankNameByIndex(i, Rank);
				d3d->WriteTextCenter(pFont, Proj.x, Proj.y, dwTeamColor, (char*)Rank);
			}
		}
	}
}
Nah, I didn't forget it, didn't choose to add it in since that stuff is pretty much common sense when drawing text to screen for ESP.
Quote Originally Posted by arun823 View Post
Well, I am awfully bored now so I decided to release ESP Rank, I slightly modified it for efficiency. It's noob proofed as well and will be an easy fix for some. It is also missing a function in which it will assign the correct rank, also not as hard to fix. Have fun!

- Ranks -
Code:
RankList_t dRankList[56] = 
{
	{"Trainee", "TRN", 0}, {"Recruit", "RCT", 550}, {"Private", "PVT", 1200}, {"Pvt. 1st Class", "PFC", 2500}, {"Corporal", "CPL", 5000},
	{"Sergeant", "SGT", 8700}, {"Staff Sgt. I", "SSG1", 15000}, {"Staff Sgt. II", "SSG2", 22000}, {"Staff Sgt. III", "SSG3", 30500},
	{"Sgt. 1st Class I", "SFC1", 40500}, {"Sgt. 1st Class II", "SFC2", 52000}, {"Sgt. 1st Class III", "SFC3", 65000},
	{"Master Sgt. I", "MSG1", 81000}, {"Master Sgt. II", "MSG2", 99000}, {"Master Sgt. III", "MSG3", 119000},
	{"Master Sgt. IV", "MSG4", 141000}, {"Command Sgt. Major I", "CSM1", 166000}, {"Command Sgt. Major II", "CSM2", 194000},
	{"Command Sgt. Major III", "CSM3", 225000}, {"Command Sgt. Major IV", "CSM4", 259000}, {"Command Sgt. Major V", "CSM5", 296000},
	{"2nd Lieutenant I", "2LT1", 336000}, {"2nd Lieutenant II", "2LT2", 379000}, {"2nd Lieutenant III", "2LT3", 425000},
	{"2nd Lieutenant IV", "2LT4", 474000}, {"2nd Lieutenant V", "2LT5", 526000}, {"1st Lieutenant I", "1LT1", 580000},
	{"1st Lieutenant II", "1LT2", 638000}, {"1st Lieutenant III", "1LT3", 699000}, {"1st Lieutenant IV", "1LT4", 763000},
	{"1st Lieutenant V", "1LT5", 830000}, {"Captain I", "CPT1", 900000}, {"Captain II", "CPT2", 983000}, {"Captain III", "CPT3", 1074000},
	{"Captain IV", "CPT4", 1173000}, {"Captain V", "CPT5", 1280000}, {"Major I", "MAJ1", 1400000}, {"Major II", "MAJ2", 1533000},
	{"Major III", "MAJ3", 1679000}, {"Major IV", "MAJ4", 1838000}, {"Major V", "MAJ5", 2010000}, {"Lt. Colonel I", "LTC1", 2200000},
	{"Lt. Colonel II", "LTC2", 2408000}, {"Lt. Colonel III", "LTC3", 2634000}, {"Lt. Colonel IV", "LTC4", 2878000}, 
	{"Lt. Colonel V", "LTC5", 3140000}, {"Colonel I", "COL1", 3420000}, {"Colonel II", "COL2", 3718000}, {"Colonel III", "COL3", 4034000},
	{"Colonel IV", "COL4", 4308000}, {"Colonel V", "COL5", 4720000}, {"Brigadier General", "BG", 5100000}, {"Major General", "MG", 5500000},
	{"Lieutenant General", "LTG", 6000000}, {"General", "GEN", 6800000}, {"General of the Army", "GOA", 8000000}
};
- Get Rank from Player -
Code:
char *cTools::GetRankNameByIndex( int index, bool longname )
{
	if( index > 55 )
		return "Unknown LVL";
	return ( longname ) ? dRankList[ index ].LongName : dRankList[ index ].ShortName;
}
- Calling the Function -
Code:
char szRank[256];

if(Variable.ESPRank)
{
    sprintf(Variable.szRank, "Rank : [%s]", Main->Tools->GetRankNameByIndex(pPlayer->index, false));
    Main->Menu->DrawText(pDevice, Position.x, Position.y + 25, dwCol, Variable.szRank);
}
Credits:
USSR(me)
disav0w_
Gellin
You forgot the struct:
Code:
struct RankList_t
{
    char LongName[30];
    char ShortName[5];
    DWORD dwMinEXP;
};
Also, you are going to want to free szRank at the end of each frame or you will be leaking 256 bytes of memory every frame (never a good idea).
Code:
delete[] szRank;
May I ask, what exact optimization did you do, I don't see any?
Nice job though, although this has already been released.
Quote Originally Posted by Saltine View Post

You forgot the struct:
Code:
struct RankList_t
{
    char LongName[30];
    char ShortName[5];
    DWORD dwMinEXP;
};
Also, you are going to want to free szRank at the end of each frame or you will be leaking 256 bytes of memory every frame (never a good idea).
Code:
delete[] szRank;
May I ask, what exact optimization did you do, I don't see any?
Nice job though, although this has already been released.
Alright, I will keep that in mind. I had originally got this from a BR Base which was horribly organized, I just technically just made it more efficient.

Lol, thanks for reminding me that I forgot the struct, also, where else has this been released?
Quote Originally Posted by arun823 View Post
Alright, I will keep that in mind. I had originally got this from a BR Base which was horribly organized, I just technically just made it more efficient.

Lol, thanks for reminding me that I forgot the struct, also, where else has this been released?
Bases, BR Section 50 times. Probably in NA once or twice when Gellin's base was released.
Stop trying to start a flame war.
Yes the base of the vip Gellin has but few knew that removing ...
Bela contribution ...
It was an easy way to understand the ESP
Posts 114 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?