Re: [hlcoders] Orange Box Engine: CVar attributes?

2008-05-04 Thread Saul Rennison
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

Re: [hlcoders] Orange Box Engine: CVar attributes?

2008-05-02 Thread Chris Green
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 (125) Then on all your cvars put this as a flag ConVar blah

[hlcoders] Orange Box Engine: CVar attributes?

2008-04-30 Thread Ronny Schedel
Hello, we used FCVAR_NOTIFY in the past for some CVars we want to see in the server rules. But since one of the last updates, the changes to these CVars will be announced to the clients ingame also, but we don't want. In the beginning we had the FCVAR_SERVER to achieve this, but it was removed

Re: [hlcoders] Orange Box Engine: CVar attributes?

2008-04-30 Thread Saul Rennison
Uhm, I think FCVAR_NOTIFY'd CVars are announced in clientmode.cpp, in there you can do something like: // Get the ConVar ConVar* pCVar = cvar-FindVar(event-GetString(cvarname)); if(!pCVar) return; // If the CVar has the FCVAR_NO_ANNOUNCE flag, don't announce it. if(pCVar-m_nFlags

Re: [hlcoders] Orange Box Engine: CVar attributes?

2008-04-30 Thread Ronny Schedel
Sorry, I didn't mention, it's for a server plugin. Uhm, I think FCVAR_NOTIFY'd CVars are announced in clientmode.cpp, in there you can do something like: // Get the ConVar ConVar* pCVar = cvar-FindVar(event-GetString(cvarname)); if(!pCVar) return; // If the CVar has the

Re: [hlcoders] Orange Box Engine: CVar attributes?

2008-04-30 Thread Tom Leighton
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 (125) 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

Re: [hlcoders] Orange Box Engine: CVar attributes?

2008-04-30 Thread Saul Rennison
Tom, that won't work in server plugins as the client will just ignore that flag. Tom Leighton wrote: 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 (125) Then on all your cvars put this as a flag

Re: [hlcoders] Orange Box Engine: CVar attributes?

2008-04-30 Thread Tom Leighton
Never mind then :S My Bad Saul Rennison wrote: Tom, that won't work in server plugins as the client will just ignore that flag. Tom Leighton wrote: 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

Re: [hlcoders] Orange Box Engine: CVar attributes?

2008-04-30 Thread 1nsane .
What about FCVAR_REPLICATED? On Wed, Apr 30, 2008 at 1:48 PM, Tom Leighton [EMAIL PROTECTED] wrote: Never mind then :S My Bad Saul Rennison wrote: Tom, that won't work in server plugins as the client will just ignore that flag. Tom Leighton wrote: He said everything you need to

Re: [hlcoders] Orange Box Engine: CVar attributes?

2008-04-30 Thread Ronny Schedel
It does not show the cvars in the server rules. What about FCVAR_REPLICATED? On Wed, Apr 30, 2008 at 1:48 PM, Tom Leighton [EMAIL PROTECTED] wrote: Never mind then :S My Bad Saul Rennison wrote: Tom, that won't work in server plugins as the client will just ignore that flag.