Yeah, you might want to change (1<<25) to something thats not already 
taken ;)

Chris Green wrote:
> I'm guessing you want "FCVAR_REPLICATED | FCVAR_NO_ANNOUNCE", not
> "FCVAR_REPLICATED & FCVAR_NO_ANNOUNCE" - ANDing those flags is going to
> produce a zero.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Tom
> Leighton
> Sent: Wednesday, April 30, 2008 10:29 AM
> To: Discussion of Half-Life Programming
> Subject: Re: [hlcoders] Orange Box Engine: CVar attributes?
>
> He said everything you need to know how to do it.
>
> Define the FCVAR_NO_ANNOUNCE in a header so you can use it,
>
> #define FCVAR_NO_ANNOUNCE (1<<25)
>
>
> Then on all your cvars put this as a flag
>
> ConVar blah("Blah", "test", ....., FCVAR_REPLICATED &
> FCVAR_NO_ANNOUNCE);
>
> Ronny Schedel wrote:
>   
>> Sorry, I didn't mention, it's for a server plugin.
>>
>>   
>>     
>>> // If the CVar has the FCVAR_NO_ANNOUNCE flag, don't announce it.
>>> if(pCVar->m_nFlags & FCVAR_NO_ANNOUNCE)
>>>    return;
>>>       
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>   
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to