Re: [hlcoders] ConVar question

2006-11-13 Thread Skillet
--
[ Picked text/plain from multipart/alternative ]
ConVar's marked FCVAR_REPLICATED are only able to be changed on the server
(by an admin), and are automatically networked to the client .  That's
probably what you're looking for.  Have a search in the HL2DM SDK for
mp_teamplay.

On 11/13/06, Emiel Regis <[EMAIL PROTECTED]> wrote:
>
> Hey,
>
> I'm still a noobie with Source engine and I got a question - I want to
> have some certain way of setting the gametype (something like g_gametype
> cvar in JKA, if you know what I mean) and I can't find a good way of
> dealing with that. I thought about a ConVar, but can they be transmitted
> between server and client? If so, how to do that? BTW, I want it to be
> changeable in the menu obviously, if it's more complicated.
>
> Thanks in advance.
>
> Emiel Regis
> www.moviebattles.com
> tne.invision-games.com
>
> ___
> 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



RE: [hlcoders] ConVar question

2006-11-13 Thread Ben Everett
Yes, ConVar's can be sent between the client and server... but why send
something that is explicitly server-side to the client? You can have the
client notified of ConVar changes by FCVAR_NOTIFY.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Emiel Regis
Sent: Monday, November 13, 2006 8:27 AM
To: hlcoders@list.valvesoftware.com
Subject: [hlcoders] ConVar question

Hey,

I'm still a noobie with Source engine and I got a question - I want to
have some certain way of setting the gametype (something like g_gametype
cvar in JKA, if you know what I mean) and I can't find a good way of
dealing with that. I thought about a ConVar, but can they be transmitted
between server and client? If so, how to do that? BTW, I want it to be
changeable in the menu obviously, if it's more complicated.

Thanks in advance.

Emiel Regis
www.moviebattles.com
tne.invision-games.com

___
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


__ NOD32 1.1820 (20061020) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders