Raised This Month: $ Target: $400
 0% 

All the L4D Cvars and a logger


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
madcap
Senior Member
Join Date: Feb 2009
Old 02-27-2009 , 15:52   Re: All the L4D Cvars and a logger
Reply With Quote #4

Nice, I was actually writing something that did exactly this.

It would be nice to add the flags to the output (at least the important ones like CHEAT).

Try:

Code:
flag="";
if(cmdflags&FCVAR_CHEAT){flag="cheat ";}
if(cmdflags&FCVAR_NOTIFY){StrCat(flag, sizeof(flag), "notify ");}
if(cmdflags&FCVAR_PLUGIN){StrCat(flag, sizeof(flag), "plugin ");} 
etc...
TrimString(flag);
(where 'cmdflags' is my variable, I think you call yours 'flags')

Last edited by madcap; 02-27-2009 at 15:54.
madcap is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode