Slot-Based Commands

A Config Script for Team Fortress 2

SEX! Ok, we got your attention. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending ScrapGB points.
  • Post: Give ScrapGB your thoughts on this Script.
  • Vote: Help ScrapGB win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Interested?

Sign up

Already a Bananite? Login

What d'ya think?

31 lines | 983 bytes | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Feel free to use this for whatever, just make sure you always spawn with your primary, otherwise this won't work.

bind "1" "lslot1"
bind "2" "lslot2"
bind "3" "lslot3"

lslot1
alias lslot1 "slot1;bind mwheeldown lslot2; bind mwheelup lslot3; [cmd]"

alias lslot2 "slot2;bind mwheeldown lslot3; bind mwheelup lslot1; [cmd]"

alias lslot3 "slot3;bind mwheeldown lslot1; bind mwheelup lslot2; [cmd]"

// Only use these for a engineer.cfg file since it's useless for every other class.

bind "1" "lslot1"
bind "2" "lslot2"
bind "3" "lslot3"
bind "4" "lslot4"
bind "5" "lslot5"

lslot1
alias lslot1 "slot1;bind mwheeldown lslot2; bind mwheelup lslot5; [cmd]"

alias lslot2 "slot2;bind mwheeldown lslot3; bind mwheelup lslot1; [cmd]"

alias lslot3 "slot3;bind mwheeldown lslot4; bind mwheelup lslot2; [cmd]"

alias lslot4 "slot4;bind mwheeldown lslot5; bind mwheelup lslot3; [cmd]"

alias lslot5 "slot5;bind mwheeldown lslot4; bind mwheelup lslot1; [cmd]"
This script (or these scripts) is made to execute certain commands dependant on your weapon of choice, there's a 5-slot weapon choice too.

Posts

None found

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Author
ScrapGB
ScrapGB Offline
Member Joined 11mo
504 points Ranked 8723rd
Wrote the script.
Thankers
VALVe Software
Added the potential for these scripts to be created.

Submitter

ScrapGB avatar
ScrapGB Offline
Member Joined 11mo
504 points Ranked 8723rd

ScrapGB
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Attributes

Language
CFG/Config

Stats

Posts
2
Views
1,142
Date Added
5mo
Date Modified
5mo

Scores

  • Not yet rated
Sign up to access this!
bcp.crwdcntrl.net tracking pixel