|
|
sponsored advertisements
|
|
8th January 2010, 11:03 PM
|
#1
|
|
Mw2 RankEsp
this is nearly the same as for cod4 so here we go.
Code:
char *ranks[] =
{
"rank_pvt1",
"rank_pvt1",
"rank_pvt1",
"rank_pfc1",
"rank_pfc1",
"rank_pfc1",
"rank_spc1",
"rank_spc1",
"rank_spc1",
"rank_cpl1",
"rank_cpl1",
"rank_cpl1",
"rank_sgt1",
"rank_sgt1",
"rank_sgt1",
"rank_ssgt1",
"rank_ssgt1",
"rank_ssgt1",
"rank_sfc1",
"rank_sfc1",
"rank_sfc1",
"rank_msgt1",
"rank_msgt1",
"rank_msgt1",
"rank_1stsgt1",
"rank_1stsgt1",
"rank_1stsgt1",
"rank_sgtmaj1",
"rank_sgtmaj1",
"rank_sgtmaj1",
"rank_cmdsgtmaj1",
"rank_cmdsgtmaj1",
"rank_cmdsgtmaj1",
"rank_2ndlt1",
"rank_2ndlt1",
"rank_2ndlt1",
"rank_1stlt1",
"rank_1stlt1",
"rank_1stlt1",
"rank_capt1",
"rank_capt1",
"rank_capt1",
"rank_maj1",
"rank_maj1",
"rank_maj1",
"rank_ltcol1",
"rank_ltcol1",
"rank_ltcol1",
"rank_ltcol1",
"rank_col1",
"rank_col1",
"rank_col1",
"rank_col1",
"rank_bgen1",
"rank_bgen1",
"rank_bgen1",
"rank_bgen1",
"rank_majgen1",
"rank_majgen1",
"rank_majgen1",
"rank_majgen1",
"rank_ltgen1",
"rank_ltgen1",
"rank_ltgen1",
"rank_ltgen1",
"rank_gen1",
"rank_gen1",
"rank_gen1",
"rank_gen1",
"rank_comm1",
};
usage:
int rankSize = (sizeof( ranks ) / sizeof( ranks[0] ));
for(int i = 0; i < rankSize; i++)
{
CG_DrawPic(ScreenHead.x ,ScreenHead.y-25,10,10,engWhite,RegisterShader(ranks[pInfo->Rank],7));
}
i think there is a better way doing this but it works for me.
u have too do the rest for prestige ranks
credits: buffalo,king orgy ,kidebr.
sorry if i forgot one
__________________
Can you inject .rar files into the game? If possible, how?
|
pinki185 is offline
|
|
|
8th January 2010, 11:06 PM
|
#2
|
A Forum Hero
|
looks nice. will have to try
+rep
|
smoochy is offline
|
|
8th January 2010, 11:21 PM
|
#3
|
|
I'm downloading the game from steam now might not be until tomorrow until its done though. GJ +rep
__________________
"Love for All and Sharing is the first step to solving all the problems of humanity. "
''The art of Wuju lives on in Master Yi, and is plunged through the hearts of his foes.'' -- Soraka, the Starchild
----------------------------------------------------------------------------
Anti-Cheat Software & Programming - Other FPS Games
----------------------------------------------------------------------------
|
SimPle01 is offline
|
|
9th January 2010, 12:10 AM
|
#5
|
retired moderator
|
Quote:
Originally Posted by hawksking
What do I do with the code? A tutorial please?
|
LOL.
Go do some learning, come back when you know some C++.
PS. don't beg.
__________________
Regards and happy
Josh
__________________
|
JoshRose is offline
|
|
9th January 2010, 12:32 AM
|
#6
|
Sozinho Para Sempre
|
nice pink
im starting for Esp Weapon Shader
//unfinished
Quote:
char* WeaponShader(char *ShaderWeapon)
{
char* stringWeaponName;
stringWeaponName = ShaderWeapon;
if(strstr(stringWeaponName, "at4_mp"))
ShaderWeapon = "weapon_at4";
else
if(strstr(stringWeaponName, "famas_gl_mp"))
ShaderWeapon = "weapon_famas";
else
if(strstr(stringWeaponName, "spas12_silencer_mp"))
ShaderWeapon = "weapon_spas12";
else
if(strstr(stringWeaponName, "ump45_eotech_mp"))
ShaderWeapon = "weapon_ump45_iron";
else
if(strstr(stringWeaponName, "coltanaconda_tatical_mp"))
ShaderWeapon = "weapon_colt_anaconda";
else
if(strstr(stringWeaponName, "sa80_grip_reflex_mp"))
ShaderWeapon = "weapon_sa80";
else
if(strstr(stringWeaponName, "barret_fmj_heartbeat_mp"))
ShaderWeapon = "weapon_m82_new_col";
else
// etc....
ShaderWeapon = ShaderWeapon;
return ShaderWeapon;
}
|
//get weapons name from metod GHOSTER
Quote:
char* NomeDasArmas(int i)
{
return *(char**)( ((i * 0x20) + 0x007E0CC8) + 0x14 );
}
|
//other memory weapon found by me
Quote:
Arma_t** Arma = ( Arma_t** ) 0x7BBAA8
returns at4_mp, etc....
|
WeaponEspShader((float)TelaX,(float)TelaY,40,120,Branco,RegistreShader ( WeaponShader(Arma[Entrada->Arma]->Nomes), 3,7 ) );
Last edited by KIDEBR; 9th January 2010 at 12:41 AM.
|
KIDEBR is offline
|
|
|
9th January 2010, 12:39 AM
|
#7
|
Follow me children
|
nice work i like your 2d radar
__________________
Smart went crazy, truth went trendy
The story got lazy so I rewrote the ending
|
Jesus. is offline
|
|
9th January 2010, 12:39 AM
|
#8
|
n00bie
Join Date: Jan 2010
Posts: 13
Reputation: 259
Rep Power: 347
|
Quote:
Originally Posted by JoshRose
LOL.
Go do some learning, come back when you know some C++.
PS. don't beg.
|
Hahaha funny. Dont wanna waste my whole day/ even most of my life sitting infront of a computer trying to learn/code something and sometimes get a bunch of errors and try to fix them.
|
hawksking is offline
|
|
9th January 2010, 12:43 AM
|
#9
|
Follow me children
|
Quote:
Originally Posted by hawksking
Hahaha funny. Dont wanna waste my whole day/ even most of my life sitting infront of a computer trying to learn/code something and sometimes get a bunch of errors and try to fix them.
|
Well we didn't get any where by not doing that. So then i guess you can umm just how do i say it go fuck yourself kthnx. Were not here to hold your hand we will point you in the right direction. Which there are source bases you can start off if you would look around/
__________________
Smart went crazy, truth went trendy
The story got lazy so I rewrote the ending
|
Jesus. is offline
|
|
9th January 2010, 12:45 AM
|
#10
|
n00bie
Join Date: Jan 2010
Posts: 13
Reputation: 259
Rep Power: 347
|
Quote:
Originally Posted by Unknownhacker
Well we didn't get any where by not doing that. So then i guess you can umm just how do i say it go fuck yourself kthnx. Were not here to hold your hand we will point you in the right direction. Which there are source bases you can start off if you would look around/
|
First of all, swearing wont make things easier or prove anything. Second... I'm not asking you to hold hands with me.
What good things did you do with C++? Make hacks?
|
hawksking is offline
|
|
9th January 2010, 12:46 AM
|
#11
|
retired moderator
|
Quote:
Originally Posted by hawksking
Hahaha funny. Dont wanna waste my whole day/ even most of my life sitting infront of a computer trying to learn/code something and sometimes get a bunch of errors and try to fix them.
|
Then your fucked for life. You won't get anywhere with an attitude like that, whether it's computer programming or a law degree.
We don't need people like you here.
__________________
Regards and happy
Josh
__________________
|
JoshRose is offline
|
|
9th January 2010, 12:48 AM
|
#12
|
n00bie
Join Date: Jan 2010
Posts: 13
Reputation: 259
Rep Power: 347
|
Quote:
Originally Posted by JoshRose
Then your fucked for life. You won't get anywhere with an attitude like that, whether it's computer programming or a law degree.
We don't need people like you here.
|
Actually, I was pretty chilled the time when I wrote that message.
|
hawksking is offline
|
|
9th January 2010, 01:03 AM
|
#13
|
Retired Administrator
|
Quote:
Originally Posted by hawksking
Actually, I was pretty chilled the time when I wrote that message.
|
1: if you waste your whole day staring at errors you are doing it wrong
2: there are people actually enjoying writing hacks.
3: most programs you use everyday are written in c/c++, with the exception of the few written in vb, c#, delphi and the like, so you can actually do other stuff than gamehacking with it.
4: with an attitude like that you are not welcome here, either change it or gtfo.
|
learn_more is offline
|
|
9th January 2010, 01:15 AM
|
#14
|
n00bie
Join Date: Jan 2010
Posts: 13
Reputation: 259
Rep Power: 347
|
Quote:
Originally Posted by learn_more
1: if you waste your whole day staring at errors you are doing it wrong
2: there are people actually enjoying writing hacks.
3: most programs you use everyday are written in c/c++, with the exception of the few written in vb, c#, delphi and the like, so you can actually do other stuff than gamehacking with it.
4: with an attitude like that you are not welcome here, either change it or gtfo.
|
I and all of you people against me can continue this debate and it will keep on going. I would ilke to end this topic not because I give up but because its gonna become a ridiculous fight sooner or later.
|
hawksking is offline
|
|
9th January 2010, 04:35 AM
|
#15
|
Join Date: Dec 2009
Posts: 121
Reputation: 148
Rep Power: 349
|
Quote:
Originally Posted by hawksking
I and all of you people against me can continue this debate and it will keep on going. I would ilke to end this topic not because I give up but because its gonna become a ridiculous fight sooner or later.
|
you give up
|
anamaniac is offline
|
|
9th January 2010, 06:41 AM
|
#16
|
:3 1337 :3
|
Quote:
Originally Posted by hawksking
I and all of you people against me can continue this debate and it will keep on going. I would ilke to end this topic not because I give up but because its gonna become a ridiculous fight sooner or later.
|
You were the one asking for help without looking Arround first, you are the one that keeps responding, you are the one stopping this debate becuz you know we are right...
As learn more stated the whole pc were u are on is probally 90% coded in c++
yes I only code Hacks init cuz I enjoy it.
Mmh now let's get back on topic since I don't wanna hijack this thread (if hawk or w/e he's named hadn't done so)
__________________
hai
|
Wieter20 is offline
|
|
9th January 2010, 06:57 AM
|
#17
|
Supreme H4x0|2
|
Quote:
Originally Posted by kidebr
nice pink
im starting for Esp Weapon Shader
//unfinished
//get weapons name from metod GHOSTER
//other memory weapon found by me
WeaponEspShader((float)TelaX,(float)TelaY,40,120,Branco,RegistreShader ( WeaponShader(Arma[Entrada->Arma]->Nomes), 3,7 ) );
|
You guys don't have to register the shaders constantly in your draw function, just on time will do.
You can either use the game's own cg_init:
Code:
void __cdecl hCG_Init(int a1, int a2, int a3, int a4)
{
__asm pushad
add_log("hCG_Init called");
if(!media.whiteShader)
media.whiteShader = trap_R_RegisterShader( "white", 7 );
if(!media.fullAuto)
media.fullAuto = trap_R_RegisterShader( "rank_sgtmaj1", 7 );
if(!media.noRecoil)
media.noRecoil = trap_R_RegisterShader( "rank_sgtmaj1", 7 );
if(!media.playSounds)
media.playSounds = trap_R_RegisterShader( "talkingicon", 7 );
if(!media.compasspingEnemy)
media.compasspingEnemy = trap_R_RegisterShader( "compassping_enemy", 7 );
if(!media.compasspingFriendly)
media.compasspingFriendly = trap_R_RegisterShader( "compassping_friendly_mp", 7 );
if(!media.compasspingPlayer)
media.compasspingPlayer = trap_R_RegisterShader( "compassping_player", 7 );
if(!media.minimapScanlines)
media.minimapScanlines = trap_R_RegisterShader( "minimap_scanlines", 7 );
if(!media.compassRadarline)
media.compassRadarline = trap_R_RegisterShader( "compass_radarline", 7 );
__asm popad
oCG_Init( a1, a2, a3, a4 );
}
Or in a control statement in your render loop:
Code:
bool bRunOnce = true;
if(bRunOnce)
{
/*if(!media.whiteShader)
media.whiteShader = trap_R_RegisterShader( "white", 7 );
if(!media.fullAuto)
media.fullAuto = trap_R_RegisterShader( "rank_sgtmaj1", 7 );
if(!media.noRecoil)
media.noRecoil = trap_R_RegisterShader( "rank_sgtmaj1", 7 );
if(!media.playSounds)
media.playSounds = trap_R_RegisterShader( "talkingicon", 7 );
if(!media.compasspingEnemy)
media.compasspingEnemy = trap_R_RegisterShader( "compassping_enemy", 7 );
if(!media.compasspingFriendly)
media.compasspingFriendly = trap_R_RegisterShader( "compassping_friendly_mp", 7 );
if(!media.compasspingPlayer)
media.compasspingPlayer = trap_R_RegisterShader( "compassping_player", 7 );
if(!media.minimapScanlines)
media.minimapScanlines = trap_R_RegisterShader( "minimap_scanlines", 7 );
if(!media.compassRadarline)
media.compassRadarline = trap_R_RegisterShader( "compass_radarline", 7 );*/
bRunOnce = false;
}
Give your CPU a small break.
|
silverfish is offline
|
|
|
9th January 2010, 10:33 AM
|
#18
|
A Forum Hero
|
to kidebr: since you can't pm him
is this offset
for 1.0.174 or 1.0.172? i cant find it in 1.0.174
edit:
nevermind, found the right offset 0x7BCAA0, but its not showing proper weapons, but its a start
Last edited by smoochy; 9th January 2010 at 11:06 AM.
|
smoochy is offline
|
|
9th January 2010, 02:20 PM
|
#19
|
Sozinho Para Sempre
|
Quote:
Originally Posted by smoochy
to kidebr: since you can't pm him
is this offset
for 1.0.174 or 1.0.172? i cant find it in 1.0.174
edit:
nevermind, found the right offset 0x7BCAA0, but its not showing proper weapons, but its a start
|
im posted in 1.0.172
you correct 1.0.174
005803DD 8B14BD A0CA7B00 MOV EDX,DWORD PTR DS:[EDI*4+7BCAA0]
|
KIDEBR is offline
|
|
9th January 2010, 02:34 PM
|
#20
|
A Forum Hero
|
thanks for the tip.
it works great for minigun turrents/explosive esp.
but i cannot make it show dropped weapons, when i shoot someone i see the name of the gun i shoot the person with, but when i go pickup their weapons, it will not work.
all i want is dropped weapons to say "dropped_weapon_mp" but even that doesnt work
|
smoochy is offline
|
|
We strive to provide all our services for free and not interrupt your visit with overly intrusive advertisements or restrictions - support us by disabling your ad blocker or whitelisting our site.
All times are GMT. The time now is 11:01 PM.
|
|
sponsored advertisement |
| | |