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

From Team Fortress Wiki
Jump to: navigation, search
m (tf_)
(cl_)
Line 9: Line 9:
 
== 指令清單 ==
 
== 指令清單 ==
 
=== cl_  ===
 
=== cl_  ===
* cl_ask_blacklist_opt_out 0/1 - 設定離開伺服器後會不會問「是否加入黑名單」
+
* cl_ask_blacklist_opt_out 0/1 - 離開伺服器後會不會問「是否加入黑名單」
* cl_ask_favorite_opt_out 0/1  - 設定離開伺服器後會不會問「是否加入最愛」
+
* cl_ask_favorite_opt_out 0/1  - 離開伺服器後會不會問「是否加入最愛」
* cl_autoreload 0/1 - 設定是否自動裝填彈藥
+
* cl_autoreload 0/1 - 是否自動裝填彈藥
* cl_autorezoom 0/1 - turns Sniper Rifle re-zoom off/on
+
* cl_autorezoom 0/1 - 狙擊槍開槍後是否自動重開狙擊鏡
* cl_burninggibs 0/1 - 設定屍塊是否會著火
+
* cl_burninggibs 0/1 - 屍塊是否會著火
* cl_crosshair_file - 設定準星的形狀,例如 "crosshair1"。"" 是標準準星
+
* cl_crosshair_file - 設定準星的形狀,例如 "crosshair1" 。 "" 是標準準星
 
* cl_drawhud 0/1 - 隱藏/顯示抬頭顯示器(需要 sv_cheats 1)
 
* cl_drawhud 0/1 - 隱藏/顯示抬頭顯示器(需要 sv_cheats 1)
* cl_flipviewmodels 0/1 - 設定是否「翻轉」第一人稱模型(左手拿槍),如果開啟,第一人稱模型會左右顛倒,電子破壞器和偽裝用工具上的字也會變成鏡像
+
* cl_flipviewmodels 0/1 - 設定是否「翻轉」第一人稱模型(左手拿槍),如果開啟,第一人稱模型會左右顛倒,[[Electro Sapper/zh-hant|電子破壞器]]和[[Disguise Kit/zh-hant|偽裝用工具]]上的字也會變成鏡像
 
* cl_interp - sets how far character models are interpolated (drawn away from their actual position) in the world, a good standard value for hitscan weapons is 0.034
 
* cl_interp - sets how far character models are interpolated (drawn away from their actual position) in the world, a good standard value for hitscan weapons is 0.034
* cl_new_impact_effects 0/1 - turns new, better looking impact effects off/on, most noticeable on glass
+
* cl_new_impact_effects 0/1 - 使用更精緻的碰撞效果,子彈射到玻璃時特別明顯
 
* cl_ragdoll_collide 0/1 - turns ragdoll collisions on/off (client-side only)
 
* cl_ragdoll_collide 0/1 - turns ragdoll collisions on/off (client-side only)
* cl_ragdoll_fade_time - sets time until ragdolls disappear (client-side only)
+
* cl_ragdoll_fade_time - 屍體過多久會消失
 
* cl_showbackpackrarities 0/1 - turns color-coded items in trade off/on
 
* cl_showbackpackrarities 0/1 - turns color-coded items in trade off/on
* cl_showfps 0/1/2 - shows framerate (off/real-time/rounded)
+
* cl_showfps 0/1/2 - 顯示 FPS (不顯示/顯示每一刻的/顯示一段時間內的)
 
* cl_showpos 0/1 - 顯示玩家的座標、面向角度和移動速度
 
* cl_showpos 0/1 - 顯示玩家的座標、面向角度和移動速度
 
* cl_yawspeed - 設定用 +left 和 +right 指令旋轉的旋轉速率
 
* cl_yawspeed - 設定用 +left 和 +right 指令旋轉的旋轉速率

Revision as of 09:33, 31 August 2011

遊戲中的主控台畫面

以下是一些有用的主控台指令,你可以利用開發者主控台來調整遊戲和圖形的設定。在選項中的進階選項可以啟用主控台。所有 autoexec.cfg 裡的指令都會在遊戲啟動後自動執行。

這些設定也可以放在各職業的 .cfg 裡,方便調整各職業專用的設定。

指令清單

cl_

  • cl_ask_blacklist_opt_out 0/1 - 離開伺服器後會不會問「是否加入黑名單」
  • cl_ask_favorite_opt_out 0/1 - 離開伺服器後會不會問「是否加入最愛」
  • cl_autoreload 0/1 - 是否自動裝填彈藥
  • cl_autorezoom 0/1 - 狙擊槍開槍後是否自動重開狙擊鏡
  • cl_burninggibs 0/1 - 屍塊是否會著火
  • cl_crosshair_file - 設定準星的形狀,例如 "crosshair1" 。 "" 是標準準星
  • cl_drawhud 0/1 - 隱藏/顯示抬頭顯示器(需要 sv_cheats 1)
  • cl_flipviewmodels 0/1 - 設定是否「翻轉」第一人稱模型(左手拿槍),如果開啟,第一人稱模型會左右顛倒,電子破壞器偽裝用工具上的字也會變成鏡像
  • cl_interp - sets how far character models are interpolated (drawn away from their actual position) in the world, a good standard value for hitscan weapons is 0.034
  • cl_new_impact_effects 0/1 - 使用更精緻的碰撞效果,子彈射到玻璃時特別明顯
  • cl_ragdoll_collide 0/1 - turns ragdoll collisions on/off (client-side only)
  • cl_ragdoll_fade_time - 屍體過多久會消失
  • cl_showbackpackrarities 0/1 - turns color-coded items in trade off/on
  • cl_showfps 0/1/2 - 顯示 FPS (不顯示/顯示每一刻的/顯示一段時間內的)
  • cl_showpos 0/1 - 顯示玩家的座標、面向角度和移動速度
  • cl_yawspeed - 設定用 +left 和 +right 指令旋轉的旋轉速率
  • cl_spec_carrieditems - 觀察者模式時顯示玩家身上的非標準物品

tf_

  • tf_allow_player_use 0/1 - 是否允許伺服器上的玩家使用 +use 指令,這在一些自訂的地圖會派上用場。預設值是 0(伺服器專用
  • tf_damage_disablespread 0/1 - turns random damage-spread (+-10%) for weapons off/on - server operator only
  • tf_dingaling_pitchmaxdmg - sets the pitch when doing maximum damage with your weapon, a lower pitch is recommended in most cases, standard is 100
  • tf_dingaling_pitchmindmg - sets the pitch when doing minimum damage with your weapon, a higher pitch is recommended in most cases, standard is 100
  • tf_dingaling_volume - 設定擊中目標時「叮」的音效音量,標準值是 1.00
  • tf_dingaling_wav_override - allows using a custom hit sound. Note: No longer used. To use a custom hit sound, rename your sound file "hitsound.wav", and place it in the "tf/sound/ui/" folder
  • tf_dingalingaling 0/1 - 設定武器打到敵人有沒有「叮」的音效
  • tf_forced_holiday 0/2/3 - 啟用節日模式(0 - 預設值;2 - 萬聖節;3 - 生日模式),伺服器專用
  • tf_medieval 0/1 - 啟用中世紀模式,換地圖後生效(伺服器專用
  • tf_medigun_autoheal 0/1 - 醫療槍是否會自動治療目標,不用一直按著滑鼠
  • tf_medieval_autorp 0/1 - enables/disables automatic medieval-style text modification in the chat box
  • tf_medieval_thirdperson 0/1 - 在中世紀模式使用第三人稱視野
  • tf_overtime_nag 0/1 - 設定延長時間是否會不斷放出 "OVERTIME!" 的音效(伺服器專用
  • tf_use_fixed_weaponspreads 0/1 - 讓霰彈槍有整齊的子彈散射(伺服器專用
  • tf_weapon_criticals 0/1 - 是否有隨機爆擊(伺服器專用

sv_

  • sv_cheats 0/1 - 啟用作弊碼(伺服器專用)
  • sv_lan - cvar for local area network - server operator only
  • sv_pure - cvar for managing custom content - server operator only

mp_

  • mp_autoteambalance - cvar for automatic team balancing. - server operator only
  • mp_disable_respawn_times - cvar for respawn times. - server operator only
  • mp_idledealmethod - cvar for managing idle players. - server operator only
  • mp_restartgame - restarts the round and resets the round time. - server operator only
  • mp_teams_unbalance_limit - cvar for team force balance. - server operator only
  • mp_timelimit - cvar for map timelimit. - server operator only
  • mp_usehwmmodels 1 & mp_usehwmvcds 1 - makes use of the high-polygon class models used in the 'Meet the Team' videos.
  • mp_waitingforplayerscancel 1 - cancels "waiting for players..." time - server operator only

hud_

  • hud_combattext 0/1 - 是否顯示傷害敵人時頭上跳出的數字

其它指令

玩家用

  • bind <key> <command> - Binds a key with a command.
  • unbind <key> - unbinds a key
  • dropitem - 丟掉情報箱
  • explode - 自爆
  • kill - 自殺
  • fov_desired 70-90 - Set desired field of view. (higher values show more of the battlefield at the cost of fps)
  • jointeam red/blue/auto/spectator - Force team. (use this if you are stuck in "dead spectator" mode when too many people attempt to join a team at the same time)
  • jpeg - Take a jpeg screenshot.
  • "record fix; stop" - use this to fix various HUD-color errors or lingering Crit-effects
  • retry - Retry connection to last server.
  • status - Display map and connection status.
  • viewmodel_fov <number> - sets distance in which your weapons are drawn, higher values show more of the weapon and arms but may show missing parts
  • r_drawviewmodel 0/1 - turns viewmodels on and off
  • restart - restarts the current server
  • find <command> - a search function that displays all commands with searched term
  • hurtme <number> - deals given amount of damage(can be negative for extra health) - sv_cheats 1 only
  • zoom_sensitivity_ratio <number> - Sets the ratio of sensitivy while zoomed in with the Sniper Rifle with accordance to actual sensitivity.
  • net_graph <1-6>
    • Depending on the input value, different amounts of information will be shown such as ping, fps, lerp, packet loss, etc.

For moderators/admins

  • changelevel <mapname> - changes the map
  • cvarlist - View complete cvar list.
  • exec - Execute config file.
  • map <mapname> - changes the map and restarts the server - server operator only
    • Starts a new server if entered on the main menu - useful for bypassing the "Create New Server" dialog and map drop-down menu
  • maps - Display list of maps.
  • rcon_password <password> - gives player access to rcon commands
  • 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)

For recording

  • record <demo name> - records a demo
    • stop - stops the recording of a 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
  • demoui - brings up a toolbox for replays (shift+F2 will also bring up the tool box)

武器指令

The "use" command is used to equip the specified weapon.

  • 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_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
      • 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
      • Spy
      tf_weapon_revolver
      tf_weapon_knife
      tf_weapon_pda_spy
      To equip Electro Sapper, use: "build 3 0"

參見