Xonotic
|
Go to the source code of this file.
Functions | |
vector | crosshair_getcolor (entity this, float health_stat) |
void | DrawReticle (entity this) |
void | HUD_Crosshair (entity this) |
void | TrueAim_Init () |
Definition at line 174 of file crosshair.qc.
References armorblockpercent, autocvar_crosshair_color, autocvar_crosshair_color_special, autocvar_crosshair_color_special_rainbow_brightness, autocvar_crosshair_color_special_rainbow_delay, floor(), hud, HUD_Get_Num_Color(), LABEL, randomvec(), stov(), time, v, and vector().
Referenced by HUD_Crosshair(), and Vehicles_drawCrosshair().
Definition at line 678 of file crosshair.qc.
References autocvar_cl_reticle, autocvar_cl_reticle_normal_alpha, autocvar_cl_reticle_stretch, autocvar_cl_reticle_weapon, autocvar_cl_reticle_weapon_alpha, button_zoom, current_zoomfraction, DRAWFLAG_NORMAL, drawpic(), DrawReticle(), entity(), hud, max(), MAX_WEAPONSLOTS, MUTATOR_CALLHOOK, NULL, reticle_type, spectatee_status, string_null, vector(), vid_conheight, vid_conwidth, viewloc, viewmodels, Weapon::w_reticle, and zoomscript_caught.
Referenced by CSQC_UpdateView(), and DrawReticle().
Definition at line 226 of file crosshair.qc.
References autocvar__menu_alpha, autocvar_chase_active, autocvar_chase_front, autocvar_cl_lockview, autocvar_crosshair, autocvar_crosshair_2d, autocvar_crosshair_alpha, autocvar_crosshair_chase, autocvar_crosshair_chase_playeralpha, autocvar_crosshair_color_special, autocvar_crosshair_dot, autocvar_crosshair_dot_alpha, autocvar_crosshair_dot_color, autocvar_crosshair_dot_color_custom, autocvar_crosshair_dot_size, autocvar_crosshair_effect_scalefade, autocvar_crosshair_effect_time, autocvar_crosshair_enabled, autocvar_crosshair_hitindication, autocvar_crosshair_hitindication_color, autocvar_crosshair_hitindication_per_weapon_color, autocvar_crosshair_hitindication_speed, autocvar_crosshair_hittest, autocvar_crosshair_hittest_blur_teammate, autocvar_crosshair_hittest_blur_wall, autocvar_crosshair_hittest_showimpact, autocvar_crosshair_per_weapon, autocvar_crosshair_pickup, autocvar_crosshair_pickup_speed, autocvar_crosshair_ring, autocvar_crosshair_ring_arc, autocvar_crosshair_ring_arc_cold_alpha, autocvar_crosshair_ring_arc_hot_alpha, autocvar_crosshair_ring_arc_hot_color, autocvar_crosshair_ring_hagar, autocvar_crosshair_ring_hagar_alpha, autocvar_crosshair_ring_inner, autocvar_crosshair_ring_minelayer, autocvar_crosshair_ring_minelayer_alpha, autocvar_crosshair_ring_reload, autocvar_crosshair_ring_reload_alpha, autocvar_crosshair_ring_reload_size, autocvar_crosshair_ring_size, autocvar_crosshair_ring_vortex, autocvar_crosshair_ring_vortex_alpha, autocvar_crosshair_ring_vortex_currentcharge_movingavg_rate, autocvar_crosshair_ring_vortex_currentcharge_scale, autocvar_crosshair_ring_vortex_inner_alpha, autocvar_crosshair_ring_vortex_inner_color_blue, autocvar_crosshair_ring_vortex_inner_color_green, autocvar_crosshair_ring_vortex_inner_color_red, autocvar_crosshair_size, bound(), camera_active, CROSSHAIR_DRAW, crosshair_getcolor(), csqcplayer, DrawCircleClippedPic(), DRAWFLAG_ADDITIVE, entity(), fabs(), frametime, hitindication_crosshair_size, hud, HUD_Crosshair_ApplyPlayerAlpha(), HUD_Crosshair_Vehicle(), HUD_MinigameMenu_IsOpened(), intermission, max(), min(), MOVE_NORMAL, MOVE_WORLDONLY, MUTATOR_CALLHOOK, NULL, pickup_crosshair_size, pickup_crosshair_time, pointinsidebox, project_3d_to_2d(), scoreboard_active, SHOTTYPE_HITOBSTRUCTION, SHOTTYPE_HITTEAM, SHOTTYPE_HITWORLD, sin(), spectatee_status, stov(), strcat(), strfree, string_null, strunzone(), strzone(), time, trace_endpos, trace_ent, TrueAimCheck(), unaccounted_damage, use_vortex_chargepool, v, vdist, vec3, vector(), vid_conheight, vid_conwidth, view_forward, view_origin, VIEWLOC_FREEAIM, viewloc_mousepos, viewmodels, vortex_charge_movingavg, WarpZone_TraceLine(), wcross_alpha_goal_prev, wcross_alpha_prev, wcross_changedonetime, wcross_color_goal_prev, wcross_color_prev, wcross_name_alpha_goal_prev, wcross_name_alpha_goal_prev_prev, wcross_name_changedonetime, wcross_name_changestarttime, wcross_name_goal_prev, wcross_name_goal_prev_prev, wcross_origin, wcross_resolution_goal_prev, wcross_resolution_goal_prev_prev, wcross_ring_prev, wcross_scale_goal_prev, wcross_scale_prev, WEP_CVAR, and WEP_CVAR_SEC.
void TrueAim_Init | ( | ) |
Definition at line 46 of file crosshair.qc.
References DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_SOLID, dphitcontentsmask, new_pure, trueaim, and trueaim_rifle.
Referenced by PostInit().
bool autocvar_cl_reticle = 1 |
Definition at line 3 of file crosshair.qh.
Referenced by CSQC_Init(), and DrawReticle().
float autocvar_cl_reticle_normal_alpha = 1 |
Definition at line 4 of file crosshair.qh.
Referenced by DrawReticle().
bool autocvar_cl_reticle_stretch |
Definition at line 7 of file crosshair.qh.
Referenced by DrawReticle().
bool autocvar_cl_reticle_weapon = 1 |
Definition at line 5 of file crosshair.qh.
Referenced by DrawReticle().
float autocvar_cl_reticle_weapon_alpha = 1 |
Definition at line 6 of file crosshair.qh.
Referenced by DrawReticle().
string autocvar_crosshair |
Definition at line 8 of file crosshair.qh.
Referenced by HUD_Crosshair().
string autocvar_crosshair_2d = "54" |
Definition at line 9 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_alpha |
Definition at line 10 of file crosshair.qh.
Referenced by AuxiliaryXhair_Draw2D(), HUD_Crosshair(), and Vehicles_drawCrosshair().
Definition at line 57 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_chase_playeralpha = 0.25 |
Definition at line 58 of file crosshair.qh.
Referenced by HUD_Crosshair().
string autocvar_crosshair_color |
Definition at line 11 of file crosshair.qh.
Referenced by crosshair_getcolor().
int autocvar_crosshair_color_special |
Definition at line 12 of file crosshair.qh.
Referenced by crosshair_getcolor(), and HUD_Crosshair().
float autocvar_crosshair_color_special_rainbow_brightness = 2 |
Definition at line 13 of file crosshair.qh.
Referenced by crosshair_getcolor().
float autocvar_crosshair_color_special_rainbow_delay = 0.1 |
Definition at line 14 of file crosshair.qh.
Referenced by crosshair_getcolor().
bool autocvar_crosshair_dot |
Definition at line 15 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_dot_alpha |
Definition at line 16 of file crosshair.qh.
Referenced by HUD_Crosshair().
string autocvar_crosshair_dot_color |
Definition at line 17 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_dot_color_custom = 1 |
Definition at line 18 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_dot_size |
Definition at line 19 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_effect_scalefade |
Definition at line 20 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_effect_time = 0.2 |
Definition at line 21 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_enabled = 1 |
Definition at line 22 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_hitindication |
Definition at line 23 of file crosshair.qh.
Referenced by HUD_Crosshair().
string autocvar_crosshair_hitindication_color |
Definition at line 24 of file crosshair.qh.
Referenced by HUD_Crosshair().
string autocvar_crosshair_hitindication_per_weapon_color |
Definition at line 25 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_hitindication_speed |
Definition at line 26 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_hittest |
Definition at line 27 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_hittest_blur_teammate = 0 |
Definition at line 28 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_hittest_blur_wall = 1 |
Definition at line 29 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_hittest_showimpact |
Definition at line 30 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_per_weapon |
Definition at line 31 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_pickup |
Definition at line 32 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_pickup_speed |
Definition at line 33 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_ring |
Definition at line 34 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_ring_arc = 1 |
Definition at line 48 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_arc_cold_alpha = 0.2 |
Definition at line 50 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_arc_hot_alpha = 0.5 |
Definition at line 51 of file crosshair.qh.
Referenced by HUD_Crosshair().
vector autocvar_crosshair_ring_arc_hot_color = '1 0 0' |
Definition at line 49 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_ring_hagar |
Definition at line 38 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_hagar_alpha |
Definition at line 39 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_ring_inner |
Definition at line 35 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_ring_minelayer |
Definition at line 36 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_minelayer_alpha |
Definition at line 37 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_ring_reload |
Definition at line 53 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_reload_alpha |
Definition at line 54 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_reload_size |
Definition at line 55 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_size |
Definition at line 52 of file crosshair.qh.
Referenced by HUD_Crosshair().
bool autocvar_crosshair_ring_vortex = 1 |
Definition at line 40 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_vortex_alpha = 0.15 |
Definition at line 41 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_vortex_currentcharge_movingavg_rate = 0.05 |
Definition at line 42 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_vortex_currentcharge_scale = 30 |
Definition at line 43 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_vortex_inner_alpha = 0.15 |
Definition at line 44 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_vortex_inner_color_blue = 0 |
Definition at line 45 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_vortex_inner_color_green = 0 |
Definition at line 46 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_ring_vortex_inner_color_red = 0.8 |
Definition at line 47 of file crosshair.qh.
Referenced by HUD_Crosshair().
float autocvar_crosshair_size |
Definition at line 56 of file crosshair.qh.
Referenced by HUD_Crosshair().
float vortex_charge_movingavg |
Definition at line 60 of file crosshair.qh.
Referenced by HUD_Crosshair().