client config problem
Hello,
first of all, I don't realy know if you will help me on this forum with my problem, because it is not related to amx. So if it is not possible then excuse my fault please. So, I will try to explain my problem. In my client (game counter strike 1.6) config.cfg I would like to bind on keys change of colors of crosshair. The problem is, the console (or something.. maybe the engine is made up this way) doesn't take more numeric parameters except one - the first one in a row. I tried an alias feature, but it doesn't work at all. First I tried this: Code:
alias b1 "255 255 255"I also tried this: Code:
alias cr1 "cl_crosshair_color "255 50 50""Also I am confused from the syntax - two symbols " and it worked a little anyway Could anyone help me please? |
Re: client config problem
Not sure how it works in CS 1.6, but in CSS, crosshair colors work like this:
Code:
cl_crosshairalpha : 200 : , "a", "cl" : |
Re: client config problem
i think you can use commandmenu for changing crosshair color and bind "+commandmenu;wait;slot1;"
not sure about that, but i would definitely go this way |
Re: client config problem
Well, in CS 1.6 there are only these cvars for crosshair:
cl_crosshair_color "R G B" (where R G B are numbers separated by space, e.g. 50 255 50) cl_crosshair_size cl_crosshair_translucent and also quite interesting command Code:
adjust_crosshairto use the commandmenu, what I have to do? Install amxmodx to my client? |
Re: client config problem
the easiest way i found is just to create separated config files with the colors you need:
red.cfg with cl_crosshair_color "255 0 0" green.cfg with cl_crosshair_color "0 255 0" bind "button1" "exec red.cfg" bind "button2" "exec green.cfg" |
Re: client config problem
Oh yeah, that's pretty cool! It's quite intriguing that I didn't get such an idea earlier. It can be due to my different contemplation about the solution. Well, I gratefully thank you!
(and excuse my probable bad english, my CZ-EN dictionary is still very used) :) |
| All times are GMT -4. The time now is 00:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.