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

Crosshair Disco - A Config Script for Team Fortress 2

18 1 kb Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//CROSSHAIR DISCO (by G-Mang)
alias crosscolor0 "cl_crosshair_red 255;cl_crosshair_green 0;cl_crosshair_blue 0;wait 10;retcolor1"
alias crosscolor1 "cl_crosshair_red 255;cl_crosshair_green 255;cl_crosshair_blue 0;wait 10;retcolor2"
alias crosscolor2 "cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 0;wait 10;retcolor3"
alias crosscolor3 "cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 255;wait 10;retcolor4"
alias crosscolor4 "cl_crosshair_red 0;cl_crosshair_green 0;cl_crosshair_blue 255;wait 10;retcolor5"
alias crosscolor5 "cl_crosshair_red 255;cl_crosshair_green 0;cl_crosshair_blue 255;wait 10;retcolor0"
alias retcolor0 "crosscolor0"
alias retcolor1 "crosscolor1"
alias retcolor2 "crosscolor2"
alias retcolor3 "crosscolor3"
alias retcolor4 "crosscolor4"
alias retcolor5 "crosscolor5"
alias discostart "alias retcolor0 crosscolor0;alias retcolor1 crosscolor1;alias retcolor2 crosscolor2;alias retcolor3 crosscolor3;alias retcolor4 crosscolor4;alias retcolor5 crosscolor5;retcolor0;alias discotoggle discostop"
alias discostop "alias retcolor0 ;alias retcolor1 ;alias retcolor2 ;alias retcolor3 ;alias retcolor4 ;alias retcolor5 ;cl_crosshair_red 255;cl_crosshair_green 255;cl_crosshair_blue 255;alias discotoggle discostart"
alias discotoggle "discostart"

bind "KEY" "discotoggle" //Choose the toggle key by replacing KEY

Makes your crosshair stand out by rapidly changing colors.

Pretty self-explanatory. Replace KEY with the toggle key and enjoy the crosshair disco. EDIT: I'm not sure if everyone realizes this, but default crosshairs cannot change colors, so you need to turn on a custom crosshair for this one. EDIT EDIT: I'll say it in caps this time. ;] IF IT'S NOT WORKING, MAKE SURE YOU HAVE A MULTIPLAYER MENU CUSTOM CROSSHAIR ON. THE DEFAULT CROSSHAIR CAN'T CHANGE COLORS. To make it easier to understand, and to show why the function doesn't have problems, I'll explain how it works in simple English: Color-Change_1 = "change color, wait a tiny bit, then execute Try-Coloring_2" Color-Change_2 = "change color, wait a tiny bit, then execute Try-Coloring_3" Color-Change_3 = "change color, wait a tiny bit, then execute Try-Coloring_1" Try-Coloring_1 = "execute Color-Change_1" Try-Coloring_2 = "execute Color-Change_2" Try-Coloring_3 = "execute Color-Change_3" Stop-Disco = "empty the Try-Coloring commands so they don't actually run Color-Changes, make crosshair white, and make it so using Toggle-Disco will Start the Disco" Start-Disco = "reassign the Try-Coloring commands to their respective Color-Change commands, run Try-Coloring_1, and make it so using Toggle-Disco will Stop the Disco" Toggle-Disco = "Turn on the disco if it's off, or turn it off if it's on (see previous two functions for how)" That's it (except that the script has six colors instead of three). There's not really any room for it to mess up.
1-10 of 22
1
Pages
Go to page:
  • Bilge avatar
    Bilge Joined 13y ago
    Offline
    12y
    Causes client freeze on SourceMod servers.
    Bananite
    URL to post:
  • blackhydra86 avatar
    blackhydra86 Joined 12y ago
    Offline
    7 medals 1 legendary 1 rare
    • 10 years a member Medal icon
    • 6 years a member Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    12y
    Pros: Helps quickly trace aimer Cons: None Improvements: None Notes: Works perfectly, one of my favorite scripts right here.
    URL to post:
  • G-Mang avatar
    G-Mang Joined 12y ago
    Offline
    12y
    Posted by Cryzbl How about using incrementvar for smooth transitions?
    Probably could if I wanted them to be smooth, but the main point of the crosshair is to make it very noticeable at all times, so constant contrasts are used to make it stand out more.
    Bananite
    URL to post:
  • Cryzbl avatar
    Cryzbl Joined 13y ago
    Offline
    817 points Ranked 43,657th
    12y
    How about using incrementvar for smooth transitions?
    Scripting TF2. And L4D :D avatar
    Mantra
    Scripting TF2. And L4D :D
    URL to post:
  • Flambe avatar
    Flambe Joined 13y ago
    Offline
    12y
    Posted by G-Mang
    Posted by Flambé I get what your saying. What I was saying is should I delete my comment which had the changes which probabaly confused people.
    Oh oh oh, I misread your post as "I would delete". My bad! :S Yeah feel free to clear that part out if you'd like.
    After I had replied I was thinking, 'Wait, does that sound right?'. Anyway, deleting the comment now.
     avatar
    URL to post:
  • G-Mang avatar
    G-Mang Joined 12y ago
    Offline
    12y
    Posted by Flambé I get what your saying. What I was saying is should I delete my comment which had the changes which probabaly confused people.
    Oh oh oh, I misread your post as "I would delete". My bad! :S Yeah feel free to clear that part out if you'd like.
    Bananite
    URL to post:
  • Flambe avatar
    Flambe Joined 13y ago
    Offline
    12y
    Posted by G-Mang
    Posted by Flambé
    Posted by G-Mang Flambe's version didn't work for me, and as I said earlier, it doesn't make sense that it would. Stick to mine while trying to figure this out please. :]
    I should probably delete that comment to help lessen confusion.
    Wouldn't having two versions out (one working for me and one not) cause more confusion? O_o I wanted to remind him because if he leaves yours on, I see no reason for why it would START working again. I'm not trying to offend you here, but if you remember my post explaining it, your method doesn't make sense, and I don't want people to try it and then leave it on, because I could never get their scripts working again. In either case, I think the likely reason people are saying it doesn't work is that they've forgotten to put on a new custom crosshair. The old ones don't change colors.
    I get what your saying. What I was saying is should I delete my comment which had the changes which probabaly confused people.
     avatar
    URL to post:
  • G-Mang avatar
    G-Mang Joined 12y ago
    Offline
    12y
    Posted by Flambé
    Posted by G-Mang Flambe's version didn't work for me, and as I said earlier, it doesn't make sense that it would. Stick to mine while trying to figure this out please. :]
    I should probably delete that comment to help lessen confusion.
    Wouldn't having two versions out (one working for me and one not) cause more confusion? O_o I wanted to remind him because if he leaves yours on, I see no reason for why it would START working again. I'm not trying to offend you here, but if you remember my post explaining it, your method doesn't make sense, and I don't want people to try it and then leave it on, because I could never get their scripts working again. In either case, I think the likely reason people are saying it doesn't work is that they've forgotten to put on a new custom crosshair. The old ones don't change colors, and the fact that it won't has nothing to do with the merits of my script. :S
    Bananite
    URL to post:
  • Flambe avatar
    Flambe Joined 13y ago
    Offline
    12y
    Posted by G-Mang Flambe's version didn't work for me, and as I said earlier, it doesn't make sense that it would. Stick to mine while trying to figure this out please. :]
    I should probably delete that comment to help lessen confusion.
     avatar
    URL to post:
  • G-Mang avatar
    G-Mang Joined 12y ago
    Offline
    12y
    Posted by Point Blank
    Posted by Flambé
    Posted by Point Blank nope, it still doesn't work
    Are you sure you have installed the script correctly? Both my edited version and the proper one work fine.
    I'm not dumb, I've installed scripts before, it just doesn't work for me.
    Are you using a custom crosshair from the Multiplayer Options menu? If not, the crosshairs don't accept custom colorization. Flambe's version didn't work for me, and as I said earlier, it doesn't make sense that it would. Stick to mine while trying to figure this out please. :]
    Bananite
    URL to post: