Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

HWGuy Toggle-spin

A Config Script for Team Fortress 2

Members see zero ads. Membership is 100% free
14 381 bytes Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Minigun auto-spin by Metroid48

alias +togglespinning "+spin"
alias -togglespinning "-spin"

alias toggle "stop"
alias start "alias toggle stop; alias -togglespinning -spin"
alias stop "alias toggle start; alias -togglespinning -nspin"

alias +spin "use tf_weapon_minigun"
alias -spin "+attack2;toggle"
alias -nspin "-attack2;toggle"

bind "MOUSE2" "+togglespinning"
Variation on the auto-spin code. Allows you to tap mouse2 to start or stop the minigun.

Comments

Sign up to access this!
  • Metroid48 avatar
    Metroid48 Joined 12y ago
    Offline
    access_time 12y
    Not sure exactly what you mean 404error. It really needs some scripting to make it a toggle, as that type of bind would just remove the entire point. As for the medigun, spy cloak, demoman, etc. this is really for a script loader. Eg. put this in a script file that is loaded when you press num9, have num0 reset the binds on all the keys modified. I think there's already a good one submitted, but I might add my own just for reference. EDIT: Here's my scriptloader for reference. It resets all the binds and also binds class scripts to the numpad keys: http://www.fpsbanana.com/scripting/2477
    Pirate Ship Wars!
    URL to post:
  • The404Error avatar
    The404Error username pic Joined 12y ago
    Offline
    18,088 points Ranked 295th
    access_time 12y
    Pros: Great for the Heavy, demonstrates knowledge. Cons: Will interfere with Medic's ubercharge, if they last long enough to do 2. May be an easier way to script? Notes: It might be possible to simply just put this as something like bindToggle "mouse2" "+attack2", reducing the need for all the excess scripting, and making the action milliseconds (between life and death) faster.
    The Best User and Second Sexie avatar
    Mantra
    The Best User and Second Sexie
    URL to post:
  • DrDeanDarko avatar
    DrDeanDarko Joined 14y ago
    Offline
    2,412 points Ranked 20210th
    access_time 12y
    Pros: Execellent for a heavy user like me. Cons: None Improvements: None Notes: Great work.
    URL to post:

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
Metroid48
Unknown

Submitter

Metroid48 avatar
Metroid48 Joined 12y ago
Offline
Metroid48
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

menu

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 2
  • remove_red_eye 5.6k
  • mode_comment 3
  • access_time 12y
  • access_time 12y

More from Submitter

menu

More Weapon Scripts Scripts