forked from CasualX/SourceProtect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotect.cfg
86 lines (67 loc) · 7.11 KB
/
protect.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// ========================================================
// TF2 AdBlock & Protection for TF2 by Casual v1.1. Updated by KIPdeKIP.
// ========================================================
//
// PLEASE READ THROUGH THIS FILE BEFORE USE!
// You might want to change a few settings depending on what servers you visit.
// Comment commands to prevent them from doing anything at all.
// -------------------------------------------------------
// General information
// -------------------------------------------------------
//
// By creating an alias with the same name as an existing ConVar or ConCommand you can prevent anyone from changing / executing that command.
// This config makes extensive use of it to prevent certain commands from executing.
// Example:
// alias unbindall "echo Blocked unbindall!" - will prevent you from executing this command (by accident)
// -------------------------------------------------------
// Advertisements
// -------------------------------------------------------
cl_disablehtmlmotd "1" // Disable HTML based MOTD. Change to "0" to allow HTML based MOTD.
cl_showtextmsg "0" // Prevents server messages from printing in the chatbox. (This includes your voice commands.) Change to "1" to allow server messages.
alias closed_htmlpage "echo Blocked closed_htmlpage!" // Does not notify the server when the MOTD closes.
alias fix_htmlpage "cmd closed_htmlpage" // Tells the server the MOTD has been closed.
//bind "KEY" "fix_htmlpage" // Uncomment and bind this to a key if you are experiencing issues with the MOTD reopening.
alias show_htmlpage "echo Blocked show_htmlpage!" // Does not notify the server when the MOTD opens.
alias cl_disablehtmlmotd "echo Blocked cl_disablehtmlmotd!" // Protects cl_disablehtmlmotd from being changed while the game is running.
alias cl_showtextmsg "echo Blocked cl_showtextmsg!" // Protects cl_showtextmsg from being changed while the game is running.
// -------------------------------------------------------
// Sound
// -------------------------------------------------------
alias play "echo Blocked play!" // Prevents servers playing sound files. (Also prevents the main menu music.)
alias playgamesound "echo Blocked playgamesound!" // Prevents servers playing sound files from the client computer.
alias sndplaydelay "echo Blocked sndplaydelay!" // Prevents servers playing sound files with a delay.
alias soundfade "echo Blocked soundfade!" // Prevents servers playing fading sound files.
// -------------------------------------------------------
// Sprays
// -------------------------------------------------------
cl_allowdownload "0" // Disables sprays. Change this to "1" to download sprays / jingles from the server.
cl_allowupload "0" // Disables jingles (sound sprays). Change to "1" to upload your spray / jingle to the server.
cl_customsounds "0" // Disables jingles (sound sprays). Change to "1" to enable jingles.
cl_logofile "" // Unsets the current spray image. Set this to the location of your spray to have it show up in-game.
cl_playerspraydisable "1" // Disables sprays. Change to "0" to enable sprays.
cl_soundfile "" // Unsets the current jingle. Set this to the location of your custom jingle to allow it to play in-game.
alias cl_allowdownload "echo Blocked cl_allowdownload!" // Protects cl_allowdownload from being changed while the game is running.
alias cl_allowupload "echo Blocked cl_allowupload!" // Protects cl_allowupload from being changed while the game is running.
alias cl_customsounds "echo Blocked cl_customsounds!" // Protects cl_customsounds from being changed while the game is running.
alias cl_logofile "echo Blocked cl_logofile!" // Protects cl_logofile from being changed while the game is running.
alias cl_playerspraydisable "echo Blocked cl_playerspraydisable!" // Protects cl_playerspraydisable from being changed while the game is running.
alias cl_soundfile "echo Blocked cl_soundfile!" // Protects cl_soundfile from being changed while the game is running.
// -------------------------------------------------------
// Custom maps
// -------------------------------------------------------
cl_downloadfilter "none" // Prevents custom maps and other files from being downloaded. Change to "mapsonly" if you visit servers with custom maps or another settings ("nosounds" or "all") to download custom files as well.
sv_allow_point_servercommand "disallow" // Protects against maps from executing commands. Change to "official" if it's needed on an offical map or "always" if you're using a custom map that uses point_servercommand entities.
alias cl_downloadfilter "echo Blocked cl_downloadfilter!" // Protects cl_downloadfilter from being changed while the game is running.
alias sv_allow_point_servercommand "echo Blocked sv_allow_point_servercommand!" // Protects sv_allow_point_servercommand from being changed while the game is running.
// -------------------------------------------------------
// Other server restictions
// -------------------------------------------------------
alias cl_spec_mode "echo Blocked cl_spec_mode!" // Does not notify the server when switching spectator view.
alias rpt_connect "echo Blocked rpt_connect!" // Prevents the server from running remote performance tests.
alias r_screenoverlay "echo Blocked r_screenoverlay!" // Prevents servers from showing screen overlays.
// -------------------------------------------------------
// User stupidity
// -------------------------------------------------------
cl_trading_show_requests_from "4" // Allow in-game trade requests from noone. Change to "3" for anyone, to "2" for friends and in-game players and to "1" for friends only.
alias unbindall "echo Blocked unbindall!" // Prevents the user from unbinding all their keys.
alias cl_trading_show_requests_from "echo Blocked cl_trading_show_requests_from!" // Protects cl_trading_show_requests_from from being changed while the game is running.