[HELP]Weapons stats

Newbie Spellweaver
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
tIHsSBR - [HELP]Weapons stats - RaGEZONE Forums
 
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");
        }


       [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]
 
Upvote 0
Back