Trying to get this to work on my server and I have some questions/concerns. Below is my server's modified whitelist:
Code:
whitelist
{
//
// 3 modifiers are allowed on file specifications:
//
// from_steam - only check the Steam cache for the file (ignore anything on disk)
// allow_from_disk - allow the file to come from disk
// check_crc - used with allow_from_disk - server does CRC checks on the client's file to make sure it matches
//
// The default modifier on all files is allow_from_disk. Thus, all files can come from disk and don't need CRC checks unless
// allow_from_disk can be set at the same time as check_crc. Use the + character in between them to signify this: allow_from_disk+check_crc.
//
// Three types of file specifications:
//
// 1. directory\*.* - refers to all files under the directory
// 2. directory\... - refers to all files under the directory and all directories under that (recursively)
// 3. directory\filename - refers to a single file
//
// By default, when in pure server mode, most content file types are only allowed to come from Steam.
//
addons\... allow_from_disk
cfg\... allow_from_disk
materials\... allow_from_disk
materials\effects\cloak allow_from_disk+check_crc
materials\effects\cloak_dudv allow_from_disk+check_crc
materials\effects\cloak_dx60 allow_from_disk+check_crc
materials\effects\cloak_dx80 allow_from_disk+check_crc
materials\effects\cloak_normal allow_from_disk+check_crc
materials\effects\cloak_view allow_from_disk+check_crc
materials\effects\cloakview_dx80 allow_from_disk+check_crc
materials\effects\tranquilized allow_from_disk+check_crc
materials\effects\slowfield_blue allow_from_disk+check_crc
materials\effects\slowfield_red allow_from_disk+check_crc
materials\effects\slowfield_green allow_from_disk+check_crc
materials\effects\slowfield_yellow allow_from_disk+check_crc
materials\effects\infected allow_from_disk+check_crc
materials\effects\fire_cloud2 allow_from_disk+check_crc
materials\effects\fisheyelens_dudv allow_from_disk+check_crc
materials\effects\fisheyelens_normal allow_from_disk+check_crc
materials\effects\flame allow_from_disk+check_crc
materials\effects\eyelid allow_from_disk+check_crc
maps\... allow_from_disk
models\... allow_from_disk
models\player\... allow_from_disk
models\grenades\... allow_from_disk
models\projectiles\... allow_from_disk
models\flag\... allow_from_disk
resource\... allow_from_disk
scripts\... allow_from_disk
shaders\... allow_from_disk+check_crc
sound\... allow_from_disk
sound\sound\player\footsteps\... allow_from_disk+check_crc
sound\buildable\sentry\sg_scan1 allow_from_disk+check_crc
sound\buildable\sentry\sg_scan2 allow_from_disk+check_crc
//
// Allow custom player models. Don't do CRC checks on them because the clients may all
// have different custom models and the server won't have them all.
//
//models\player\... allow_from_disk
//materials\models\player\... allow_from_disk
//
// Allow custom spray decals.
//
materials\temp\... allow_from_disk
materials\vgui\logos\... allow_from_disk
materials\vgui\logos\ui\... allow_from_disk
//
// (Uncomment and edit these for mods).
// Allow mod resources to come from disk.
//
// materials\mymod\... allow_from_disk+check_crc
// models\mymod\... allow_from_disk+check_crc
// sound\mymod\... allow_from_disk+check_crc
}
Mainly I'm trying to prevent asshats from messing with most material effects such as the cloak effect without preventing people from using custom models/other materials such as FDA's pizza box or the TFC Character models. Is the whitelist I made correct and do I need to specify folders such as addons(for sourcemod plugins/config) as well as player scripts/config files that are allowed? What if a folder is not specified at all? Does that mean it simply won't allow any differences with the unspecified folder or will it not even include that folder in its check?