Page 1 of 1

Crosshair script...issue with color refresh

Posted: Sun Oct 23, 2005 7:41 am
by Nologic
Okay for some reason this script can not make the crosshair change color...its not that the script doesn't fuction correctly...it does for the most part...for some reason the changes made by the script do not take effect till one ether switch's weapons...or picks up one. I'm at a loss as to how to correct the script to where it will work properly...I'm open for idea's. :)

Code: Select all

 set ua_ch3 "addChatLine; addChatLine; addChatLine"

 set ua_chc_bv "set ua_ch_r 1; set ua_ch_g 1; set ua_ch_b 1; set ua_ch_a 1"
vstr ua_chc_bv

 set ua_chc_01 "set ua_chc_f vstr ua_chc_02; set ua_chc_a 'Inc ua_ch_r 0.01 1'; addChatLine '^c468Increase X-Hair Red';   vstr ua_ch3"
 set ua_chc_02 "set ua_chc_f vstr ua_chc_03; set ua_chc_a 'Dec ua_ch_r 0.01 0'; addChatLine '^c468Decrease X-Hair Red';   vstr ua_ch3"
 set ua_chc_03 "set ua_chc_f vstr ua_chc_04; set ua_chc_a 'Inc ua_ch_g 0.01 1'; addChatLine '^c468Increase X-Hair Green'; vstr ua_ch3"
 set ua_chc_04 "set ua_chc_f vstr ua_chc_05; set ua_chc_a 'Dec ua_ch_g 0.01 0'; addChatLine '^c468Decrease X-Hair Green'; vstr ua_ch3"
 set ua_chc_05 "set ua_chc_f vstr ua_chc_06; set ua_chc_a 'Inc ua_ch_b 0.01 1'; addChatLine '^c468Increase X-Hair Blue';  vstr ua_ch3"
 set ua_chc_06 "set ua_chc_f vstr ua_chc_07; set ua_chc_a 'Dec ua_ch_b 0.01 0'; addChatLine '^c468Decrease X-Hair Blue';  vstr ua_ch3"
 set ua_chc_07 "set ua_chc_f vstr ua_chc_08; set ua_chc_a 'Inc ua_ch_a 0.01 1'; addChatLine '^c468Increase X-Hair Alpha'; vstr ua_ch3"
 set ua_chc_08 "set ua_chc_f vstr ua_chc_01; set ua_chc_a 'Dec ua_ch_a 0.01 0'; addChatLine '^c468Decrease X-Hair Alpha'; vstr ua_ch3"
 set ua_chc_f "vstr ua_chc_01" // Default

 set ua_ch_d "g_crosshairColor $ua_ch_r $ua_ch_g $ua_ch_b $ua_ch_a"

bind 	y		"vstr ua_chc_f"					// Sound Selection
bind 	u		"vstr ua_chc_a; vstr ua_ch_d"			// Sound Action