Talk:Developer Console Control: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:


--[[User:Spoons|Spoons]]
--[[User:Spoons|Spoons]]
== FindVar vs. ConVarRef ==
There should probably be a mention of ConVarRef in the ConVar class section. convar.h states:
<syntaxhighlight lang="cpp">
// Used to read/write convars that already exist (replaces the FindVar method)
</syntaxhighlight>
I get the impression this is a faster method of using FindVar. I'd rather wait for someone with more experience before editing what is there, though.

Revision as of 09:20, 19 January 2015

I think it's worth noting that Msg() only outputs to the server console, and you use ClientPrint() for output to clients. --Megiddo 14:53, 2 Jul 2005 (PDT)


I'm fairly certain that "engine->Cmd_Argc" is deprecated and was replaced by "args.ArgC." But, When I attempt to use "args", the class is unidentified. Is there any header I am missing?

--Spoons

FindVar vs. ConVarRef

There should probably be a mention of ConVarRef in the ConVar class section. convar.h states:

// Used to read/write convars that already exist (replaces the FindVar method)

I get the impression this is a faster method of using FindVar. I'd rather wait for someone with more experience before editing what is there, though.