Draw Player Weapon Icons

Posts 110 of 10 · Page 1 of 1
Draw Player Weapon Icons
Code:
struct weapon_t
{
	char        *aimAssistRangeScale;
	char        z_crap[40];
        float       Unknow;
 	char       z_crap2[752];
	qhandle_t WeaponShader;
};
Code:
weapon_t*  (__cdecl *GetWeapon)(int num) = (weapon_t* (__cdecl *)(int))0x50F140;//dword_C5C218 +8
usage

Code:
			weapon_t* weapon = (weapon_t*)GetWeapon( clientInfo[i].Weapon );
Code:
if(weapon->WeaponShader)//weapon shader is valid don't draw a NULL shader
						{
							CEngineDrawing.CG_DrawPic ( ScreenX  , ScreenY, 15-DisW, 20-DisH, VisibleColorEnemy, weapon->WeaponShader );
						
						}
same way can be done with other entities/pickups/ammos of course

pic:
http://img192.imageshack.us/img192/4175/shot0012fq.jpg
This is helpful, thank you.
Quote Originally Posted by [WhA]4FunPlayin View Post
Why not click the "Thanks" button
The world doesn't circle around a number listed under your name on a hacking site.
Quote Originally Posted by AZUMIKKEL View Post
The world doesn't circle around a number listed under your name on a hacking site.
it sure does!
Quote Originally Posted by iferhat View Post
lololol......
you should enable your brain first before you posts in my thread
sorry i'm learning from all your threads,
but,
"Draw Player Weapon Icons" does that mean that when we make our hacks we can tell what gun their using?...or is it shown via a icon of the gun they are using?..

sorry i am learning
Quote Originally Posted by Skyline. View Post
sorry i'm learning from all your threads,
but,
"Draw Player Weapon Icons" does that mean that when we make our hacks we can tell what gun their using?...or is it shown via a icon of the gun they are using?..

sorry i am learning
it just draw there gun as a icon of course the same way can be done via strings but i just used icons looks better imo.
I really have a lot to learn...
Nice stuff.
Thanks for this mate.
Posts 110 of 10 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?