Is it possible to be able to change crosshair color when you're healing somebody? If so how would you go about doing that?
Thanks in advance!
Is it possible to be able to change crosshair color when you're healing somebody? If so how would you go about doing that?
Thanks in advance!
you can have it pulse when someone gives you a buff, but i think pulse by healing someone isnt possible
this isn't hud manipulation but you can do a script to change crosshair color when you hold the heal button.
eg:
alias "+xcolor" "+attack; cl_crosshair_blue 255; cl_crosshair_red 255; cl_crosshair_green 255"
alias "-xcolor" "-attack; cl_crosshair_blue 0; cl_crosshair_red 0; cl_crosshair_green 0"
bind mouse1 "+xcolor"
^that will affect all weapons, to make it medgun only change your weapon binds in medic.cfg (or write another alias but I'm not going to)
bind mouse1 +attack
bind mouse4 "slot1; bind mouse1 +attack; cl_crosshair_blue 0; cl_crosshair_red 0; cl_crosshair_green 0; -attack"
bind mouse5 "slot2; bind mouse1 +xcolor; -attack"
bind q "slot3; bind mouse1 +attack; cl_crosshair_blue 0; cl_crosshair_red 0; cl_crosshair_green 0; -attack"
sub in your bind keys and crosshair colors ofc
edit: I put the simple first one in because does have a small advantage in that it does not have -attack when you switch weapons meaning you can hold fire and switch weapons and it will keep shooting. With the complex one it will stop shooting and you have to press attack to start it again.
//--CROSSHAIR CHANGE WHEN HEALING SCRIPT--
//this works mostly, however it may break a little bit
//if you hold down mouse1 while pressing weapon binds
//
//default is green while healing, white when not, and weapon binds set to 1, 2, 3
//
//if you use an autoheal script, swap all "+attack"
//to "-attack" and vice versa, except one
alias +heal "+attack; cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0" //change these colour values to whatever you want
alias -heal "-attack; cl_crosshair_red 255; cl_crosshair_green 255; cl_crosshair_blue 255" //change these colour values to whatever you want
alias wep "-heal;bind mouse1 +attack" //don't change this attack command if using autoheal
alias medigun "-attack;bind mouse1 +heal"
alias primary "slot1;wep"
alias secondary "slot2;medigun"
alias melee "slot3;wep"
bind 1 "primary" //change to your primary weapon bind
bind 2 "secondary" //change to your secondary weapon bind
bind 3 "melee" //change to your melee weapon bind
this should work
edit: ninja'd