x
ETF2L is looking for new Staff to recruit! Are you interested in supporting the league? Then click here for more details on what we can offer and how to apply! 

Forum

scripts to check and display disabled items and cvars...

Created 2nd April 2015 @ 19:16

Add A Reply Pages: 1

ImprovisE

I made this to make checking for things easier.

Basically when you spawn on top left corner you will see whitelisted (disabled) items, when you click next time you check for values server of you are on, and when you click 2nd time you turn values on and bind mouse1 to +attack again.

How it checks for variables on server is simple, it enters them into console and when command is entered without parameter it just gives back its value.
It is very important for CheckServerVariables to execute twice, otherwise it doesn’t look right.
Having 2 clear commands on each script made it work better, don’t know why.

CheckDisabledItems.cfg
clear; clear;
con_filter_enable 1;
developer 1;
con_notifytime 60;
con_filter_text "has been disabled";
echo "has been disabled check:";
bind mouse1 ExitInfo
alias "ExitInfo" "exec CheckServerVariables; clear; exec CheckServerVariables;"

CheckServerVariables.cfg
clear; clear;
con_filter_enable 1; developer 1; con_notifytime 60;
con_filter_text "" = "";
bind mouse1 ExitInfo
alias "ExitInfo" "con_filter_enable 0; developer 0; con_notifytime 8; bind mouse1 +attack";
sv_region;
mp_tournament_whitelist;
tf_birthday;
mp_winlimit;
tf_forced_holiday;
sv_allow_wait_command;
tf_weapon_criticals;

now you only have to add “exec CheckDisabledItems;” on your class.cfg under …SteamApps//common//TeamFortress 2//tf//cfg without quotes of course, and you should be set.
If you want to add new variable to be tested just edit checkServerVariables and add some new commands.
If you want to bypass whitelist check on disabled items, you can just copy exec CheckServerVariables.

Known issues – sometimes filters not working early enough on checkdisableditems, figuring out a way to make this filter get set earlier.


Last edited by ImprovisE,

Alfie

(ETF2L Donator)
bobs

nice, I love clever stuff with con_filter

Add A Reply Pages: 1