Raised This Month: $ Target: $400
 0% 

How to get Armoury Entity Weapon ID ( CSW_* ) ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
souvikdas95
Senior Member
Join Date: Mar 2012
Old 05-09-2014 , 13:02   Re: How to get Armoury Entity Weapon ID ( CSW_* ) ?
Reply With Quote #5

@aron9forever - Then what is this -_- :

PHP Code:
GetWeaponBoxType ent )
{
    static 
weapon;
    for ( new 
i=1i<=5i++ )
    {
        
weapon get_pdata_cbase entm_rgpPlayerItems_CWeaponBox[i], XO_CWEAPONBOX );
        if( 
weapon )
            return 
cs_get_weapon_id weapon );
    }
    return 
0;

Couldn't I simply use cs_get_weapon_id ( ent ) instead of using this function?

What I think is, it's based on the class of weapons. Armoury Entity is what we get in maps where weapons are spawned on the ground. Once we pick it up, it turns into Weaponbox type ( as tested from Ham_Touch ). So I will have to make 2 different checks for that.

Last edited by souvikdas95; 05-09-2014 at 13:05.
souvikdas95 is offline
 



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 09:45.


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