That's probably why only some CVARs are in A2S_RULES. I tried that but it only has about 35.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Saul Rennison Sent: Wednesday, 11 March 2009 8:51 PM To: Discussion of Half-Life Programming Subject: Re: [hlcoders] Server CVars I think you can if FCVAR_REPLICATED is set. Sent from my iPhone On 11 Mar 2009, at 06:04, "Yaakov Smith" <[email protected]> wrote: > No, I want to get the value of the CVAR from an external application > I'm > writing. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Andrew > Armstrong > Sent: Wednesday, 11 March 2009 5:00 PM > To: 'Discussion of Half-Life Programming' > Subject: Re: [hlcoders] Server CVars > > Yep, at least from a VSP environment, simply call: > > ConVar* hostName = cvar->FindVar("hostname"); > if (hostName) { > // Do stuff with this variable > std::string currentHostName = std::string(hostName->GetString()); > } > > You can also call GetInt() and a few others on the convar to > interpret it > differently; check the valve wiki. > > - Andrew > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Yaakov > Smith > Sent: Wednesday, 11 March 2009 1:29 PM > To: 'Discussion of Half-Life Programming' > Subject: [hlcoders] Server CVars > > Is there a way to get the value of server CVars, without using RCON? > > _______________________________________________ > 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 > _______________________________________________ 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

