diff --git a/README.md b/README.md index b27e462..721ce50 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,29 @@ TF2-Scripts =========== -A collection of useful scripts for Team Fortress 2. +*A collection of scripts I have found to be useful for playing Team Fortress 2.* + +## Features ## +Most features are usable by all classes, but a few are class-specific. If you would like to see more features implemented send me a message and I'll do my best, if I find it interesting: +* **Debug Output:** prints debug messages to the screen (such as current spy disguise and so on). +* **Auto Crouch-Jump:** automatically makes you crouch-jump when playing the spacebar. +* **Loadout Switch:** binds 4 Shift key combinations to each loadout. +* **Netgraph:** displays the netgraph on the score screen (Tab key). +* **Spy-Checking Lines:** sends a team message notifying players about an exposed spy (e.g. "Pyro is Spy."). +* **Suicide Explosion:** makes you explode at the touch of a button. +* **Engineer: Building Bindings:** binds keys 6 through 9 to the Engineer's buildings, automatically destroying any existing buildings when pressed. +* **Spy: Disguise Bindings:** binds key 5 through 9 to some of the Spy's disguises. +* **Spy: Auto Disguise:** automatically disguises the Spy on left-click. If this is not desirable (for example, when placing a sapper), use MOUSE3 to perform a normal left-click. Also automatically changes the disguise's current weapon when actually switching weapons. Press F at any time to disable all auto disguise functions. + +### Settings ### +TF2-Scripts comes with several settings used to disable certain undesired features; edit them in `cfg\scripts\settings.cfg`: +* `AUTO_CROUCH_JUMP` +* `AUTO_DISGUISE` +* `CLEAR_CONSOLE_ON_START` +* `LOADOUT_SWITCH` +* `SHOW_NETGRAPH` +* `SPY_LINES` +* `SUICIDE_EXPLOSION` + +## Installation ## +To install, locate your Team Fortress 2 installation's `cfg` folder (usually located at `C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\tf\cfg`), then copy-and-paste the contents of this script pack's `cfg` folder to it. \ No newline at end of file diff --git a/cfg/autoexec.cfg b/cfg/autoexec.cfg new file mode 100644 index 0000000..5a5a6a4 --- /dev/null +++ b/cfg/autoexec.cfg @@ -0,0 +1 @@ +exec scripts/main.cfg \ No newline at end of file diff --git a/cfg/demoman.cfg b/cfg/demoman.cfg new file mode 100644 index 0000000..04940a3 --- /dev/null +++ b/cfg/demoman.cfg @@ -0,0 +1 @@ +exec scripts/classes/demoman.cfg \ No newline at end of file diff --git a/cfg/engineer.cfg b/cfg/engineer.cfg new file mode 100644 index 0000000..b3f0fcf --- /dev/null +++ b/cfg/engineer.cfg @@ -0,0 +1 @@ +exec scripts/classes/engineer.cfg \ No newline at end of file diff --git a/cfg/heavyweapons.cfg b/cfg/heavyweapons.cfg new file mode 100644 index 0000000..a6814de --- /dev/null +++ b/cfg/heavyweapons.cfg @@ -0,0 +1 @@ +exec scripts/classes/heavyweapons.cfg \ No newline at end of file diff --git a/cfg/medic.cfg b/cfg/medic.cfg new file mode 100644 index 0000000..694702a --- /dev/null +++ b/cfg/medic.cfg @@ -0,0 +1 @@ +exec scripts/classes/medic.cfg \ No newline at end of file diff --git a/cfg/pyro.cfg b/cfg/pyro.cfg new file mode 100644 index 0000000..c95d832 --- /dev/null +++ b/cfg/pyro.cfg @@ -0,0 +1 @@ +exec scripts/classes/pyro.cfg \ No newline at end of file diff --git a/cfg/scout.cfg b/cfg/scout.cfg new file mode 100644 index 0000000..bbf06d0 --- /dev/null +++ b/cfg/scout.cfg @@ -0,0 +1 @@ +exec scripts/classes/scout.cfg \ No newline at end of file diff --git a/cfg/scripts/classes/demoman.cfg b/cfg/scripts/classes/demoman.cfg new file mode 100644 index 0000000..6ad3af3 --- /dev/null +++ b/cfg/scripts/classes/demoman.cfg @@ -0,0 +1,3 @@ +// Demoman Scripting + +exec scripts/reset.cfg \ No newline at end of file diff --git a/cfg/scripts/classes/engineer.cfg b/cfg/scripts/classes/engineer.cfg new file mode 100644 index 0000000..d1d7798 --- /dev/null +++ b/cfg/scripts/classes/engineer.cfg @@ -0,0 +1,11 @@ +// Engineer Scripting + +exec scripts/reset.cfg + +// 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 \ No newline at end of file diff --git a/cfg/scripts/classes/heavyweapons.cfg b/cfg/scripts/classes/heavyweapons.cfg new file mode 100644 index 0000000..5355f7d --- /dev/null +++ b/cfg/scripts/classes/heavyweapons.cfg @@ -0,0 +1,3 @@ +// Heavy Scripting + +exec scripts/reset.cfg \ No newline at end of file diff --git a/cfg/scripts/classes/medic.cfg b/cfg/scripts/classes/medic.cfg new file mode 100644 index 0000000..537275c --- /dev/null +++ b/cfg/scripts/classes/medic.cfg @@ -0,0 +1,3 @@ +// Medic Scripting + +exec scripts/reset.cfg \ No newline at end of file diff --git a/cfg/scripts/classes/pyro.cfg b/cfg/scripts/classes/pyro.cfg new file mode 100644 index 0000000..f75d3df --- /dev/null +++ b/cfg/scripts/classes/pyro.cfg @@ -0,0 +1,3 @@ +// Pyro Scripting + +exec scripts/reset.cfg \ No newline at end of file diff --git a/cfg/scripts/classes/scout.cfg b/cfg/scripts/classes/scout.cfg new file mode 100644 index 0000000..e49dfbf --- /dev/null +++ b/cfg/scripts/classes/scout.cfg @@ -0,0 +1,3 @@ +// Scout Scripting + +exec scripts/reset.cfg \ No newline at end of file diff --git a/cfg/scripts/classes/sniper.cfg b/cfg/scripts/classes/sniper.cfg new file mode 100644 index 0000000..5971a8d --- /dev/null +++ b/cfg/scripts/classes/sniper.cfg @@ -0,0 +1,3 @@ +// Sniper Scripting + +exec scripts/reset.cfg \ No newline at end of file diff --git a/cfg/scripts/classes/soldier.cfg b/cfg/scripts/classes/soldier.cfg new file mode 100644 index 0000000..bd790ac --- /dev/null +++ b/cfg/scripts/classes/soldier.cfg @@ -0,0 +1,3 @@ +// Soldier Scripting + +exec scripts/reset.cfg \ No newline at end of file diff --git a/cfg/scripts/classes/spy.cfg b/cfg/scripts/classes/spy.cfg new file mode 100644 index 0000000..f4282f6 --- /dev/null +++ b/cfg/scripts/classes/spy.cfg @@ -0,0 +1,54 @@ +// Spy Scripting. + +exec scripts/settings.cfg +exec scripts/reset.cfg + +// Disguises +// Keys 5-9 are used to quickly disguise. +alias key5 "disguise 4 -1; disguise_demoman_text" // Demoman +alias key6 "disguise 7 -1; disguise_pyro_text" // Pyro +alias key7 "disguise 2 -1; disguise_sniper_text" // Sniper +alias key8 "disguise 9 -1; disguise_engineer_text" // Engineer +alias key9 "disguise 8 -2; disguise_remove_text" // Un-disguise + + +// Auto-Disguise After Attack +// Press F to activate. +alias disguise1 "disguise 4 -1; disguise_demoman_text; alias next_disguise disguise2" // Demoman +alias disguise2 "disguise 7 -1; disguise_pyro_text; alias next_disguise disguise3" // Pyro +alias disguise3 "disguise 2 -1; disguise_sniper_text; alias next_disguise disguise4" // Sniper +alias disguise4 "disguise 9 -1; disguise_engineer_text; alias next_disguise disguise1" // Engineer +alias next_disguise disguise1 +alias +disguise_attack +attack +alias -disguise_attack "-attack; next_disguise" + + +// Disguised Weapon Switching +// When switching weapons, the disguise also switches weapons. +// With some players, this might reduce suspicion that you're a spy. +// Only works if spy_toggle is set to disguise_on. +// Note: the scroll wheel will now only scroll between 1 and 3, because once +// the disguise kit always gets skipped once the last disguise is activated. +alias reload1 "slot1; lastdisguise" +alias reload2 "slot2; lastdisguise" +alias reload3 "slot3; lastdisguise" +alias reload_m_up "invprev; lastdisguise" +alias reload_m_down "invnext; lastdisguise" +alias disguise_weapon_on "alias key1 reload1; alias key2 reload2; alias key3 reload3; bind MWHEELUP reload_m_up; bind MWHEELDOWN reload_m_down" +alias disguise_weapon_off "alias key1 slot1; alias key2 slot2; alias key3 slot3; bind MWHEELUP invprev; bind MWHEELDOWN invnext" + + +// Disguise Toggling +// The master switch for all the automatic disguise scripting. Default: on +alias spy_toggle disguise_off +alias disguise_on "auto_disguise_on_text; disguise_weapon_on; bind MOUSE1 +disguise_attack; alias spy_toggle disguise_off" +alias disguise_off "auto_disguise_off_text; disguise_weapon_off; bind MOUSE1 +attack; alias spy_toggle disguise_on" +bind F spy_toggle + + +// MOUSE3 Attack +// Bind MOUSE3 to the standard attack, in case the user wants to quickly +// attack without disguising (for example: sapping a sentry). +bind MOUSE3 +attack + +AUTO_DISGUISE \ No newline at end of file diff --git a/cfg/scripts/lang/_main.cfg b/cfg/scripts/lang/_main.cfg new file mode 100644 index 0000000..16b0c05 --- /dev/null +++ b/cfg/scripts/lang/_main.cfg @@ -0,0 +1,33 @@ +// 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. + +alias show_debug_output_text "exec scripts/lang/show_debug_output_text.cfg" + +alias con_filter_clear_text "exec scripts/lang/con_filter_clear_text.cfg" + +alias switch_loadout_A_text "exec scripts/lang/switch_loadout_A_text.cfg" +alias switch_loadout_B_text "exec scripts/lang/switch_loadout_B_text.cfg" +alias switch_loadout_C_text "exec scripts/lang/switch_loadout_C_text.cfg" +alias switch_loadout_D_text "exec scripts/lang/switch_loadout_D_text.cfg" + +alias disguise_demoman_text "exec scripts/lang/disguise_demoman_text.cfg" +alias disguise_pyro_text "exec scripts/lang/disguise_pyro_text.cfg" +alias disguise_sniper_text "exec scripts/lang/disguise_sniper_text.cfg" +alias disguise_engineer_text "exec scripts/lang/disguise_engineer_text.cfg" +alias disguise_remove_text "exec scripts/lang/disguise_remove_text.cfg" + +alias auto_disguise_on_text "exec scripts/lang/auto_disguise_on_text.cfg" +alias auto_disguise_off_text "exec scripts/lang/auto_disguise_off_text.cfg" + +alias spy_check_scout_text "exec scripts/lang/spy_check_scout_text.cfg" +alias spy_check_soldier_text "exec scripts/lang/spy_check_soldier_text.cfg" +alias spy_check_pyro_text "exec scripts/lang/spy_check_pyro_text.cfg" +alias spy_check_demoman_text "exec scripts/lang/spy_check_demoman_text.cfg" +alias spy_check_heavy_text "exec scripts/lang/spy_check_heavy_text.cfg" +alias spy_check_engineer_text "exec scripts/lang/spy_check_engineer_text.cfg" +alias spy_check_medic_text "exec scripts/lang/spy_check_medic_text.cfg" +alias spy_check_sniper_text "exec scripts/lang/spy_check_sniper_text.cfg" +alias spy_check_spy_text "exec scripts/lang/spy_check_spy_text.cfg" \ No newline at end of file diff --git a/cfg/scripts/lang/auto_disguise_off_text.cfg b/cfg/scripts/lang/auto_disguise_off_text.cfg new file mode 100644 index 0000000..71a2960 --- /dev/null +++ b/cfg/scripts/lang/auto_disguise_off_text.cfg @@ -0,0 +1 @@ +echo "| Automatic Disguise: OFF" \ No newline at end of file diff --git a/cfg/scripts/lang/auto_disguise_on_text.cfg b/cfg/scripts/lang/auto_disguise_on_text.cfg new file mode 100644 index 0000000..420f4ca --- /dev/null +++ b/cfg/scripts/lang/auto_disguise_on_text.cfg @@ -0,0 +1 @@ +echo "| Automatic Disguise: ON" \ No newline at end of file diff --git a/cfg/scripts/lang/con_filter_clear_text.cfg b/cfg/scripts/lang/con_filter_clear_text.cfg new file mode 100644 index 0000000..7f48fe5 --- /dev/null +++ b/cfg/scripts/lang/con_filter_clear_text.cfg @@ -0,0 +1,3 @@ +// Console Workaround File +// Used to work around a limitation of the console. +con_filter_text "" \ No newline at end of file diff --git a/cfg/scripts/lang/disguise_demoman_text.cfg b/cfg/scripts/lang/disguise_demoman_text.cfg new file mode 100644 index 0000000..3f14956 --- /dev/null +++ b/cfg/scripts/lang/disguise_demoman_text.cfg @@ -0,0 +1 @@ +echo "| Disguising as Demoman." \ No newline at end of file diff --git a/cfg/scripts/lang/disguise_engineer_text.cfg b/cfg/scripts/lang/disguise_engineer_text.cfg new file mode 100644 index 0000000..0257142 --- /dev/null +++ b/cfg/scripts/lang/disguise_engineer_text.cfg @@ -0,0 +1 @@ +echo "| Disguising as Engineer." \ No newline at end of file diff --git a/cfg/scripts/lang/disguise_pyro_text.cfg b/cfg/scripts/lang/disguise_pyro_text.cfg new file mode 100644 index 0000000..a7d72e0 --- /dev/null +++ b/cfg/scripts/lang/disguise_pyro_text.cfg @@ -0,0 +1 @@ +echo "| Disguising as Pyro." \ No newline at end of file diff --git a/cfg/scripts/lang/disguise_remove_text.cfg b/cfg/scripts/lang/disguise_remove_text.cfg new file mode 100644 index 0000000..4302d07 --- /dev/null +++ b/cfg/scripts/lang/disguise_remove_text.cfg @@ -0,0 +1 @@ +echo "| Removing disguise." \ No newline at end of file diff --git a/cfg/scripts/lang/disguise_sniper_text.cfg b/cfg/scripts/lang/disguise_sniper_text.cfg new file mode 100644 index 0000000..05e6e64 --- /dev/null +++ b/cfg/scripts/lang/disguise_sniper_text.cfg @@ -0,0 +1 @@ +echo "| Disguising as Sniper." \ No newline at end of file diff --git a/cfg/scripts/lang/show_debug_output_text.cfg b/cfg/scripts/lang/show_debug_output_text.cfg new file mode 100644 index 0000000..195289c --- /dev/null +++ b/cfg/scripts/lang/show_debug_output_text.cfg @@ -0,0 +1 @@ +echo "| Showing debug output." \ No newline at end of file diff --git a/cfg/scripts/lang/spy_check_demoman_text.cfg b/cfg/scripts/lang/spy_check_demoman_text.cfg new file mode 100644 index 0000000..27fb001 --- /dev/null +++ b/cfg/scripts/lang/spy_check_demoman_text.cfg @@ -0,0 +1 @@ +say_team "Demoman is Spy." \ No newline at end of file diff --git a/cfg/scripts/lang/spy_check_engineer_text.cfg b/cfg/scripts/lang/spy_check_engineer_text.cfg new file mode 100644 index 0000000..f20775e --- /dev/null +++ b/cfg/scripts/lang/spy_check_engineer_text.cfg @@ -0,0 +1 @@ +say_team "Engineer is Spy." \ No newline at end of file diff --git a/cfg/scripts/lang/spy_check_heavy_text.cfg b/cfg/scripts/lang/spy_check_heavy_text.cfg new file mode 100644 index 0000000..9324976 --- /dev/null +++ b/cfg/scripts/lang/spy_check_heavy_text.cfg @@ -0,0 +1 @@ +say_team "Heavy is Spy." \ No newline at end of file diff --git a/cfg/scripts/lang/spy_check_medic_text.cfg b/cfg/scripts/lang/spy_check_medic_text.cfg new file mode 100644 index 0000000..0c76717 --- /dev/null +++ b/cfg/scripts/lang/spy_check_medic_text.cfg @@ -0,0 +1 @@ +say_team "Medic is Spy." \ No newline at end of file diff --git a/cfg/scripts/lang/spy_check_pyro_text.cfg b/cfg/scripts/lang/spy_check_pyro_text.cfg new file mode 100644 index 0000000..8880e0d --- /dev/null +++ b/cfg/scripts/lang/spy_check_pyro_text.cfg @@ -0,0 +1 @@ +say_team "Pyro is Spy." \ No newline at end of file diff --git a/cfg/scripts/lang/spy_check_scout_text.cfg b/cfg/scripts/lang/spy_check_scout_text.cfg new file mode 100644 index 0000000..15f3e0e --- /dev/null +++ b/cfg/scripts/lang/spy_check_scout_text.cfg @@ -0,0 +1 @@ +say_team "Scout is Spy." \ No newline at end of file diff --git a/cfg/scripts/lang/spy_check_sniper_text.cfg b/cfg/scripts/lang/spy_check_sniper_text.cfg new file mode 100644 index 0000000..9ed1666 --- /dev/null +++ b/cfg/scripts/lang/spy_check_sniper_text.cfg @@ -0,0 +1 @@ +say_team "Sniper is Spy." \ No newline at end of file diff --git a/cfg/scripts/lang/spy_check_soldier_text.cfg b/cfg/scripts/lang/spy_check_soldier_text.cfg new file mode 100644 index 0000000..19bce6b --- /dev/null +++ b/cfg/scripts/lang/spy_check_soldier_text.cfg @@ -0,0 +1 @@ +say_team "Soldier is Spy." \ No newline at end of file diff --git a/cfg/scripts/lang/spy_check_spy_text.cfg b/cfg/scripts/lang/spy_check_spy_text.cfg new file mode 100644 index 0000000..a0180a4 --- /dev/null +++ b/cfg/scripts/lang/spy_check_spy_text.cfg @@ -0,0 +1 @@ +say_team "Spy is enemy Spy." \ No newline at end of file diff --git a/cfg/scripts/lang/switch_loadout_A_text.cfg b/cfg/scripts/lang/switch_loadout_A_text.cfg new file mode 100644 index 0000000..ed59492 --- /dev/null +++ b/cfg/scripts/lang/switch_loadout_A_text.cfg @@ -0,0 +1 @@ +echo "| Switching to loadout A." \ No newline at end of file diff --git a/cfg/scripts/lang/switch_loadout_B_text.cfg b/cfg/scripts/lang/switch_loadout_B_text.cfg new file mode 100644 index 0000000..cc897e1 --- /dev/null +++ b/cfg/scripts/lang/switch_loadout_B_text.cfg @@ -0,0 +1 @@ +echo "| Switching to loadout B." \ No newline at end of file diff --git a/cfg/scripts/lang/switch_loadout_C_text.cfg b/cfg/scripts/lang/switch_loadout_C_text.cfg new file mode 100644 index 0000000..b5c6b4d --- /dev/null +++ b/cfg/scripts/lang/switch_loadout_C_text.cfg @@ -0,0 +1 @@ +echo "| Switching to loadout C." \ No newline at end of file diff --git a/cfg/scripts/lang/switch_loadout_D_text.cfg b/cfg/scripts/lang/switch_loadout_D_text.cfg new file mode 100644 index 0000000..31809d9 --- /dev/null +++ b/cfg/scripts/lang/switch_loadout_D_text.cfg @@ -0,0 +1 @@ +echo "| Switching to loadout D." \ No newline at end of file diff --git a/cfg/scripts/main.cfg b/cfg/scripts/main.cfg new file mode 100644 index 0000000..37d957e --- /dev/null +++ b/cfg/scripts/main.cfg @@ -0,0 +1,85 @@ +// Script Pack v1.0 +// Provides utility scripts for all TF2 classes. + +exec scripts/settings.cfg +exec scripts/lang/_main.cfg +exec scripts/reset.cfg + + +// Debug Output +// Bind the debug output to a key. +con_notifytime 2 // 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 toggle_output show_output +bind P toggle_output + + +// Auto Crouch-Jump +// Makes the player automatically crouch-jump when holding down the spacebar. +alias +crouch_jump "+jump; +duck" +alias -crouch_jump "-duck; -jump" +alias crouch_on "bind SPACE +crouch_jump" +alias crouch_off "bind SPACE +jump" +AUTO_CROUCH_JUMP + + +// Clears the console, we don't care about anything that was displayed before. +alias clear_on "clear" +alias clear_off "" +CLEAR_CONSOLE_ON_START + + +// Loadout Switch +// Alt+1 switches to loadout A, Alt+2 switches to loadout B and so on. +alias +switching_loadout "+loadout_A; +loadout_B; +loadout_C; +loadout_D" +alias -switching_loadout "-loadout_A; -loadout_B; -loadout_C; -loadout_D" +alias switch_loadout_A "load_itempreset 0; switch_loadout_A_text" +alias switch_loadout_B "load_itempreset 1; switch_loadout_B_text" +alias switch_loadout_C "load_itempreset 2; switch_loadout_C_text" +alias switch_loadout_D "load_itempreset 3; switch_loadout_D_text" +alias +loadout_A "bind 1 switch_loadout_A"; alias -loadout_A "bind 1 key1" +alias +loadout_B "bind 2 switch_loadout_B"; alias -loadout_B "bind 2 key2" +alias +loadout_C "bind 3 switch_loadout_C"; alias -loadout_C "bind 3 key3" +alias +loadout_D "bind 4 switch_loadout_D"; alias -loadout_D "bind 4 key4" +alias loadout_on "bind ALT +switching_loadout" +alias loadout_off "bind ALT +strafe" +LOADOUT_SWITCH + + +// Netgraph +// Shows the netgraph when the user press Tab. +net_graphpos 2 +alias +showscores_netgraph "+showscores; net_graph 4" +alias -showscores_netgraph "-showscores; net_graph 0" +alias netgraph_on "bind TAB +showscores_netgraph" +alias netgraph_off "bind TAB +showscores" +SHOW_NETGRAPH + + +// Spy-Checking Lines +// Automatically says a spy-checking team chat line. +alias +spy_mode "+spy1; +spy2; +spy3; +spy4; +spy5; +spy6; +spy7; +spy8; +spy9" +alias -spy_mode "-spy1; -spy2; -spy3; -spy4; -spy5; -spy6; -spy7; -spy8; -spy9" +alias +spy1 "bind 1 spy_check_scout_text"; alias -spy1 "bind 1 key1" +alias +spy2 "bind 2 spy_check_soldier_text"; alias -spy2 "bind 2 key2" +alias +spy3 "bind 3 spy_check_pyro_text"; alias -spy3 "bind 3 key3" +alias +spy4 "bind 4 spy_check_demoman_text"; alias -spy4 "bind 4 key4" +alias +spy5 "bind 5 spy_check_heavy_text"; alias -spy5 "bind 5 key5" +alias +spy6 "bind 6 spy_check_engineer_text"; alias -spy6 "bind 6 key6" +alias +spy7 "bind 7 spy_check_medic_text"; alias -spy7 "bind 7 key7" +alias +spy8 "bind 8 spy_check_sniper_text"; alias -spy8 "bind 8 key8" +alias +spy9 "bind 9 spy_check_spy_text"; alias -spy9 "bind 9 key9" +alias spy_lines_on "bind SHIFT +spy_mode" +alias spy_lines_off "unbind SHIFT" +SPY_LINES + + +// Suicide Explosion +// To be used when the player is cornered and with no chance of escape. +// Go out with a bang! +alias suicide_on "bind F1 explode +alias suicide_off "unbind F1" +SUICIDE_EXPLOSION \ No newline at end of file diff --git a/cfg/scripts/reset.cfg b/cfg/scripts/reset.cfg new file mode 100644 index 0000000..c5e6cb8 --- /dev/null +++ b/cfg/scripts/reset.cfg @@ -0,0 +1,26 @@ +// Reset +// Resets key bindings to their default state on class-switch. +// Since class-specific files can change the key bindings, it's important to +// return them to a neutral state each time the class changes. + +// Reset the mouse controls. +bind MOUSE1 +attack +bind MOUSE2 +attack2 +bind MOUSE3 +attack3 +bind MWHEELUP invprev +bind MWHEELDOWN invnext + +// Reset all numbers. +alias key0 slot10; bind 0 key0 +alias key1 slot1; bind 1 key1 +alias key2 slot2; bind 2 key2 +alias key3 slot3; bind 3 key3 +alias key4 slot4; bind 4 key4 +alias key5 slot5; bind 5 key5 +alias key6 slot6; bind 6 key6 +alias key7 slot7; bind 7 key7 +alias key8 slot8; bind 8 key8 +alias key9 slot9; bind 9 key9 + +// Reset any other affected keys. +bind F inspect \ No newline at end of file diff --git a/cfg/scripts/settings.cfg b/cfg/scripts/settings.cfg new file mode 100644 index 0000000..93786a4 --- /dev/null +++ b/cfg/scripts/settings.cfg @@ -0,0 +1,44 @@ +// Settings +// User-configurable settings for the script pack. + +// AUTO_CROUCH_JUMP +// Values: crouch_on | crouch_off +// When set to crouch_on, automatically crouches when holding the jump button. +alias AUTO_CROUCH_JUMP "crouch_on" + +// AUTO_DISGUISE +// Values: disguise_on | disguise_off +// Set to disguise_on to activate automatic disguise functions on Spy. +// Set to disguise_off to de-activate them. +// Note: be careful when placing sappers or otherwise using MOUSE1 without +// meaning to attack, as this will automatically change the disguise. Use +// MOUSE3 to perform a normal attack. +alias AUTO_DISGUISE "disguise_on" + +// CLEAR_CONSOLE_ON_START +// Values: clear_on | clear_off +// Set to disguise_on if you want the developer console to be cleared once +// main.cfg is run (when the game starts). Otherwise, leave empty. +alias CLEAR_CONSOLE_ON_START "clear_on" + +// LOADOUT_SWITCH +// Values: loadout_on | loadout_off +// If set to loadout_on, the Alt+Num combination will switch to one of four +// loadouts. +alias LOADOUT_SWITCH "loadout_on" + +// SHOW_NETGRAPH +// Values: netgraph_on | netgraph_off +// Shows the netgraph when the user press Tab. +alias SHOW_NETGRAPH "netgraph_on" + +// SPY_LINES +// Values: spy_lines_on | spy_lines_off +// If set to spy_lines_on, the Shift+Num combination will say a line +// naming the class which has been spotted. +alias SPY_LINES "spy_lines_on" + +// SUICIDE_EXPLOSION +// Values: suicide_on | suicide_off +// If set to suicide_on, pressing F1 will make the player explode. +alias SUICIDE_EXPLOSION "suicide_on" \ No newline at end of file diff --git a/cfg/sniper.cfg b/cfg/sniper.cfg new file mode 100644 index 0000000..d86bf63 --- /dev/null +++ b/cfg/sniper.cfg @@ -0,0 +1 @@ +exec scripts/classes/sniper.cfg \ No newline at end of file diff --git a/cfg/soldier.cfg b/cfg/soldier.cfg new file mode 100644 index 0000000..e2ee886 --- /dev/null +++ b/cfg/soldier.cfg @@ -0,0 +1 @@ +exec scripts/classes/soldier.cfg \ No newline at end of file diff --git a/cfg/spy.cfg b/cfg/spy.cfg new file mode 100644 index 0000000..71671de --- /dev/null +++ b/cfg/spy.cfg @@ -0,0 +1 @@ +exec scripts/classes/spy.cfg \ No newline at end of file