- Joined
- Aug 7, 2015
- Messages
- 39
- Reaction score
- 5
Hey Guys some one know how to make it when you click on the weapon you can see all the stats about the weapon if yes I really appreciate it if you can help me to do it
void getAdditionalDescForItem(uint32_t itemID, int Var1, int Var2, char* res)
const WeaponAttachmentConfig* clip = g_pWeaponArmory->getAttachmentConfig(Var2<0?(wc->FPSDefaultID[WPN_ATTM_CLIP]):(Var2));
if(clip)
{
int ammoLeft = Var1<0?clip->m_Clipsize:Var1;
if(ammoLeft > 0)
{
if(ammoLeft == 1)
sprintf(res, "%s: %d bullet left", clip->m_StoreName, ammoLeft);
else
sprintf(res, "%s: %d bullets left", clip->m_StoreName, ammoLeft);
}
else
sprintf(res, "%s", "NO AMMO");
}
[COLOR=#b22222] spread = spread * (1.0f+m_WeaponAttachmentStats[WPN_ATTM_STAT_SPREAD]);[/COLOR]
if(spread)
{
[COLOR=#a9a9a9][U]i[/U]nt ammoLeft = Var1<0?clip->m_Clipsize:Var1; if(ammoLeft > 0)
{
if(ammoLeft == 1)
sprintf(res, "%s: %d bullet left", clip->m_StoreName, ammoLeft);
else
sprintf(res, "%s: %d bullets left", clip->m_StoreName, ammoLeft);
}
else
sprintf(res, "%s", "NO AMMO");
}[/COLOR]
thank you so much I will try right now
Where i neet to put it on "FrontEndShared.cpp" or where
maybe some one can help ?