Hello ,
I quickly look at and I think it is something like this:
Search :
Code:
void getAdditionalDescForItem(uint32_t itemID, int Var1, int Var2, char* res)
LOOK
Code:
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");
}
spread = spread * (1.0f+m_WeaponAttachmentStats[WPN_ATTM_STAT_SPREAD]);
if(spread)
{
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");
}