Raised This Month: $32 Target: $400
 8% 

How to create a list of hidden TF2 variables and commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheEditor
New Member
Join Date: Aug 2017
Old 08-19-2017 , 18:02   How to create a list of hidden TF2 variables and commands
Reply With Quote #1

I know SourceMod can run commands and edit variables that are not normally available from the console, and I was wondering if there is anyway to create a complete list of these variables. If you were thinking about suggesting that I use the command 'cvarlist' I regret to inform you that the command only lists non-hidden commands
TheEditor is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 08-19-2017 , 19:59   Re: How to create a list of hidden TF2 variables and commands
Reply With Quote #2

You can write a plugin that checks every cvar for the flag that hides it. I'm sure there's code for this somewhere on the forum already.
Fyren is offline
TheEditor
New Member
Join Date: Aug 2017
Old 08-21-2017 , 12:20   Re: How to create a list of hidden TF2 variables and commands
Reply With Quote #3

I'm not familiar with checking for flags, could you give me a quick summary?
TheEditor is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 08-22-2017 , 09:56   Re: How to create a list of hidden TF2 variables and commands
Reply With Quote #4

Since you want to look through everything, you'd use FindFirstConCommand and then loop using FindNextConCommand. If you search the forums for either function name, you'll probably find examples.

You'll want to check if the flags contain FCVAR_DEVELOPMENTONLY and then do whatever you want if so. So, something like if (flags & FCVAR_DEVELOPMENTONLY) { ... } each iteration.
Fyren is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 08-22-2017 , 10:20   Re: How to create a list of hidden TF2 variables and commands
Reply With Quote #5

https://forums.alliedmods.net/showpo...81&postcount=4
Dr!fter is offline
Reply


Thread Tools
Display Modes

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 17:41.


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