diff --git a/README.md b/README.md index 80eb9eb..47872dc 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Most features are usable by all classes, but a few are class-specific. If you wo * **Pyro Airblast Call:** sends a team message asking for a Pyro to airblast you. * **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. +* **Viewmodel Toggling:** toggles display of the active weapon at the press of the `Delete` key. * **Engineer: Building Bindings:** binds keys 6 through 9 to the Engineer's buildings, automatically destroying any existing buildings when pressed. You can also disable the PDA numeric keys. * **Soldier: Rocket Jump:** a simple rocket jump script bound to MOUSE3. Does not provide optimal jump, but is a reliable way to rocket jump. Aim the rocket launcher at the ground before clicking. * **Spy: Taunt:** automatically un-disguises the Spy before performing a taunt. If pressing G once doesn't work for you, always quickly press G twice. diff --git a/cfg/autoexec.cfg b/cfg/autoexec.cfg index 0e522a5..e147361 100644 --- a/cfg/autoexec.cfg +++ b/cfg/autoexec.cfg @@ -133,4 +133,12 @@ SPY_LINES // Go out with a bang! alias suicide_on "bind F1 explode alias suicide_off "unbind F1" -SUICIDE_EXPLOSION \ No newline at end of file +SUICIDE_EXPLOSION + + +// Viewmodel Toggling +// Hides or shows the viewmodel. +alias viewmodel_on "r_drawviewmodel 1; alias toggle_viewmodel viewmodel_off" +alias viewmodel_off "r_drawviewmodel 0; alias toggle_viewmodel viewmodel_on" +alias toggle_viewmodel viewmodel_off +bind DEL toggle_viewmodel \ No newline at end of file