Raised This Month: $ Target: $400
 0% 

I need an explanation of a define


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-13-2010 , 04:26   Re: I need an explanation of a define
Reply With Quote #2

MAX_ENTS simply tells how many entities can possibly be in the map. So instead of writing "900 + MAX_PLAYERS * 15" all the time, you use MAX_ENTS.

!! means "no" to "no", but giving you a bool value (1 or 0). If you had number 10, it will return number 1, if you had 0, you'll get 0.
Code:
new Number = 20;
Code:
Number = !Number // Number is now 0 ("not 20")
Code:
Number = 20; Number = !!Number; // Number is now 1 ("not 20" is 0, "not 0" is 1)
The "HOLDING_ENTS_ARRAY_SIZE" define is probably used to set the side of an array which holds the data of (all?) entities.

I'm not really familiar with "%", I'm afraid.
__________________

Last edited by hleV; 06-13-2010 at 04:30.
hleV 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 14:55.


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