Add viewmodel toggling.

This commit is contained in:
Lyrositor
2014-02-22 11:08:30 +01:00
parent d06cd5e618
commit ddd725b35c
2 changed files with 10 additions and 1 deletions

View File

@@ -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.

View File

@@ -133,4 +133,12 @@ SPY_LINES
// Go out with a bang!
alias suicide_on "bind F1 explode
alias suicide_off "unbind F1"
SUICIDE_EXPLOSION
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