01 02 03 04 05 06 07 08 09 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 | "GameInfo" { game "DOTA 2" gamelogo 1 type multiplayer_only nomodels 1 nohimodel 1 nocrosshair 0 GameData "dota.fgd" SupportsDX8 0 FileSystem { SteamAppId 816 // This will mount all the GCFs we need (240=CS:S, 220=HL2). ToolsAppId 211 // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc. // // The code that loads this file automatically does a few things here: // // 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin // 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end. // For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it. // 3. For the first "Game" search path, it adds a search path called "MOD". // 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH". // // // Search paths are relative to the base directory, which is where hl2.exe is found. // // |gameinfo_path| points at the directory where gameinfo.txt is. // We always want to mount that directory relative to gameinfo.txt, so // people can mount stuff in c:\mymod, and the main game resources are in // someplace like c:\program files\valve\steam\steamapps\<username>\half-life 2. // SearchPaths { GameBin |gameinfo_path|addons/metamod/bin Game |gameinfo_path|. Game platform } } } |
1 | srcds.exe -console -game dota +map dota |
1 | srcds.exe -console -game dota +map dota |
1 2 3 4 5 | "Languages" { "en" "English" "chi" "Chinese" } |
001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | /** * This file is used to set various options that are important to SourceMod's core. * If this file is missing or an option in this file is missing, then the default values will be used. */ "Core" { /** * This option determines if SourceMod logging is enabled. * * "on" - Logging is enabled (default) * "off" - Logging is disabled */ "Logging" "on" /** * This option determines how SourceMod logging should be handled. * * "daily" - New log file is created for each day (default) * "map" - New log file is created for each map change * "game" - Use game's log files */ "LogMode" "daily" /** * Language that multilingual enabled plugins and extensions will use to print messages. * Only languages listed in languages.cfg are valid. * * The default value is "en" */ "ServerLang" "chi" /** * String to use as the public chat trigger. Set an empty string to disable. */ "PublicChatTrigger" "!" /** * String to use as the silent chat trigger. Set an empty string to disable. */ "SilentChatTrigger" "/" /** * If a say command is a silent chat trigger, and is used by an admin, * but it does not evaluate to an actual command, it will be displayed * publicly. This setting allows you to suppress accidental typings. * * The default value is "no". A value of "yes" will supress. */ "SilentFailSuppress" "no" /** * Password setinfo key that clients must set. You must change this in order for * passwords to work, for security reasons. */ "PassInfoVar" "_password" /** * Specifies the sound that gets played when an item is selected from a menu. */ "MenuItemSound" "buttons/button14.wav" /** * Specifies the sound that gets played when an "Exit" button is selected * from a menu. */ "MenuExitSound" "buttons/combine_button7.wav" /** * Specifies the sound that gets played when an "Exit Back" button is selected * from a menu. This is the special "Back" button that is intended to roll back * to a previous menu. */ "MenuExitBackSound" "buttons/combine_button7.wav" /** * Enables or disables whether SourceMod reads a client's cl_language cvar to set * their language for server-side phrase translation. * * "on" - Translate using the client's language (default) * "off" - Translate using default server's language */ "AllowClLanguageVar" "On" /** * Enables or Disables SourceMod's automatic gamedata updating. * * The default value is "no". A value of "yes" will block the Auto Updater. */ "DisableAutoUpdate" "no" /** * If set to yes, a successful gamedata update will attempt to restart SourceMod. * SourceMod is unloaded and reloaded, and the map is changed to the current map. * Since gamedata updates occur when the server loads, impact should be minimal. * But to be safe, this option is disabled by default. */ "ForceRestartAfterUpdate" "no" /** * URL to use for retrieving update information. * SSL is not yet supported. */ "AutoUpdateURL" "http://update.sourcemod.net/update/" /** * Whether to show debug spew. * Currently this will log details about the gamedata updating process. */ "DebugSpew" "no" /** * If set to yes, SourceMod will validate steamid auth strings with the Steam backend before giving out admin access. * This can prevent malicious users from impersonating admins with stolen Steam apptickets. * If Steam is down, admins will not be authenticated until Steam comes back up. * This option increases the security of your server, but is still experimental. */ "SteamAuthstringValidation" "yes" /** * Enables or disables whether SourceMod blocks known or potentially malicious plugins from loading. * It is STRONGLY advised that this is left enabled, there have been cases in the past with plugins that * allow anyone to delete files on the server, gain full rcon control, etc. * * "yes" - Block malware or illegal plugins from loading (default) * "no" - Warn about malware or illegal plugins loading */ "BlockBadPlugins" "yes" /** * If a plugin takes too long to execute, hanging or freezing the game server in the process, * SourceMod will attempt to terminate that plugin after the specified timeout length has * passed. You can disable this feature by setting the value to "0". */ "SlowScriptTimeout" "8" } |
欢迎光临 99NETS网游模拟娱乐社区 (http://bbs2.99nets.me/) | Powered by Discuz! X3 |