x
ETF2L is looking for new Staff to recruit! Are you interested in supporting the league? Then click here for more details on what we can offer and how to apply! 

Forum

Help with Crosshair (colour) scripts.

Created 8th July 2009 @ 05:22

Add A Reply Pages: 1

Macisum

YOYO\'
syster

Heya.
Since Im not the smartest guy when i comes to scripting, I need your help.
I simply want different colours for the different weapons as Im gonna start playing without the weaponhud.

So, I want crosshair 3 (at full size) and 1. Weapon shal be green, secound blue and the last one red.
I use 123 and q to swithc weapons if you need to know that.

Cheers, me.

eoN^

Just use m0res configs… Its simple enough to edit them go into alias’ and set the colour in the xhair bit

Macisum

YOYO\'
syster

Hmm, ive binded so I change weapon and crosshair colour to 123 now, but how do I get it to work with q aswell?

Here’s the command i used.

bind “1” “cl_crosshair_red 0; cl_crosshair_green 255;cl_crosshair_blue 0; slot1”
bind “2” “cl_crosshair_red 0; cl_crosshair_green 0;cl_crosshair_blue 255; slot2”
bind “3” “cl_crosshair_red 255; cl_crosshair_green 0;cl_crosshair_blue 0; slot3”

eoN^

http://pastebin.com/f6a1a1bc7

Thats my alias’ file

Also implementation: this is my scout cfg

http://pastebin.com/m20986785

And Standardclass.cfg

http://pastebin.com/m72980c82

AcidReniX

RaWr ::

I made a config for my crosshairs which looks something like this:

alias xscattergun “cl_crosshair_file crosshair3; cl_crosshair_scale 20”
alias xpistol “cl_crosshair_file crosshair5; cl_crosshair_scale 30”
alias xmelee “cl_crosshair_file crosshair4; cl_crosshair_scale 20”
alias xrpg “cl_crosshair_file crosshair3; cl_crosshair_scale 20”
alias xshotgun “cl_crosshair_file crosshair5; cl_crosshair_scale 30”

Then i bind say, 1 to slot1; xscattergun
If i want F for primary weapon i’d bind F to slot1; xscattergun

These binds would be setup in the class configs.

Jh

Hey dats!

alias +w “x1; +forward”
alias +a “x2; +moveleft”
alias +s “x3; +back”
alias +d “x4; +moveright”
alias -w “-forward”
alias -a “-moveleft”
alias -s “-back”
alias -d “-moveright”

alias xx “cl_crosshair_file crosshair1; cl_crosshair_scale 26”

alias x1 “xx; cl_crosshair_red 255; cl_crosshair_green 255; cl_crosshair_blue 0” //yellow
alias x2 “xx; cl_crosshair_red 0 ; cl_crosshair_green 255; cl_crosshair_blue 0” //green
alias x3 “xx; cl_crosshair_red 255; cl_crosshair_green 100; cl_crosshair_blue 255” //pink
alias x4 “xx; cl_crosshair_red 0 ; cl_crosshair_green 200; cl_crosshair_blue 240” //blue

bind “w” “+w”
bind “a” “+a”
bind “s” “+s”
bind “d” “+d”

win

Add A Reply Pages: 1