cardoow (12-17-2010),Hell_Demon (12-19-2010),Matroix73 (08-18-2013),rovald (12-18-2010),shaunm2 (12-18-2010)
Code:struct weapon_t { char *aimAssistRangeScale; char z_crap[40]; float Unknow; char z_crap2[752]; qhandle_t WeaponShader; };usageCode:weapon_t* (__cdecl *GetWeapon)(int num) = (weapon_t* (__cdecl *)(int))0x50F140;//dword_C5C218 +8
Code:weapon_t* weapon = (weapon_t*)GetWeapon( clientInfo[i].Weapon );same way can be done with other entities/pickups/ammos of courseCode: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 ); }
pic:
https://img192.imageshack.us/img192/4175/shot0012fq.jpg
cardoow (12-17-2010),Hell_Demon (12-19-2010),Matroix73 (08-18-2013),rovald (12-18-2010),shaunm2 (12-18-2010)
This is helpful, thank you.
Ex Middleman
Why not click the "Thanks" button
Hell_Demon (12-19-2010)
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
I really have a lot to learn...
Nice stuff.
CoD Minion: Jan 13th 2011 to April 11 2011
MMORPG Minion Since: March 28th 2011 to April 11 2011
Don't be afraid to rep, you aren't loosing anything!
Don't forget your P&Q's. Press the thanks button if someone has helped.
jamesa1994@hotmail.com
Thanks for this mate.