seta crosshair_dot 1
seta crosshair_dot_alpha 1
seta crosshair_dot_size 1
-
-seta crosshair_pickup 0.5
+seta crosshair_pickup 0.25
seta crosshair_pickup_speed 4
-
seta crosshair_per_weapon 0 "when 1, each gun will display a different crosshair"
seta crosshair_color_override 0 "when 1, crosshair_color_* overrides the per-weapon color"
seta crosshair_effect_speed -1 "how fast (in seconds) some crosshair effects should take place, 0 = instant, -1 = 2x weapon switch time"
vector freeze_pmove_org, freeze_input_angles;
entity nightvision_noise, nightvision_noise2;
-float pickup_crosshair_time, pickup_crosshair_fade;
+float pickup_crosshair_time, pickup_crosshair_size;
void CSQC_UpdateView(float w, float h)
{
{
if(pickup_crosshair_time < getstatf(STAT_PICKUP_CROSSHAIR))
{
- pickup_crosshair_fade = 1;
+ pickup_crosshair_size = 1;
pickup_crosshair_time = getstatf(STAT_PICKUP_CROSSHAIR);
}
- if(pickup_crosshair_fade > 0)
- pickup_crosshair_fade -= cvar("crosshair_pickup_speed") * frametime;
+
+ if(pickup_crosshair_size > 0)
+ pickup_crosshair_size -= cvar("crosshair_pickup_speed") * frametime;
else
- pickup_crosshair_fade = 0;
- wcross_scale += sin(pickup_crosshair_fade) * cvar("crosshair_pickup");
+ pickup_crosshair_size = 0;
+
+ wcross_scale += sin(pickup_crosshair_size) * cvar("crosshair_pickup");
}
if(shottype == SHOTTYPE_HITENEMY)