by Mexicouger » Sat Feb 19, 2011 7:43 am
you can in the Engine in the Crosshair Code.
Just create a new Cvar, and toggle the cvar using that Red crosshair Code.
In the crosshair code in the engine, just go
if ((int)red_crosshair.value == 1)
*draw a red lmp*
else
*draw the regular crosshair*
Then in the QC, just send out a traceline, and if it hits something that takes damage, toggle the red_crosshair cvar to 1, and if the traceline doesn't hit something, then make it 0.