Rework lang to use captions

This replaces the earlier developer console system.

Also performs a small change to the way the ENGINEER_PDA setting works.
This commit is contained in:
Lyrositor
2014-02-22 22:42:53 +01:00
parent 7dbaeffc43
commit cca4bb569e
50 changed files with 58 additions and 403 deletions

View File

@@ -1,55 +1,50 @@
// Main Language File
// This is a workaround for a limitation of the "developer 1" output.
// When active and filtering, it seems only the first word following the echo
// command gets printed, unless it's surrounded in quotation marks.
// This file ties all of the echo lines in this folder together.
// Groups all the language definitions together.
alias show_debug_output_text "exec lang/show_debug_output_text.cfg"
alias disguise_demoman_text "cc_emit #Disguise.Demoman"
alias disguise_engineer_text "cc_emit #Disguise.Engineer"
alias disguise_pyro_text "cc_emit #Disguise.Pyro"
alias disguise_sniper_text "cc_emit #Disguise.Sniper"
alias disguise_remove_text "cc_emit #Disguise.Remove"
alias con_filter_clear_text "exec lang/con_filter_clear_text.cfg"
alias music_1_text "cc_emit #Music.1"
alias music_2_text "cc_emit #Music.2"
alias music_3_text "cc_emit #Music.3"
alias music_4_text "cc_emit #Music.4"
alias music_5_text "cc_emit #Music.5"
alias music_6_text "cc_emit #Music.6"
alias music_7_text "cc_emit #Music.7"
alias music_8_text "cc_emit #Music.8"
alias music_9_text "cc_emit #Music.9"
alias music_10_text "cc_emit #Music.10"
alias music_11_text "cc_emit #Music.11"
alias music_12_text "cc_emit #Music.12"
alias music_13_text "cc_emit #Music.13"
alias music_14_text "cc_emit #Music.14"
alias music_15_text "cc_emit #Music.15"
alias music_16_text "cc_emit #Music.16"
alias music_17_text "cc_emit #Music.17"
alias music_18_text "cc_emit #Music.18"
alias music_19_text "cc_emit #Music.19"
alias music_1_text "exec lang/music_1_text.cfg"
alias music_2_text "exec lang/music_2_text.cfg"
alias music_3_text "exec lang/music_3_text.cfg"
alias music_4_text "exec lang/music_4_text.cfg"
alias music_5_text "exec lang/music_5_text.cfg"
alias music_6_text "exec lang/music_6_text.cfg"
alias music_7_text "exec lang/music_7_text.cfg"
alias music_8_text "exec lang/music_8_text.cfg"
alias music_9_text "exec lang/music_9_text.cfg"
alias music_10_text "exec lang/music_10_text.cfg"
alias music_11_text "exec lang/music_11_text.cfg"
alias music_12_text "exec lang/music_12_text.cfg"
alias music_13_text "exec lang/music_13_text.cfg"
alias music_14_text "exec lang/music_14_text.cfg"
alias music_15_text "exec lang/music_15_text.cfg"
alias music_16_text "exec lang/music_16_text.cfg"
alias music_17_text "exec lang/music_17_text.cfg"
alias music_18_text "exec lang/music_18_text.cfg"
alias music_19_text "exec lang/music_19_text.cfg"
alias show_debug_output_text "cc_emit #DebugOutput.Show"
alias switch_loadout_A_text "exec lang/switch_loadout_A_text.cfg"
alias switch_loadout_B_text "exec lang/switch_loadout_B_text.cfg"
alias switch_loadout_C_text "exec lang/switch_loadout_C_text.cfg"
alias switch_loadout_D_text "exec lang/switch_loadout_D_text.cfg"
alias switch_loadout_A_text "cc_emit #Loadout.A"
alias switch_loadout_B_text "cc_emit #Loadout.B"
alias switch_loadout_C_text "cc_emit #Loadout.C"
alias switch_loadout_D_text "cc_emit #Loadout.D"
alias disguise_demoman_text "exec lang/disguise_demoman_text.cfg"
alias disguise_pyro_text "exec lang/disguise_pyro_text.cfg"
alias disguise_sniper_text "exec lang/disguise_sniper_text.cfg"
alias disguise_engineer_text "exec lang/disguise_engineer_text.cfg"
alias disguise_remove_text "exec lang/disguise_remove_text.cfg"
alias auto_disguise_on_text "cc_emit #AutoDisguise.ON"
alias auto_disguise_off_text "cc_emit #AutoDisguise.OFF"
alias auto_disguise_on_text "exec lang/auto_disguise_on_text.cfg"
alias auto_disguise_off_text "exec lang/auto_disguise_off_text.cfg"
alias pyro_airblast_text "say_team Pyro, please airblast me."
alias pyro_airblast_text "exec lang/pyro_airblast_text.cfg
alias spy_check_scout_text "exec lang/spy_check_scout_text.cfg"
alias spy_check_soldier_text "exec lang/spy_check_soldier_text.cfg"
alias spy_check_pyro_text "exec lang/spy_check_pyro_text.cfg"
alias spy_check_demoman_text "exec lang/spy_check_demoman_text.cfg"
alias spy_check_heavy_text "exec lang/spy_check_heavy_text.cfg"
alias spy_check_engineer_text "exec lang/spy_check_engineer_text.cfg"
alias spy_check_medic_text "exec lang/spy_check_medic_text.cfg"
alias spy_check_sniper_text "exec lang/spy_check_sniper_text.cfg"
alias spy_check_spy_text "exec lang/spy_check_spy_text.cfg"
alias spy_check_scout_text "say_team Scout is Spy."
alias spy_check_soldier_text "say_team Soldier is Spy."
alias spy_check_pyro_text "say_team Pyro is Spy."
alias spy_check_demoman_text "say_team Demoman is Spy."
alias spy_check_heavy_text "say_team Heavy is Spy."
alias spy_check_engineer_text "say_team Engineer is Spy."
alias spy_check_medic_text "say_team Medic is Spy."
alias spy_check_sniper_text "say_team Sniper is Spy."
alias spy_check_spy_text "say_team Spy is enemy Spy."

View File

@@ -29,8 +29,9 @@ alias DEBUG_OUTPUT_ON_START "show_output"
// ENGINEER_PDA
// Values: pda_on | pda_off
// Enables or disables the Engineer's construction and destruction PDA (not
// essential with the additional key bindings).
// You can still bring it up with mouse scroll.
// essential with the additional key bindings). When disabled, the building
// keys are each shifted two keys to the left.
// You can still bring the PDAs up with mouse scroll.
alias ENGINEER_PDA "pda_off"
// LOADOUT_SWITCH

View File

@@ -11,11 +11,8 @@ exec _reset.cfg
// Debug Output
// Bind the debug output to a key.
con_notifytime 4 // If you want the debug text to last longer, change this setting.
alias cft_clear con_filter_clear_text
alias cft_script "con_filter_text |"
alias hide_output "developer 0; cft_clear; con_filter_enable 0; alias toggle_output show_output"
alias show_output "clear; developer 1; cft_script; con_filter_enable 1; show_debug_output_text; alias toggle_output hide_output"
alias hide_output "closecaption 0; cc_subtitles 0; alias toggle_output show_output"
alias show_output "closecaption 1; cc_subtitles 1; cc_lang tf2-scripts; show_debug_output_text; alias toggle_output hide_output"
alias toggle_output show_output
bind P toggle_output
DEBUG_OUTPUT_ON_START

View File

@@ -10,14 +10,16 @@ engineer_music
// Buildings
// Key 6-9 automatically destroy the associated building if it already exists,
// then selects the relevant building blueprint, ready to be built.
alias key6 "destroy 2 0; build 2 0;" // Sentry Gun
alias key7 "destroy 0 0; build 0 0;" // Dispenser
alias key8 "destroy 1 0; build 1 0;" // Teleporter Entrance
alias key9 "destroy 1 1; build 1 1;" // Teleporter Exit
alias sentry "destroy 2 0; build 2 0;" // Sentry Gun
alias dispenser "destroy 0 0; build 0 0;" // Dispenser
alias t_entrance "destroy 1 0; build 1 0;" // Teleporter Entrance
alias t_exit "destroy 1 1; build 1 1;" // Teleporter Exit
alias buildings_4 "alias key4 sentry; alias key5 dispenser; alias key6 t_entrance; alias key7 t_exit"
alias buildings_6 "alias key6 sentry; alias key7 dispenser; alias key8 t_entrance; alias key9 t_exit"
// PDA
// Enables or disables the Engineer's PDA.
alias pda_on "alias key4 slot4; bind 4 key4; alias key5 slot5; bind 5 key5"
alias pda_off "unbind 4; unbind 5;"
alias pda_on "alias key4 slot4; alias key5 slot5; buildings_6"
alias pda_off "buildings_4; alias key8 slot8; alias key9 slot9"
ENGINEER_PDA

View File

@@ -1 +0,0 @@
echo "| Automatic Disguise: OFF"

View File

@@ -1 +0,0 @@
echo "| Automatic Disguise: ON"

View File

@@ -1,3 +0,0 @@
// Console Workaround File
// Used to work around a limitation of the console.
con_filter_text ""

View File

@@ -1 +0,0 @@
echo "| Disguising as Demoman."

View File

@@ -1 +0,0 @@
echo "| Disguising as Engineer."

View File

@@ -1 +0,0 @@
echo "| Disguising as Pyro."

View File

@@ -1 +0,0 @@
echo "| Removing disguise."

View File

@@ -1 +0,0 @@
echo "| Disguising as Sniper."

View File

@@ -1 +0,0 @@
echo "| Currently Playing: More Gun"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: A Little Heart to Heart"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: MEDIC!"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Archimedes"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Dreams of Cruelty"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: The Calm"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: ROBOTS!"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: TF2 Saxxy 2011 Theme"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Haunted Fortress 2"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Mann vs. Machine Upgrade Station Music (Unused)"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Team Fortress 2 (Main Theme)"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Playing With Danger"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Rocket Jump Waltz"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: The Art of War"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Faster Than a Speeding Bullet"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Petite Chou-Fleur"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Right Behind You"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Intruder Alert"

View File

@@ -1 +0,0 @@
echo "| Currently Playing: Drunken Pipe Bomb"

View File

@@ -1 +0,0 @@
say_team "Pyro, please airblast me."

View File

@@ -1 +0,0 @@
echo "| Showing debug output."

View File

@@ -1 +0,0 @@
say_team "Demoman is Spy."

View File

@@ -1 +0,0 @@
say_team "Engineer is Spy."

View File

@@ -1 +0,0 @@
say_team "Heavy is Spy."

View File

@@ -1 +0,0 @@
say_team "Medic is Spy."

View File

@@ -1 +0,0 @@
say_team "Pyro is Spy."

View File

@@ -1 +0,0 @@
say_team "Scout is Spy."

View File

@@ -1 +0,0 @@
say_team "Sniper is Spy."

View File

@@ -1 +0,0 @@
say_team "Soldier is Spy."

View File

@@ -1 +0,0 @@
say_team "Spy is enemy Spy."

View File

@@ -1 +0,0 @@
echo "| Switching to loadout A."

View File

@@ -1 +0,0 @@
echo "| Switching to loadout B."

View File

@@ -1 +0,0 @@
echo "| Switching to loadout C."

View File

@@ -1 +0,0 @@
echo "| Switching to loadout D."