diff --git a/README.md b/README.md index b25e2fd..59f877b 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Most features are usable by all classes, but a few are class-specific. If you wo - **Loadout Switch:** binds 4 `Shift` key combinations to each loadout. - **Music Player:** cycles through Team Fortress 2's music files when pressing the `;` key. Can also automatically play a song on class select. - **Netgraph:** displays the netgraph on the score screen (`Tab` key). +- **Null-Cancelling Movement Script:** a classic script which lets you immediately change direction. - **Pyro Airblast Call:** sends a team message asking for a Pyro to airblast you by pressing `Backspace`. - **Spy-Checking Lines:** sends a team message notifying players about an exposed spy (e.g. "Pyro is Spy.") by pressing `Shift` + the class' number (1-9). - **Suicide Explosion:** makes you explode at the touch of a button. @@ -36,6 +37,7 @@ TF2-Scripts comes with several settings used to disable certain undesired featur - `ENGINEER_PDA` - `MUSIC_PLAYER` - `MUSIC_PLAYER_CLASSES` +- `NULL_CANCELLING` - `LOADOUT_SWITCH` - `SHOW_NETGRAPH` - `SOLDIER_ROCKET_JUMP` @@ -56,6 +58,7 @@ The scripts bundled together would not have been possibly were it not for the sc - [TheFifthWheel](http://gamebanana.com/members/1350351)'s [TF2 Jukebox Script](http://tf2.gamebanana.com/scripts/8268), used as inspiration for the music player (special thanks for providing the names of the music files), - INsane for his [developer console font file information](http://www.dodbits.com/dods/index.php/source-graphics/source-gui-hud-tutorials/33-console-font-color-and-size), - [clovervidia](http://steamcommunity.com/id/clovervidia/) for his [captions tutorials](http://www.reddit.com/r/tf2scripthelp/wiki/captions), +- povohat.au for his [null-cancelling script](http://ozfortress.com/showpost.php?p=624355), - josh33901 for his rocket jump suggestion. As best as I can recall, all other scripts are written by me, using various tutorials and my own discoveries. If you feel your script was not credited, or you want me to cease distributing your script, send me a message and I will either add credit where it is due or remove your script. \ No newline at end of file diff --git a/cfg/_settings.cfg b/cfg/_settings.cfg index 1e05945..f7d567e 100644 --- a/cfg/_settings.cfg +++ b/cfg/_settings.cfg @@ -42,6 +42,11 @@ alias MUSIC_PLAYER "music_on" // the Team videos. alias MUSIC_PLAYER_CLASSES "music_classes_off" +// NULL_CANCELLING +// Values: null_on | null_off +// If set to null_on, null-cancelling movement is active. +alias NULL_CANCELLING null_on + // SHOW_NETGRAPH // Values: netgraph_on | netgraph_off // Shows the netgraph when the user press Tab. diff --git a/cfg/autoexec.cfg b/cfg/autoexec.cfg index 57326f8..6a7986d 100644 --- a/cfg/autoexec.cfg +++ b/cfg/autoexec.cfg @@ -103,6 +103,26 @@ alias netgraph_off "bind TAB +showscores" SHOW_NETGRAPH +// Null-Cancelling +// By default, pressing opposite movement keys stops the movement. This script +// changes the behavior so that the last pressed key takes effect. +alias +nc_forward "-back; +forward; alias check_forward +forward" +alias +nc_back "-forward; +back; alias check_back +back" +alias +nc_left "-moveright; +moveleft; alias check_left +moveleft" +alias +nc_right "-moveleft; +moveright; alias check_right +moveright" +alias -nc_forward "-forward; check_back; alias check_forward empty" +alias -nc_back "-back; check_forward; alias check_back empty" +alias -nc_left "-moveleft; check_right; alias check_left empty" +alias -nc_right "-moveright; check_left; alias check_right empty" +alias check_forward empty +alias check_back empty +alias check_left empty +alias check_right empty +alias null_on "bind W +nc_forward; bind S +nc_back; bind A +nc_left; bind D +nc_right" +alias null_off "bind W +forward; bind S +back; bind A +moveleft; bind D +moveright" +NULL_CANCELLING + + // Pyro Airblast Call // Sends a team message asking for a Pyro to airblast you. bind BACKSPACE pyro_airblast_text