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

