Raised This Month: $ Target: $400
 0% 

Linking an Entity to a Bool


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-07-2010 , 21:44   Re: Linking an Entity to a Bool
Reply With Quote #8

Kinda offtopic:
You could get down to one array by using the bits of the array entries for the properties.

PHP Code:
#define IS_GLOWING (1<<0)
//...

if(properties[deagle1] & IS_GLOWING)
{
    
// ...
}
if( 
/*...*/ )
{
    
//...

limited to 32 properties.
__________________
fysiks 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 07:25.


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