Raised This Month: $51 Target: $400
 12% 

Get all weapons entities carried by player


Post New Thread Reply   
 
Thread Tools Display Modes
E1_531G
Senior Member
Join Date: Dec 2017
Old 03-24-2019 , 15:06   Re: Get all weapons entities carried by player
Reply With Quote #11

Quote:
Originally Posted by rtxa
That would make it more efficient, can you show me how to move over all items with m_pNext?
PHP Code:
iWeapon get_pdata_cbase(idm_rgpPlayerItems_CBasePlayer[iSlot]); // get from slot

    
while( iWeapon )
    {
        
// do something

        
iWeapon get_pdata_cbase(iWeaponm_pNextXO_CBASEPLAYERITEM); // get next in the same slot
    

__________________
My English is A0
E1_531G is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode