sm_vs_dump // Dumps all found VScripts from the servers /scripts/vscripts/ file system to /scripts/vscripts/vscripts_dump/. Automatically decodes if required. sm_vs_encrypt // Usage: sm_vs_encrpt <filename.nut>. Encode the specified script, must be inside the servers /scripts/vscripts/ folder, include the extension. sm_vs_exec // Usage: sm_vs_exec <filename>. Executes a VScript file. This is a wrapper to the script_execute command. Can recompile plugin to use logic_script instead. sm_vs_file // Usage: sm_vs_file <filename>. Extracts the specified VScript from the Valve file system to the servers /scripts/vscripts/vscripts_dump/ folder. Automatically decodes if required. sm_vs_list // Show data config tree of modified scripts for the current map. sm_vs_listen // Toggle printing to server console the names of scripts being executed. sm_vs_reload // Reloads the data config. This also replaces files in the override folder.
// When a script is matched and modified they are saved to your servers /scripts/vscripts/vscripts_overrides/ folder. // Do not save files there, they will be overwritten. // The extension ".nut" or ".nuc" shouldn't be added to names below.
// This is an example script with comments on the features provided, delete the sections you don't need. // For L4D2 I recommend keeping the "jukebox_dlc1", "jukebox_main" and "helms_deep" sections. "vscript_replacer" { // /* CS:GO + ANY: delete the // on this line to comment out everything and start from fresh. // All maps ".+" { // Matches all script names. // ".+" // { // Script name will be matched with RegEx. // 1=RegEx match script name. 2=RegEx search string for replacement. 3=Use RegEx for both. Delete line to not use RegEx. // "regex" "1" // }
// L4D2: No more jukebox debug spam! "jukebox_dlc1" { // Find and replace the string literally, you must always escape any quotes or backslashes: " with \" and \ with \\ // Strings must be less than 8192 characters. Use the file "override" keyvalue for anything longer. "DBG <- ::JUKEBOX_DEBUG <- true" "DBG <- ::JUKEBOX_DEBUG <- false" } "jukebox_main" { "DBG <- ::JUKEBOX_DEBUG <- true" "DBG <- ::JUKEBOX_DEBUG <- false" } }
// Map name to activate on. Supports RegEx matching. For RegEx testing use: https://regex101.com/ or any similar site. // This matches "c1m1_" to "c99m99_" for example, all Valve maps in L4D2. "c[0-9]m[0-9]_.+" { // VScript filename to override, searches the Valve file system and gamedir. // This matches the script "some_vscript_file". "some_vscript_file" { // The "override" key is reserved for replacing the whole VScript file with a custom one, if both files exist. // The specified value must point to a filename in your servers /scripts/vscripts/vscripts_custom/ folder. // The file is copied to the your servers /scripts/vscripts/vscripts_override/ folder. // Any script using a custom override will take priority when the script name is also matched using RegEx. "override" "my_vscript_file"
// Can still use other keys to find and replace strings within the override file. Even when matched with RegEx. "some_random_var = false;" "some_random_var = true;" } }
// L4D2: This map was stolen by a megalomaniac. It used to execute the "KillServer" command when detecting MetaMod or SourceMod. // Why block the communities plugins? We will always reverse. "helms_deep" { // Main script "helms_deep_.+_survival" { // Matches the script name and strings with RegEx. "regex" "3"
// Replace all string occurrences:
// RegEx replace all matched SteamIDs with Gabe's SteamID. "(STEAM_[0-5]:[0-1]:[0-9]+)" "STEAM_1:0:11101" // Your donators can fuck off too. } } }