// per-weapon crosshairs
seta crosshair_per_weapon 1 "when 1, each gun will display a different crosshair"
+// side-scrolling crosshair
+seta crosshair_2d 54 "selects crosshair to use in side-scrolling mode (\"\" uses regular crosshair and 0 is none)"
+
// =========================
// Crosshair ring settings
float autocvar_con_notify;
float autocvar_con_notifysize;
string autocvar_crosshair;
+string autocvar_crosshair_2d = "54";
float autocvar_crosshair_alpha;
string autocvar_crosshair_color;
int autocvar_crosshair_color_special;
string wcross_style;
float wcross_alpha, wcross_resolution;
wcross_style = autocvar_crosshair;
+ if (csqcplayer.viewloc && (csqcplayer.viewloc.spawnflags & VIEWLOC_FREEAIM) && autocvar_crosshair_2d != "")
+ wcross_style = autocvar_crosshair_2d;
if (wcross_style == "0")
return;
wcross_resolution = autocvar_crosshair_size;