Difference between revisions of "List of useful console commands/zh-hans"

From Team Fortress Wiki
Jump to: navigation, search
(重新排版)
Line 1: Line 1:
 +
{{DISPLAYTITLE:有用的主控台指令}}
 
{{cleanup|rip formatting}}
 
{{cleanup|rip formatting}}
 
{{Trans}}
 
{{Trans}}
Line 129: Line 130:
 
* ghost_spawn – 生成一个沿着特定道路移动的鬼魂,一段时间后小时 - 只在sv_cheats 值为1时可行
 
* ghost_spawn – 生成一个沿着特定道路移动的鬼魂,一段时间后小时 - 只在sv_cheats 值为1时可行
 
* taunt_by_name <taunt name> - 进行特定的嘲讽
 
* taunt_by_name <taunt name> - 进行特定的嘲讽
addcond commands 以下指令需要在 sv_cheat 1 条件下进行 addcond 5 – 给予玩家ubercharge效果但是被医生或补给器治疗或死亡时会消失 addcond 11 -给予玩家暴击效果但是被医生或补给器治疗或死亡时会消失 addcond 19 – 给予玩家迷你暴击 addcond 56 – 给予玩家暴击 addcond 57 – 给予玩家ubercharge效果 addcond 64 – 立即使玩家隐身,无论兵种 addcond 73 – 给予玩家快速医疗枪的ubercharge效果 addcond 74 – 让玩家变得十倍大并且拥有十倍生命, addcond 75 – 让玩家变得十倍小 addcond 114 – 让友方玩家和建筑物上显示轮廓
 
ent_ commands 以下指令需要在 sv_cheat 1 条件下进行 捡起物品 ent_create item_healthkit_small – 在玩家瞄准的地方生成一个小型医疗包 ent_create item_healthkit_medium -在玩家瞄准的地方生成一个中型医疗包 ent_create item_healthkit_full -在玩家瞄准的地方生成一个大型医疗包 ent_create item_ammopack_small -在玩家瞄准的地方生成一个小型弹药包 ent_create item_ammopack_medium -在玩家瞄准的地方生成一个中型弹药包 ent_create item_ammopack_full -在玩家瞄准的地方生成一个大型弹药包 ent_create item_teamflag -在玩家瞄准的地方生成一个白色的文件箱 ent_create item_currencypack_small -在玩家瞄准的地方生成一个小型金钱 ent_create item_currencypack_medium -在玩家瞄准的地方生成一个中型金钱 ent_create item_currencypack_large -在玩家瞄准的地方生成一个小大型金钱
 
建筑 ent_create obj_sentrygun – 在玩家瞄准的地方生成一个等级1的步哨 ent_create obj_dispenser -在玩家瞄准的地方生成一个等级1的补给器 ent_create obj_teleporter -在玩家瞄准的地方生成一个等级1的传送器 teamnum <2/3>: 红/蓝队(假如这个值是其他的会生成一个两队都可以攻击的建筑,假如是一个步哨,它只攻击蓝队) defaultupgrade <0/1/2>: 建筑等级1/2/3 spawnflags <number>:值为2使建筑无敌, 值为4使建筑可以升级, 值为8让步哨有无限弹药例如: ent_create obj_sentrygun teamnum 2 defaultupgrade 2 spawnflags 8 生成一个有无限弹药的红队步哨
 
中立的敌人和boss ent_create headless_hatman -在玩家瞄准的地方生成一个“连马都没有的无头骑士” ent_create eyeball_boss -在玩家瞄准的地方生成一个“魔眼” ent_create eyeball_boss teamnum 1 -在玩家瞄准的地方生成一个持续10秒蓝队“魔眼” ent_create eyeball_boss teamnum 2 -在玩家瞄准的地方生成一个持续10秒红队“魔眼”ent_create eyeball_boss teamnum 5 -在玩家瞄准的地方生成一个Boss形态的“魔眼”ent_create merasmus – 在玩家瞄准的地方生成一个“魔拉斯莫斯” ent_create tf_zombie – 在玩家瞄准的地方生成一个骷髅 ent_create tank_boss -在玩家瞄准的地方生成一个坦克
 
可选择的参数 (对特定指令有用): speed <integer>: 改变特定实体的速度 例子: ent_create tank_boss speed 1 生成一个速度极其慢的坦克 移除实体 ent_remove – 移除被准星瞄准的实体 ent_remove_all – 移除特定种类的实体,例如 ent_remove_all obj_sentrygun
 
tf_ commands tf_allow_player_use <0/1> -切换服务器里的 +use 指令, 对非官方地图有用 (默认: 0) – 只允许服务器管理员 tf_allow_taunt_switch <0/1/2> - 不允许/允许 在嘲讽时使用武器 (1 = 只能在嘲讽开始的时候; 2 = 在嘲讽时的任何时候) -只允许服务器管理员 (默认: 0) tf_always_deathanim <0/1> - 强制死亡动画 - 只允许服务器管理员 tf_always_loser <0/1> - 强制进行失败者的动画然后把视角变为第一人称 (但仍能使用武器) – 只在sv_cheats 1 tf_avoidteammates_pushaway <0/1> - 切换能不能推动队友 (默认: 1) tf_bot_add <number> -生成电脑控制的机器人 -只允许服务器管理员 tf_bot_flag_kill_on_touch <0/1> - 假如打开了,杀死携带情报箱的机器人(默认: 0) – 只在sv_cheats 值为1时可行 tf_damage_disablespread <0/1> - 打开武器的随机伤害分布 (+-10%) -只允许服务器管理员(默认: 0) tf_damage_multiplier_(blue/red) <number> - 降低指定队伍受到的伤害 -只允许服务器管理员 tf_dingalingaling <0/1> - 打开击中音效 (可以在进阶选项调整) tf_dingalingaling_repeat_delay <seconds> - 限制武器击中音效频率 (默认: 0) tf_dingaling_pitchmaxdmg <0-255> - Sets the pitch of maximum damage with your weapon, a lower pitch is recommended in most cases, (默认: 100) tf_dingaling_pitchmindmg <0-255> - Sets the pitch of minimum damage with your weapon, a higher pitch is recommended in most cases, (默认: 100) tf_dingaling_volume <0~1> - 设置击中音效的声音大小, (默认: 1.00) tf_flag_caps_per_round – 设置需要成功抢夺多少次情报以获得胜利 (默认: 3) -只允许服务器管理员 tf_forced_holiday <0-6> - 开启节日模式 (0: 默认; 1: 生日; 2: 万圣节; 3: 圣诞; 4 = 情人; 5 = Meet the Pyro (不使用); 6 = 满月) -只允许服务器管理员 tf_matchmaking_join_in_progress <0/1> - 休闲模式是否会把玩家加入一个正在进行的比赛 (默认: 1) tf_medieval <0/1> - 调整中世纪模式,需要地图允许 - 只允许服务器管理员 tf_medigun_autoheal <0/1> - 治疗是否需要一直按住左键 (可以在进阶选项中调整) (默认: 0) tf_medieval_autorp <0/1> - 在聊天窗口里是否把文字改为中世纪版本 (Default in medieval mode: 1, default in normal servers: 0) tf_medieval_thirdperson <0/1> - 在中世纪模式时是否打开第三人称 (默认: 0) tf_mvm_jump_to_wave <integer> - 在mvm中立即跳到某一波 tf_overtime_nag <0/1> - Turns endless shouting of "OVERTIME!" in Overtime off/on -只允许服务器管理员(默认: 0) tf_particles_disable_weather <0/1> - 移除在特定地图上的天气效果 (默认: 0) tf_playergib <0/1/2> - Handles the frequency of gibbing. (0 = never; 1 = default; 2 = always, including attacks that normally don't gib) -只允许服务器管理员 tf_powerup_mode <0/1> - 在地图中使用mannpower模式 -只允许服务器管理员 tf_romevision_opt_in <0/1> -在mvm模式中使用罗马机器人的外观 (默认: 0) tf_romevision_skip_prompt <0/1> - If nonzero, skip the prompt about sharing Romevision. (默认: 0) tf_scoreboard_mouse_mode <0/1/2> - 当玩家打开计分板,可以右键其他玩家的名字进行操作。比如“profile”会打开其个人主页Set to 1 to turn on at all times, and set to 2 to only turn on when the user clicks while viewing the scoreboard. (默认: 0) tf_scoreboard_ping_as_text <0/1> - 玩家的延迟是否用数字来代替信号强度(就是那几条不同颜色的棒子) (默认: 0) tf_taunt_first_person <0/1> - taunts are in first person for full-body awareness mode (for use with Oculus Rift) (默认: 0) tf_test_spellindex <-1-11> - 通过不同的索引来获得特殊的法术 (-1 = No spell; 0 = Fireball; 1 = Ball O' Bats; 2 = Uber Heal; 3 = Pumpkin MIRV; 4 = Blast Jump; 5 = Stealth; 6 = Teleport; 7 = Ball O' Lightning; 8 = Minify; 9 = Meteor Storm; 10 = Summon MONOCULUS; 11 = Summon Skeletons) -只允许服务器管理员(默认: -1) tf_use_fixed_weaponspreads <0/1> - Turns fixed, consistent spread for weapons like Shotgun, Scattergun and Shortstop off/on -只允许服务器管理员(默认: 0) tf_use_min_viewmodels <0/1> - 打开最小化模型,可以减少武器所占的屏幕空间 (默认: 0) tf_weapon_criticals <0/1> - 是否随机暴击 off/on -只允许服务器管理员(默认: 1) tf_weapon_criticals_melee <0-2> - I假如设置到0,近战武器将永远不会暴击 即使 tf_weapon_criticals 设置为1. 假如设置到1, 近战武器只有在 tf_weapon_criticals 是1时暴击. 假如设置到2,近战武器无论 tf_weapon_criticals 设置成什么都可以暴击. -只允许服务器管理员(默认: 1)
 
  
 +
'''模组制作者和管理员:'''
 +
* changelevel <mapname> - Changes the map.
 +
* cvarlist - View complete cvar list.
 +
* exec - Execute config file from the tf/cfg folder.
 +
* map <mapname> - Changes the map and restarts the server.Starts a new server if entered on the main menu - useful for bypassing the "Create New Server" dialog and map drop-down menu maps <*/mapname> - Display list of maps.
 +
* rcon_password <password> - gives player access to remote control commands of a server.
 +
* nextlevel <mapname> - Sets the next map to be played.
 +
* rcon <command> - Executes an rcon command.
 +
* rcon_address <ip address> - Sets the server address to send rcon commands to (if not set, console sends the command to the server that the player is currently in instead)
 +
* phys_pushscale <number> - Determines how far player corpses can be "pushed" when killed
 +
* phys_timescale <number> - Determines how fast props/projectiles move (默认: 1)
 +
* tf_ctf_bonus_time <number> - Determines how long (in seconds) guaranteed critical hits are enabled when the Intelligence is captured on a CTF map. 0 disables them entirely. Default is 10 seconds.
  
 +
''' 录制:''' Main article: Help:Recording demos record
 +
* <demo name> - 开始demo录制
 +
* stop – 停止demo录制
 +
* startmovie <moviename> - Opens up the source recorder during demo play back and allows for high quality avi format recording endmovie - Stops source recorder
 +
* host_framerate <number> - Tells the source recorder to record at a constant framerate
 +
* host_timescale <number> - Use in conjunction with host_framerate to produce a smooth video output. Can also be used alone to either speed up or slow down gameplay. Default is 1.0 - 只在sv_cheats 值为1时可行
 +
* demoui - Brings up a toolbox for replays (shift+F2 will also bring up the tool box) The following commands were introduced by the Demo Support feature (see May 31, 2016 Patch):
 +
* ds_record - Manually start a recording
 +
* ds_stop - Manually stop a recording
 +
* ds_mark <comment> - Bookmark the current demo tick count for future reference. The <comment> is an optional descriptor you may include.
 +
* ds_status - Report the current recording status
  
 +
=== 武器指令 ===
 +
可以用来切换到已装备的武器。
 +
*用法
 +
*:use <weapon_name>
 +
*参数
 +
**<weapon_name>
 +
***[[Scout/zh-hans|侦察兵]]
 +
**:tf_weapon_scattergun
 +
**:tf_weapon_handgun_scout_primary
 +
**:tf_weapon_soda_popper
 +
**:tf_weapon_pistol_scout
 +
**:tf_weapon_lunchbox_drink
 +
**:tf_weapon_jar_milk
 +
**:tf_weapon_handgun_scout_secondary
 +
**:tf_weapon_bat
 +
**:tf_weapon_bat_wood
 +
**:tf_weapon_bat_fish
 +
***[[Soldier/zh-hans|火箭兵]]
 +
**:tf_weapon_rocketlauncher
 +
**:tf_weapon_rocketlauncher_directhit
 +
**:tf_weapon_particle_cannon
 +
**:tf_weapon_shotgun_soldier
 +
**:tf_weapon_buff_item
 +
**:tf_weapon_raygun
 +
**:tf_weapon_shovel
 +
**:tf_weapon_katana
 +
***[[Pyro/zh-hans|火焰兵]]
 +
**:tf_weapon_flamethrower
 +
**:tf_weapon_shotgun_pyro
 +
**:tf_weapon_flaregun
 +
**:tf_weapon_fireaxe
 +
***[[Demoman/zh-hans|爆破兵]]
 +
**:tf_weapon_grenadelauncher
 +
**:tf_weapon_pipebomblauncher
 +
**:tf_weapon_bottle
 +
**:tf_weapon_sword
 +
**:tf_weapon_stickbomb
 +
**:tf_weapon_katana
 +
***[[Heavy/zh-hans|重装兵]]
 +
**:tf_weapon_minigun
 +
**:tf_weapon_shotgun_hwg
 +
**:tf_weapon_lunchbox
 +
**:tf_weapon_fists
 +
***[[Engineer/zh-hans|工程师]]
 +
**:tf_weapon_shotgun_primary
 +
**:tf_weapon_sentry_revenge
 +
**:tf_weapon_pistol
 +
**:tf_weapon_laser_pointer
 +
**:tf_weapon_mechanical_arm
 +
**:tf_weapon_wrench
 +
**:tf_weapon_robot_arm
 +
**:tf_weapon_pda_engineer_destroy
 +
**:tf_weapon_pda_engineer_build
 +
***[[Medic/zh-hant|医护兵]]
 +
**:tf_weapon_syringegun_medic
 +
**:tf_weapon_crossbow
 +
**:tf_weapon_medigun
 +
**:tf_weapon_bonesaw
 +
***[[Sniper/zh-hans|狙击手]]
 +
**:tf_weapon_sniperrifle
 +
**:tf_weapon_compound_bow
 +
**:tf_weapon_sniperrifle_decap
 +
**:tf_weapon_smg
 +
**:tf_weapon_jar
 +
**:tf_weapon_club
 +
***[[Spy/zh-hans|间谍]]
 +
**:tf_weapon_revolver
 +
**:tf_weapon_knife
 +
**:tf_weapon_pda_spy
 +
**:要切换到[[Electro Sapper/zh-hans|电子破坏器]]的话,请用 "build 3 0" 指令
  
模组制作者和管理员: changelevel <mapname> - Changes the map. cvarlist - View complete cvar list. exec - Execute config file from the tf/cfg folder. map <mapname> - Changes the map and restarts the server. Starts a new server if entered on the main menu - useful for bypassing the "Create New Server" dialog and map drop-down menu maps <*/mapname> - Display list of maps. rcon_password <password> - gives player access to remote control commands of a server. nextlevel <mapname> - Sets the next map to be played. rcon <command> - Executes an rcon command. rcon_address <ip address> - Sets the server address to send rcon commands to (if not set, console sends the command to the server that the player is currently in instead) phys_pushscale <number> - Determines how far player corpses can be "pushed" when killed phys_timescale <number> - Determines how fast props/projectiles move (默认: 1) tf_ctf_bonus_time <number> - Determines how long (in seconds) guaranteed critical hits are enabled when the Intelligence is captured on a CTF map. 0 disables them entirely. Default is 10 seconds.
+
== 参见 ==
录制: Main article: Help:Recording demos record <demo name> - 开始demo录制 stop – 停止demo录制 startmovie <moviename> - Opens up the source recorder during demo play back and allows for high quality avi format recording endmovie - Stops source recorder host_framerate <number> - Tells the source recorder to record at a constant framerate host_timescale <number> - Use in conjunction with host_framerate to produce a smooth video output. Can also be used alone to either speed up or slow down gameplay. Default is 1.0 - 只在sv_cheats 值为1时可行 demoui - Brings up a toolbox for replays (shift+F2 will also bring up the tool box) The following commands were introduced by the Demo Support feature (see May 31, 2016 Patch):
+
* [[Cheats/zh-hant|作弊码]]
ds_record - Manually start a recording ds_stop - Manually stop a recording ds_mark <comment> - Bookmark the current demo tick count for future reference. The <comment> is an optional descriptor you may include. ds_status - Report the current recording status Weapon commands[edit] The "use" command is used to switch to the specified weapon.
+
* [[Scripting/zh-hant|脚本]]
Pictogram comment.png use is similar to the 'slot' commands, but cannot be used for voice commands.
+
 
Syntax use <weapon_name> Arguments <weapon_name> Scout tf_weapon_scattergun tf_weapon_handgun_scout_primary tf_weapon_soda_popper tf_weapon_pistol_scout tf_weapon_lunchbox_drink tf_weapon_jar_milk tf_weapon_handgun_scout_secondary tf_weapon_cleaver tf_weapon_bat tf_weapon_bat_wood tf_weapon_bat_fish Soldier tf_weapon_rocketlauncher tf_weapon_rocketlauncher_directhit tf_weapon_particle_cannon tf_weapon_shotgun_soldier tf_weapon_buff_item tf_weapon_raygun tf_weapon_shovel tf_weapon_katana tf_weapon_rocketlauncher_airstrike Pyro tf_weapon_flamethrower tf_weapon_shotgun_pyro tf_weapon_flaregun tf_weapon_fireaxe Demoman tf_weapon_grenadelauncher tf_weapon_pipebomblauncher tf_weapon_bottle tf_weapon_sword tf_weapon_stickbomb tf_weapon_katana Heavy Weapons Guy tf_weapon_minigun tf_weapon_shotgun_hwg tf_weapon_lunchbox tf_weapon_fists Engineer tf_weapon_shotgun_primary tf_weapon_sentry_revenge tf_weapon_pistol tf_weapon_laser_pointer tf_weapon_mechanical_arm tf_weapon_wrench tf_weapon_robot_arm tf_weapon_pda_engineer_destroy tf_weapon_pda_engineer_build Medic tf_weapon_syringegun_medic tf_weapon_crossbow tf_weapon_medigun tf_weapon_bonesaw Sniper tf_weapon_sniperrifle tf_weapon_compound_bow tf_weapon_sniperrifle_decap tf_weapon_smg tf_weapon_jar tf_weapon_club tf_weapon_sniperrifle_classic Spy tf_weapon_revolver tf_weapon_knife tf_weapon_pda_spy 装备电子工兵, 用: "build 3 0"
+
[[Category:Lists/zh-hans|Useful console commands]]
其它指令 invnext – 切换到下一武器 invprev -切换到上一武器 lastinv -切换到上一次使用一武器
 

Revision as of 03:16, 30 January 2018

游戏中的主控台画面

以下是一些有用的主控台指令,你可以利用开发者主控台来调整游戏和图形的设定。在选项中的进阶选项可以启用主控台。所有 autoexec.cfg 里的指令都会在游戏启动后自动执行。

指令清單

cl_

  • cl_ commands cl_ask_blacklist_opt_out <0/1> -当你在一个服务器只玩了很少时间就退出后,是否会问你“是否把服务器加入黑名单” (默认: 0)
  • cl_ask_favorite_opt_out <0/1> -当你在一个服务器玩了很长时间就退出后,是否会问你“是否把服务器加入“收藏夹” (默认: 0)
  • cl_autoreload <0/1> - 是否自动装弹 (可以在进阶选项中调整)
  • cl_autorezoom <0/1> - 狙击步枪射击后是否再次开镜(可以在进阶选项中调整) (默认: 0)
  • cl_burninggibs <0/1> - 是否开启燃烧的尸体碎片(?) (默认: 0) cl_drawhud <0/1> - 开启/关闭 HUD – 默认: 1)
  • cl_first_person_uses_world_model <0/1> -只在sv_cheats 值为1时可行( 给vr使用的) (默认: 0)
  • cl_flipviewmodels <0/1> -左右手模型(可以在进阶选项中调整) (默认: 0) cl_mvm_wave_status_visible_during_wave <0/1> - 在“曼恩对抗机器”模式中是否一直在hud上显示剩余的机器人数
  • cl_new_impact_effects <0/1> -是否开启新的反射效果, 在眼镜上比较明显 (默认: 1)
  • cl_showfps <0/1/2> - 显示帧率(关闭/real-time/rounded)
  • cl_spec_carrieditems <0/1> - 当你在观战一位玩家时是否显示他的非原配物品

tf_

  • tf_allow_player_use <0/1> -切换服务器里的 +use 指令, 对非官方地图有用 (默认: 0) – 只允许服务器管理员
  • tf_allow_taunt_switch <0/1/2> - 不允许/允许 在嘲讽时使用武器 (1 = 只能在嘲讽开始的时候; 2 = 在嘲讽时的任何时候) -只允许服务器管理员 (默认: 0)
  • tf_always_deathanim <0/1> - 强制死亡动画 - 只允许服务器管理员
  • tf_always_loser <0/1> - 强制进行失败者的动画然后把视角变为第一人称 (但仍能使用武器) – 只在sv_cheats 1
  • tf_avoidteammates_pushaway <0/1> - 切换能不能推动队友 (默认: 1)
  • tf_bot_add <number> -生成电脑控制的机器人 -只允许服务器管理员
  • tf_bot_flag_kill_on_touch <0/1> - 假如打开了,杀死携带情报箱的机器人(默认: 0) – 只在sv_cheats 值为1时可行
  • tf_damage_disablespread <0/1> - 打开武器的随机伤害分布 (+-10%) -只允许服务器管理员(默认: 0)
  • tf_damage_multiplier_(blue/red) <number> - 降低指定队伍受到的伤害 -只允许服务器管理员
  • tf_dingalingaling <0/1> - 打开击中音效 (可以在进阶选项调整)
  • tf_dingalingaling_repeat_delay <seconds> - 限制武器击中音效频率 (默认: 0)
  • tf_dingaling_pitchmaxdmg <0-255> - Sets the pitch of maximum damage with your weapon, a lower pitch is recommended in most cases, (默认: 100)
  • tf_dingaling_pitchmindmg <0-255> - Sets the pitch of minimum damage with your weapon, a higher pitch is recommended in most cases, (默认: 100)
  • tf_dingaling_volume <0~1> - 设置击中音效的声音大小, (默认: 1.00)
  • tf_flag_caps_per_round – 设置需要成功抢夺多少次情报以获得胜利 (默认: 3) -只允许服务器管理员
  • tf_forced_holiday <0-6> - 开启节日模式 (0: 默认; 1: 生日; 2: 万圣节; 3: 圣诞; 4 = 情人; 5 = Meet the Pyro (不使用); 6 = 满月) -只允许服务器管理员
  • tf_matchmaking_join_in_progress <0/1> - 休闲模式是否会把玩家加入一个正在进行的比赛 (默认: 1)
  • tf_medieval <0/1> - 调整中世纪模式,需要地图允许 - 只允许服务器管理员
  • tf_medigun_autoheal <0/1> - 治疗是否需要一直按住左键 (可以在进阶选项中调整) (默认: 0)
  • tf_medieval_autorp <0/1> - 在聊天窗口里是否把文字改为中世纪版本 (Default in medieval mode: 1, default in normal servers: 0)
  • tf_medieval_thirdperson <0/1> - 在中世纪模式时是否打开第三人称 (默认: 0)
  • tf_mvm_jump_to_wave <integer> - 在mvm中立即跳到某一波
  • tf_overtime_nag <0/1> - Turns endless shouting of "OVERTIME!" in Overtime off/on -只允许服务器管理员(默认: 0)
  • tf_particles_disable_weather <0/1> - 移除在特定地图上的天气效果 (默认: 0)
  • tf_playergib <0/1/2> - Handles the frequency of gibbing. (0 = never; 1 = default; 2 = always, including attacks that normally don't gib) -只允许服务器管理员
  • tf_powerup_mode <0/1> - 在地图中使用mannpower模式 -只允许服务器管理员
  • tf_romevision_opt_in <0/1> -在mvm模式中使用罗马机器人的外观 (默认: 0)
  • tf_romevision_skip_prompt <0/1> - If nonzero, skip the prompt about sharing Romevision. (默认: 0)
  • tf_scoreboard_mouse_mode <0/1/2> - 当玩家打开计分板,可以右键其他玩家的名字进行操作。比如“profile”会打开其个人主页Set to 1 to turn on at all times, and set to 2 to only turn on when the user clicks while viewing the scoreboard. (默认: 0)
  • tf_scoreboard_ping_as_text <0/1> - 玩家的延迟是否用数字来代替信号强度(就是那几条不同颜色的棒子) (默认: 0)
  • tf_taunt_first_person <0/1> - taunts are in first person for full-body awareness mode (for use with Oculus Rift) (默认: 0)
  • tf_test_spellindex <-1-11> - 通过不同的索引来获得特殊的法术 (-1 = No spell; 0 = Fireball; 1 = Ball O' Bats; 2 = Uber Heal; 3 = Pumpkin MIRV; 4 = Blast Jump; 5 = Stealth; 6 = Teleport; 7 = Ball O' Lightning; 8 = Minify; 9 = Meteor Storm; 10 = Summon MONOCULUS; 11 = Summon Skeletons) -只允许服务器管理员(默认: -1)
  • tf_use_fixed_weaponspreads <0/1> - Turns fixed, consistent spread for weapons like Shotgun, Scattergun and Shortstop off/on -只允许服务器管理员(默认: 0)
  • tf_use_min_viewmodels <0/1> - 打开最小化模型,可以减少武器所占的屏幕空间 (默认: 0)
  • tf_weapon_criticals <0/1> - 是否随机暴击 off/on -只允许服务器管理员(默认: 1)
  • tf_weapon_criticals_melee <0-2> - I假如设置到0,近战武器将永远不会暴击 即使
  • tf_weapon_criticals 设置为1. 假如设置到1, 近战武器只有在
  • tf_weapon_criticals 是1时暴击. 假如设置到2,近战武器无论
  • tf_weapon_criticals 设置成什么都可以暴击. -只允许服务器管理员(默认: 1)

sv_

  • sv_cheats <0/1> - 是否作弊 -只允许服务器管理员
  • sv_gravity <number> - 设置服务器重力 (默认: 800)- 只允许服务器管理员
  • sv_lan <0/1> - 是否允许不是局域网内的玩家加入. -只允许服务器管理员 Pictogram comment.png In order to host a listen (in-game) server that people can connect to over the Internet, your 27015 port must be forwarded
  • sv_password <password> - 设置服务器密码 -只允许服务器管理员
  • sv_pure <0/1/2> - 设置多少自制的内容可以在服务器使用 (HUDs, 动画, 声音 模型) (0: Allow all; 1: Uses sv_pure.cfg; 2: Uses sv_pure_strict.cfg) -只允许服务器管理员

mp_

  • mp_autoteambalance <0/1> - 是否自动队伍平衡 -只允许服务器管理员
  • mp_disable_respawn_times <0/1> - 是否有重生时间 -只允许服务器管理员
  • mp_forcerespawnplayers – 立即重生服务器里的所有玩家 (和机器人) - 只在sv_cheats 值为1时可行.
  • mp_forcewin – 立即使发布这条指令的那一队赢 - 只在sv_cheats 值为1时可行.
  • mp_friendlyfire <0/1> - 打开队友伤害-只允许服务器管理员
  • mp_highlander <0/1> - 开启 Highlander 模式 - 只允许服务器管理员
  • mp_idledealmethod <0/1/2> - 对于挂机玩家如何处置 (0: 不踢; 1: 移至观战然后踢掉; 2: 立即踢掉) - 只允许服务器管理员
  • mp_restartgame <seconds until restart> - 重新开始这回合然后重置这回合时间 - 只允许服务器管理员
  • mp_scrambleteams – 立即打乱两方队伍
  • mp_team_unbalance_limit <number> - 当队伍人数达到多少时,玩家会强制加入另一队 -只允许服务器管理员
  • mp_timelimit <minutes> - 这张地图可以进行多长时间直到换下一张地图 - 只允许服务器管理员
  • mp_usehwmmodels <-1/0/1> - Disables/Enables HWM models used in TF2 Source Filmmaker shorts (-1: Never, 0: GPU-Based; 1: Always)
  • mp_usehwmvcds <-1/0/1> - Disables/Enables mouth movement on HWM models (-1: Never, 0: GPU-Based; 1: Always)
  • mp_waitingforplayers_cancel <0/1> - 假如不是0,取消 "等待玩家..." 时间 - 只允许服务器管理员

hud_

  • hud_combattext <0/1> - 伤害显示是否开启
  • hud_combattext_batching <0/1> - 伤害显示是否叠加(-8 -8 -8 = -24)
  • hud_combattext_batching_window <.1~2> - 在多少秒内造成的伤害会被叠加
  • hud_combattext_doesnt_block_overhead_text <0/1> - Turns overwriting the particle effects used for critical hits and mini-crits off/on
  • hud_combattext_healing <0/1> - 是否显示治疗队友量
  • hud_deathnotice_time <seconds> - 击杀信息可以显示多久
  • hud_reloadscheme - Used to fix various HUD-color errors or lingering Crit-effects
  • hud_saytext_time <seconds> - 聊天信息可以显示多长时间 (默认: 12)

其他指令

玩家用

  • bind <key> <command> - 将某个键绑定成特定命令 bind <key> - 显示这个键绑定的命令
  • unbind <key> - 取消绑定这个键
  • unbindall – 取消绑定所有的键
  • dropitem – 丢下情报箱.
  • kill – 自杀
  • explode – 爆炸自杀
  • +attack – 让玩家不断地进行“按左键”动作 (跟 M1一样) (-attack 会关闭)
  • +attack2 -让玩家不断地进行“按右键”动作 (跟 M2一样) (-attack2 会关闭)
  • +attack3 -让玩家不断地进行“按中键”动作 (跟 M3和鼠标中间一样) (-attack3 会关闭)
  • fov_desired <75-90> - 设置视野范围 (更高的值会让你看得更广,消耗更多的fps) (可以在进阶选项中调整)
  • jointeam <red/blue/auto/spectator> - 强制加入队伍 (在有很多人想要加入队伍,然后你卡在“观战视角”时使用)
  • jpeg – 摄像
  • noclip – 允许玩家穿墙 - 只在sv_cheats 值为1时可行
  • retry – 重新尝试连接到上一个服务器
  • status – 显示地图和链接状态的数据
  • viewmodel_fov <number> -设置武器模型的距离 (可以在进阶选项中调整)
  • r_drawviewmodel <0/1> - 是否显示武器模型 (可以在进阶选项中调整)
  • restart - Restarts the current server dedicated server only find <text> - Displays all commands that match a string of text
  • hurtme <number> - 给自己造成伤害 (如果值为负给自己回血) - 只在sv_cheats 值为1时可行
  • zoom_sensitivity_ratio <0~1> - 设置开镜时的灵敏度
  • net_graph <0-4> 显示各种信息(如帧率,延迟取决于设定的数值)
  • thirdperson –第三人称 - 只在sv_cheats 值为1时可行
  • thirdperson_mayamode – 打开第三人称但不随着玩家移动 - 只在sv_cheats 值为1时可行
  • thirdperson_platformer <0/1> - If active, the mouse controls the camera while movement is controlled relative to it. If thirdperson_mayamode isn't active, walking towards the camera will 'push' your view away.
  • firstperson - Return to first person perspective. If thirdperson_platformer is still set to 1, you will not be able to move the camera during taunts.
  • currency_give <amount> - 在mvm模式中给自己多少钱 (最大值是 32767一次, 更高的数值则会无效) - 只在sv_cheats 值为1时可行
  • snd_restart – 在任何模式中重置声音
  • player_ready_toggle – 在竞技模式和mvm中是否准备
  • shake – 轻微的抖动屏幕,像推车最后爆炸一样 - 只在sv_cheats 值为1时可行
  • ghost_spawn – 生成一个沿着特定道路移动的鬼魂,一段时间后小时 - 只在sv_cheats 值为1时可行
  • taunt_by_name <taunt name> - 进行特定的嘲讽

模组制作者和管理员:

  • changelevel <mapname> - Changes the map.
  • cvarlist - View complete cvar list.
  • exec - Execute config file from the tf/cfg folder.
  • map <mapname> - Changes the map and restarts the server.Starts a new server if entered on the main menu - useful for bypassing the "Create New Server" dialog and map drop-down menu maps <*/mapname> - Display list of maps.
  • rcon_password <password> - gives player access to remote control commands of a server.
  • nextlevel <mapname> - Sets the next map to be played.
  • rcon <command> - Executes an rcon command.
  • rcon_address <ip address> - Sets the server address to send rcon commands to (if not set, console sends the command to the server that the player is currently in instead)
  • phys_pushscale <number> - Determines how far player corpses can be "pushed" when killed
  • phys_timescale <number> - Determines how fast props/projectiles move (默认: 1)
  • tf_ctf_bonus_time <number> - Determines how long (in seconds) guaranteed critical hits are enabled when the Intelligence is captured on a CTF map. 0 disables them entirely. Default is 10 seconds.

录制: Main article: Help:Recording demos record

  • <demo name> - 开始demo录制
  • stop – 停止demo录制
  • startmovie <moviename> - Opens up the source recorder during demo play back and allows for high quality avi format recording endmovie - Stops source recorder
  • host_framerate <number> - Tells the source recorder to record at a constant framerate
  • host_timescale <number> - Use in conjunction with host_framerate to produce a smooth video output. Can also be used alone to either speed up or slow down gameplay. Default is 1.0 - 只在sv_cheats 值为1时可行
  • demoui - Brings up a toolbox for replays (shift+F2 will also bring up the tool box) The following commands were introduced by the Demo Support feature (see May 31, 2016 Patch):
  • ds_record - Manually start a recording
  • ds_stop - Manually stop a recording
  • ds_mark <comment> - Bookmark the current demo tick count for future reference. The <comment> is an optional descriptor you may include.
  • ds_status - Report the current recording status

武器指令

可以用来切换到已装备的武器。

  • 用法
    use <weapon_name>
  • 参数
    • <weapon_name>
      tf_weapon_scattergun
      tf_weapon_handgun_scout_primary
      tf_weapon_soda_popper
      tf_weapon_pistol_scout
      tf_weapon_lunchbox_drink
      tf_weapon_jar_milk
      tf_weapon_handgun_scout_secondary
      tf_weapon_bat
      tf_weapon_bat_wood
      tf_weapon_bat_fish
      tf_weapon_rocketlauncher
      tf_weapon_rocketlauncher_directhit
      tf_weapon_particle_cannon
      tf_weapon_shotgun_soldier
      tf_weapon_buff_item
      tf_weapon_raygun
      tf_weapon_shovel
      tf_weapon_katana
      tf_weapon_flamethrower
      tf_weapon_shotgun_pyro
      tf_weapon_flaregun
      tf_weapon_fireaxe
      tf_weapon_grenadelauncher
      tf_weapon_pipebomblauncher
      tf_weapon_bottle
      tf_weapon_sword
      tf_weapon_stickbomb
      tf_weapon_katana
      tf_weapon_minigun
      tf_weapon_shotgun_hwg
      tf_weapon_lunchbox
      tf_weapon_fists
      tf_weapon_shotgun_primary
      tf_weapon_sentry_revenge
      tf_weapon_pistol
      tf_weapon_laser_pointer
      tf_weapon_mechanical_arm
      tf_weapon_wrench
      tf_weapon_robot_arm
      tf_weapon_pda_engineer_destroy
      tf_weapon_pda_engineer_build
      tf_weapon_syringegun_medic
      tf_weapon_crossbow
      tf_weapon_medigun
      tf_weapon_bonesaw
      tf_weapon_sniperrifle
      tf_weapon_compound_bow
      tf_weapon_sniperrifle_decap
      tf_weapon_smg
      tf_weapon_jar
      tf_weapon_club
      tf_weapon_revolver
      tf_weapon_knife
      tf_weapon_pda_spy
      要切换到电子破坏器的话,请用 "build 3 0" 指令

参见