[HELP]Weapons stats

Results 1 to 4 of 4
  1. #1
    Enthusiast McGrumpy is offline
    MemberRank
    Aug 2015 Join Date
    39Posts

    [HELP]Weapons stats

    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


  2. #2
    Account Upgraded | Title Enabled! Oosmar02 is offline
    MemberRank
    Sep 2013 Join Date
    FranceLocation
    894Posts

    Re: [HELP]Weapons stats

    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");
            }

  3. #3
    Enthusiast McGrumpy is offline
    MemberRank
    Aug 2015 Join Date
    39Posts

    Re: [HELP]Weapons stats

    thank you so much I will try right now

    - - - Updated - - -

    Where i neet to put it on "FrontEndShared.cpp" or where

    - - - Updated - - -

    maybe some one can help ?

  4. #4
    Account Upgraded | Title Enabled! GetRektBambi is offline
    MemberRank
    Oct 2015 Join Date
    268Posts

    Re: [HELP]Weapons stats

    Quote Originally Posted by McGrumpy View Post
    thank you so much I will try right now

    - - - Updated - - -

    Where i neet to put it on "FrontEndShared.cpp" or where

    - - - Updated - - -

    maybe some one can help ?
    Maybe spend some time working it out yourself?.. Isn't too hard.!



Advertisement