Xonotic
view.qh File Reference
+ Include dependency graph for view.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void calc_followmodel_ofs (entity view)
 
void CSQC_Demo_Camera ()
 
vector project_3d_to_2d (vector vec)
 
void update_mousepos ()
 

Variables

string autocvar__togglezoom
 
bool autocvar_camera_chase_smoothly
 
bool autocvar_camera_enable
 
bool autocvar_camera_forward_follows
 
bool autocvar_camera_free
 
float autocvar_camera_look_attenuation
 
float autocvar_camera_look_player
 
float autocvar_camera_mouse_threshold
 
bool autocvar_camera_reset
 
float autocvar_camera_speed_attenuation
 
float autocvar_camera_speed_chase
 
float autocvar_camera_speed_free
 
float autocvar_camera_speed_roll
 
int autocvar_chase_active
 
bool autocvar_chase_front
 
int autocvar_cl_eventchase_death = 2
 
float autocvar_cl_eventchase_distance = 140
 
bool autocvar_cl_eventchase_frozen = false
 
vector autocvar_cl_eventchase_maxs = '12 12 8'
 
vector autocvar_cl_eventchase_mins = '-12 -12 -8'
 
bool autocvar_cl_eventchase_spectated_change = false
 
float autocvar_cl_eventchase_spectated_change_time = 1
 
float autocvar_cl_eventchase_speed = 1.3
 
bool autocvar_cl_eventchase_vehicle = 1
 
float autocvar_cl_eventchase_vehicle_distance = 250
 
vector autocvar_cl_eventchase_vehicle_viewoffset = '0 0 80'
 
vector autocvar_cl_eventchase_viewoffset = '0 0 20'
 
int autocvar_cl_gentle_damage
 
int autocvar_cl_hitsound
 
float autocvar_cl_hitsound_antispam_time
 
float autocvar_cl_hitsound_max_pitch = 1.5
 
float autocvar_cl_hitsound_min_pitch = 0.75
 
float autocvar_cl_hitsound_nom_damage = 25
 
bool autocvar_cl_lockview
 
int autocvar_cl_nade_timer
 
bool autocvar_cl_orthoview
 
bool autocvar_cl_orthoview_nofog
 
bool autocvar_cl_spawnzoom = 1
 
float autocvar_cl_spawnzoom_factor = 2
 
float autocvar_cl_spawnzoom_speed = 1
 
bool autocvar_cl_stripcolorcodes
 
bool autocvar_cl_velocityzoom_enabled
 
float autocvar_cl_velocityzoom_factor
 
float autocvar_cl_velocityzoom_speed
 
float autocvar_cl_velocityzoom_time
 
int autocvar_cl_velocityzoom_type = 3
 
float autocvar_cl_zoomfactor
 
float autocvar_cl_zoomsensitivity
 
float autocvar_cl_zoomspeed
 
float autocvar_fov
 
float autocvar_hud_colorflash_alpha
 
bool autocvar_hud_contents
 
float autocvar_hud_contents_blur
 
float autocvar_hud_contents_blur_alpha
 
float autocvar_hud_contents_fadeintime
 
float autocvar_hud_contents_fadeouttime
 
float autocvar_hud_contents_lava_alpha
 
string autocvar_hud_contents_lava_color
 
float autocvar_hud_contents_slime_alpha
 
string autocvar_hud_contents_slime_color
 
float autocvar_hud_contents_water_alpha
 
string autocvar_hud_contents_water_color
 
bool autocvar_hud_damage
 
float autocvar_hud_damage_blur
 
float autocvar_hud_damage_blur_alpha
 
string autocvar_hud_damage_color
 
float autocvar_hud_damage_factor
 
float autocvar_hud_damage_fade_rate
 
float autocvar_hud_damage_gentle_alpha_multiplier
 
string autocvar_hud_damage_gentle_color
 
float autocvar_hud_damage_maxalpha
 
float autocvar_hud_damage_pain_threshold
 
float autocvar_hud_damage_pain_threshold_lower
 
float autocvar_hud_damage_pain_threshold_lower_health
 
float autocvar_hud_damage_pain_threshold_pulsating_min
 
float autocvar_hud_damage_pain_threshold_pulsating_period
 
bool autocvar_hud_postprocessing
 
float autocvar_hud_postprocessing_maxbluralpha
 
float autocvar_hud_postprocessing_maxblurradius
 
bool autocvar_hud_powerup
 
float autocvar_menu_mouse_speed
 
bool autocvar_r_drawviewmodel
 
int autocvar_r_fakelight
 
bool autocvar_r_fullbright
 
float autocvar_r_letterbox
 
bool autocvar_v_flipped
 
int autocvar_vid_conheight
 
int autocvar_vid_conwidth
 
float autocvar_vid_pixelheight
 
float autocvar_viewsize
 
int cursor_active
 
const int CURSOR_MOVE = 1
 
const int CURSOR_NORMAL = 0
 
const int CURSOR_RESIZE = 2
 
const int CURSOR_RESIZE2 = 3
 
int cursor_type
 
float dmg_take
 
float drawtime
 
float game_stopped_time
 
float intermission_time
 
float unaccounted_damage = 0
 
vector viewloc_mousepos
 
entity viewmodels [MAX_WEAPONSLOTS]
 
float zoomscript_caught
 

Function Documentation

◆ calc_followmodel_ofs()

void calc_followmodel_ofs ( entity  view)

Definition at line 112 of file view.qc.

References autocvar_cl_followmodel_highpass, autocvar_cl_followmodel_limit, autocvar_cl_followmodel_lowpass, autocvar_cl_followmodel_speed, autocvar_cl_followmodel_velocity_absolute, autocvar_cl_followmodel_velocity_lowpass, avg_factor, bound(), cl_followmodel_ofs, cl_followmodel_time, highpass3, lowpass3, time, vector(), and view_angles.

Referenced by Hud_Dynamic_Frame(), and viewmodel_animate().

113 {
115  return; // cl_followmodel_ofs already calculated for this frame
116 
117  float frac;
118  vector gunorg = '0 0 0';
119  static vector vel_average;
120  static vector gunorg_adjustment_highpass;
121  static vector gunorg_adjustment_lowpass;
122 
123  vector vel;
125  vel = view.velocity;
126  else
127  {
128  vector forward, right, up;
129  MAKE_VECTORS(view_angles, forward, right, up);
130  vel.x = view.velocity * forward;
131  vel.y = view.velocity * right * -1;
132  vel.z = view.velocity * up;
133  }
134 
135  vel.x = bound(vel_average.x - autocvar_cl_followmodel_limit, vel.x, vel_average.x + autocvar_cl_followmodel_limit);
136  vel.y = bound(vel_average.y - autocvar_cl_followmodel_limit, vel.y, vel_average.y + autocvar_cl_followmodel_limit);
137  vel.z = bound(vel_average.z - autocvar_cl_followmodel_limit, vel.z, vel_average.z + autocvar_cl_followmodel_limit);
138 
140  lowpass3(vel, frac, vel_average, gunorg);
141 
142  gunorg *= -autocvar_cl_followmodel_speed * 0.042;
143 
144  // perform highpass/lowpass on the adjustment vectors (turning velocity into acceleration!)
145  // trick: we must do the lowpass LAST, so the lowpass vector IS the final vector!
147  highpass3(gunorg, frac, gunorg_adjustment_highpass, gunorg);
149  lowpass3(gunorg, frac, gunorg_adjustment_lowpass, gunorg);
150 
152  {
153  vector fixed_gunorg;
154  vector forward, right, up;
155  MAKE_VECTORS(view_angles, forward, right, up);
156  fixed_gunorg.x = gunorg * forward;
157  fixed_gunorg.y = gunorg * right * -1;
158  fixed_gunorg.z = gunorg * up;
159  gunorg = fixed_gunorg;
160  }
161 
162  cl_followmodel_ofs = gunorg;
164 }
float cl_followmodel_time
Definition: hud.qh:214
bool autocvar_cl_followmodel_velocity_absolute
Definition: view.qc:56
float autocvar_cl_followmodel_highpass
Definition: view.qc:54
float autocvar_cl_followmodel_lowpass
Definition: view.qc:55
#define lowpass3(value, frac, ref_store, ref_out)
Definition: view.qc:100
vector view_angles
Definition: csprogsdefs.qc:150
float autocvar_cl_followmodel_velocity_lowpass
Definition: view.qc:53
float autocvar_cl_followmodel_limit
Definition: view.qc:52
#define avg_factor(avg_time)
Definition: view.qc:65
vector(float skel, float bonenum) _skel_get_boneabs_hidden
vector cl_followmodel_ofs
Definition: hud.qh:213
#define highpass3(value, frac, ref_store, ref_out)
Definition: view.qc:106
float time
Definition: csprogsdefs.qc:16
float autocvar_cl_followmodel_speed
Definition: view.qc:51
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CSQC_Demo_Camera()

void CSQC_Demo_Camera ( )

Definition at line 1772 of file view.qc.

References autocvar_camera_chase_smoothly, autocvar_camera_forward_follows, autocvar_camera_free, autocvar_camera_look_attenuation, autocvar_camera_look_player, autocvar_camera_mouse_threshold, autocvar_camera_reset, autocvar_camera_speed_attenuation, autocvar_camera_speed_chase, autocvar_camera_speed_free, autocvar_camera_speed_roll, CAMERA_CHASE, camera_direction, CAMERA_FREE, camera_mode, camera_offset, camera_roll, cos(), current_angles, current_camera_offset, current_origin, current_position, cvar_set(), DEG2RAD, dir, getmousepos(), max(), mouse_angles, normalize(), sin(), speed, sqrt(), vdist, vectoangles(), vector(), VF_ANGLES, VF_ORIGIN, and view_origin.

Referenced by View_DemoCamera().

1773 {
1774  float speed, attenuation, dimensions;
1775  vector tmp, delta;
1776 
1778  {
1779  camera_offset = '0 0 0';
1780  current_angles = '0 0 0';
1781  camera_direction = '0 0 0';
1782  camera_offset.z += 30;
1783  camera_offset.x += 30 * -cos(current_angles.y * DEG2RAD);
1784  camera_offset.y += 30 * -sin(current_angles.y * DEG2RAD);
1787  cvar_set("camera_reset", "0");
1789  }
1790 
1791  // Camera angles
1792  if( camera_roll )
1794 
1796  {
1797  vector dir;
1798  float n;
1799 
1801  n = mouse_angles.z;
1802  mouse_angles = vectoangles(dir);
1803  mouse_angles.x = mouse_angles.x * -1;
1804  mouse_angles.z = n;
1805  }
1806  else
1807  {
1808  tmp = getmousepos() * 0.1;
1810  {
1811  mouse_angles.x += tmp.y * cos(mouse_angles.z * DEG2RAD) + (tmp.x * sin(mouse_angles.z * DEG2RAD));
1812  mouse_angles.y -= tmp.x * cos(mouse_angles.z * DEG2RAD) + (tmp.y * -sin(mouse_angles.z * DEG2RAD));
1813  }
1814  }
1815 
1816  while (mouse_angles.x < -180) mouse_angles.x = mouse_angles.x + 360;
1817  while (mouse_angles.x > 180) mouse_angles.x = mouse_angles.x - 360;
1818  while (mouse_angles.y < -180) mouse_angles.y = mouse_angles.y + 360;
1819  while (mouse_angles.y > 180) mouse_angles.y = mouse_angles.y - 360;
1820 
1821  // Fix difference when angles don't have the same sign
1822  delta = '0 0 0';
1823  if(mouse_angles.y < -60 && current_angles.y > 60)
1824  delta = '0 360 0';
1825  if(mouse_angles.y > 60 && current_angles.y < -60)
1826  delta = '0 -360 0';
1827 
1829  attenuation = autocvar_camera_look_attenuation;
1830  else
1831  attenuation = autocvar_camera_speed_attenuation;
1832 
1833  attenuation = 1 / max(1, attenuation);
1834  current_angles += (mouse_angles - current_angles + delta) * attenuation;
1835 
1836  while (current_angles.x < -180) current_angles.x = current_angles.x + 360;
1837  while (current_angles.x > 180) current_angles.x = current_angles.x - 360;
1838  while (current_angles.y < -180) current_angles.y = current_angles.y + 360;
1839  while (current_angles.y > 180) current_angles.y = current_angles.y - 360;
1840 
1841  // Camera position
1842  tmp = '0 0 0';
1843  dimensions = 0;
1844 
1845  if( camera_direction.x )
1846  {
1847  tmp.x = camera_direction.x * cos(current_angles.y * DEG2RAD);
1848  tmp.y = camera_direction.x * sin(current_angles.y * DEG2RAD);
1850  tmp.z = camera_direction.x * -sin(current_angles.x * DEG2RAD);
1851  ++dimensions;
1852  }
1853 
1854  if( camera_direction.y )
1855  {
1856  tmp.x += camera_direction.y * -sin(current_angles.y * DEG2RAD);
1858  tmp.z += camera_direction.y * sin(current_angles.z * DEG2RAD);
1859  ++dimensions;
1860  }
1861 
1862  if( camera_direction.z )
1863  {
1864  tmp.z += camera_direction.z * cos(current_angles.z * DEG2RAD);
1865  ++dimensions;
1866  }
1867 
1870  else
1872 
1873  if(dimensions)
1874  {
1875  speed = speed * sqrt(1 / dimensions);
1876  camera_offset += tmp * speed;
1877  }
1878 
1880 
1881  // Camera modes
1882  if( autocvar_camera_free )
1883  {
1884  if ( camera_mode == CAMERA_CHASE )
1885  {
1888  }
1889 
1892  }
1893  else
1894  {
1895  if ( camera_mode == CAMERA_FREE )
1896  {
1900  }
1901 
1903 
1905  current_origin += (view_origin - current_origin) * attenuation;
1906  else
1908 
1910  }
1911 
1912  setproperty(VF_ANGLES, current_angles);
1913  setproperty(VF_ORIGIN, current_position);
1914 }
float DEG2RAD
Definition: csprogsdefs.qc:961
float speed
Definition: subs.qh:41
vector current_camera_offset
Definition: view.qc:1771
vector camera_direction
Definition: main.qh:126
bool autocvar_camera_chase_smoothly
Definition: view.qh:5
bool autocvar_camera_reset
Definition: view.qh:12
vector current_angles
Definition: view.qc:1771
vector view_origin
Definition: main.qh:93
float autocvar_camera_speed_roll
Definition: view.qh:16
vector camera_offset
Definition: view.qc:1771
float autocvar_camera_look_player
Definition: view.qh:10
bool autocvar_camera_free
Definition: view.qh:8
bool autocvar_camera_forward_follows
Definition: view.qh:7
const float CAMERA_FREE
Definition: view.qc:570
vector mouse_angles
Definition: view.qc:1771
vector current_origin
Definition: view.qc:1771
vector current_position
Definition: view.qc:1771
vector(float skel, float bonenum) _skel_get_boneabs_hidden
float autocvar_camera_speed_attenuation
Definition: view.qh:13
const float VF_ANGLES
Definition: csprogsdefs.qc:186
float autocvar_camera_look_attenuation
Definition: view.qh:9
#define vdist(v, cmp, f)
Vector distance comparison, avoids sqrt()
Definition: vector.qh:8
float autocvar_camera_mouse_threshold
Definition: view.qh:11
const float CAMERA_CHASE
Definition: view.qc:571
float autocvar_camera_speed_chase
Definition: view.qh:14
int dir
Definition: impulse.qc:89
float autocvar_camera_speed_free
Definition: view.qh:15
const float VF_ORIGIN
Definition: csprogsdefs.qc:182
float camera_mode
Definition: view.qc:569
float camera_roll
Definition: main.qh:125
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ project_3d_to_2d()

vector project_3d_to_2d ( vector  vec)

Definition at line 359 of file view.qc.

References cs_project_is_b0rked, vid_conheight, vid_conwidth, vid_height, and vid_width.

Referenced by AuxiliaryXhair_Draw2D(), DamageText::DamageText_draw2d(), Draw_ShowNames(), EnemyHitCheck(), GENERIC_COMMAND(), HUD_Crosshair(), NET_HANDLE(), and turret_draw2d().

360 {
361  vec = cs_project(vec);
362  if(cs_project_is_b0rked > 0)
363  {
364  vec.x *= vid_conwidth / vid_width;
365  vec.y *= vid_conheight / vid_height;
366  }
367  return vec;
368 }
float vid_conheight
int vid_height
Definition: main.qh:120
float vid_conwidth
int vid_width
Definition: main.qh:120
int cs_project_is_b0rked
Definition: main.qh:119
+ Here is the caller graph for this function:

◆ update_mousepos()

void update_mousepos ( )

Definition at line 379 of file view.qc.

References autocvar_menu_mouse_speed, bound(), getmousepos(), mousepos, vid_conheight, and vid_conwidth.

Referenced by HUD_Mouse().

380 {
382  mousepos.x = bound(0, mousepos.x, vid_conwidth);
384 }
float vid_conheight
float autocvar_menu_mouse_speed
Definition: view.qh:66
float vid_conwidth
vector mousepos
Definition: hud.qh:102
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ autocvar__togglezoom

string autocvar__togglezoom

Definition at line 92 of file view.qh.

Referenced by View_CheckButtonStatus().

◆ autocvar_camera_chase_smoothly

bool autocvar_camera_chase_smoothly

Definition at line 5 of file view.qh.

Referenced by CSQC_Demo_Camera().

◆ autocvar_camera_enable

bool autocvar_camera_enable

Definition at line 6 of file view.qh.

Referenced by View_DemoCamera().

◆ autocvar_camera_forward_follows

bool autocvar_camera_forward_follows

Definition at line 7 of file view.qh.

Referenced by CSQC_Demo_Camera().

◆ autocvar_camera_free

bool autocvar_camera_free

Definition at line 8 of file view.qh.

Referenced by CSQC_Demo_Camera().

◆ autocvar_camera_look_attenuation

float autocvar_camera_look_attenuation

Definition at line 9 of file view.qh.

Referenced by CSQC_Demo_Camera().

◆ autocvar_camera_look_player

float autocvar_camera_look_player

Definition at line 10 of file view.qh.

Referenced by CSQC_Demo_Camera().

◆ autocvar_camera_mouse_threshold

float autocvar_camera_mouse_threshold

Definition at line 11 of file view.qh.

Referenced by CSQC_Demo_Camera().

◆ autocvar_camera_reset

bool autocvar_camera_reset

Definition at line 12 of file view.qh.

Referenced by CSQC_Demo_Camera().

◆ autocvar_camera_speed_attenuation

float autocvar_camera_speed_attenuation

Definition at line 13 of file view.qh.

Referenced by CSQC_Demo_Camera().

◆ autocvar_camera_speed_chase

float autocvar_camera_speed_chase

Definition at line 14 of file view.qh.

Referenced by CSQC_Demo_Camera().

◆ autocvar_camera_speed_free

float autocvar_camera_speed_free

Definition at line 15 of file view.qh.

Referenced by CSQC_Demo_Camera().

◆ autocvar_camera_speed_roll

float autocvar_camera_speed_roll

Definition at line 16 of file view.qh.

Referenced by CSQC_Demo_Camera().

◆ autocvar_chase_active

◆ autocvar_chase_front

bool autocvar_chase_front

Definition at line 18 of file view.qh.

Referenced by CSQCPlayer_ApplyChase(), and HUD_Crosshair().

◆ autocvar_cl_eventchase_death

int autocvar_cl_eventchase_death = 2

Definition at line 85 of file view.qh.

Referenced by WantEventchase().

◆ autocvar_cl_eventchase_distance

float autocvar_cl_eventchase_distance = 140

Definition at line 86 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_frozen

bool autocvar_cl_eventchase_frozen = false

Definition at line 87 of file view.qh.

Referenced by WantEventchase().

◆ autocvar_cl_eventchase_maxs

vector autocvar_cl_eventchase_maxs = '12 12 8'

Definition at line 89 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_mins

vector autocvar_cl_eventchase_mins = '-12 -12 -8'

Definition at line 90 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_spectated_change

bool autocvar_cl_eventchase_spectated_change = false

Definition at line 83 of file view.qh.

Referenced by WantEventchase().

◆ autocvar_cl_eventchase_spectated_change_time

float autocvar_cl_eventchase_spectated_change_time = 1

Definition at line 84 of file view.qh.

Referenced by WantEventchase().

◆ autocvar_cl_eventchase_speed

float autocvar_cl_eventchase_speed = 1.3

Definition at line 88 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_vehicle

bool autocvar_cl_eventchase_vehicle = 1

Definition at line 75 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_vehicle_distance

float autocvar_cl_eventchase_vehicle_distance = 250

Definition at line 77 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_vehicle_viewoffset

vector autocvar_cl_eventchase_vehicle_viewoffset = '0 0 80'

Definition at line 76 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_viewoffset

vector autocvar_cl_eventchase_viewoffset = '0 0 20'

Definition at line 91 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_gentle_damage

int autocvar_cl_gentle_damage

Definition at line 19 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_cl_hitsound

int autocvar_cl_hitsound

Definition at line 78 of file view.qh.

Referenced by HitSound().

◆ autocvar_cl_hitsound_antispam_time

float autocvar_cl_hitsound_antispam_time

Definition at line 82 of file view.qh.

Referenced by HitSound().

◆ autocvar_cl_hitsound_max_pitch

float autocvar_cl_hitsound_max_pitch = 1.5

Definition at line 80 of file view.qh.

Referenced by HitSound().

◆ autocvar_cl_hitsound_min_pitch

float autocvar_cl_hitsound_min_pitch = 0.75

Definition at line 79 of file view.qh.

Referenced by HitSound().

◆ autocvar_cl_hitsound_nom_damage

float autocvar_cl_hitsound_nom_damage = 25

Definition at line 81 of file view.qh.

Referenced by HitSound().

◆ autocvar_cl_lockview

bool autocvar_cl_lockview

Definition at line 20 of file view.qh.

Referenced by CSQC_Init(), GetCurrentFov(), HUD_Crosshair(), NET_HANDLE(), and View_Lock().

◆ autocvar_cl_nade_timer

int autocvar_cl_nade_timer

Definition at line 93 of file view.qh.

Referenced by HUD_Draw().

◆ autocvar_cl_orthoview

bool autocvar_cl_orthoview

Definition at line 21 of file view.qh.

Referenced by Fog_Force(), View_Ortho(), View_UpdateFov(), and WantEventchase().

◆ autocvar_cl_orthoview_nofog

bool autocvar_cl_orthoview_nofog

Definition at line 22 of file view.qh.

Referenced by Fog_Force().

◆ autocvar_cl_spawnzoom

bool autocvar_cl_spawnzoom = 1

Definition at line 23 of file view.qh.

Referenced by GetCurrentFov(), and NET_HANDLE().

◆ autocvar_cl_spawnzoom_factor

float autocvar_cl_spawnzoom_factor = 2

Definition at line 25 of file view.qh.

Referenced by GetCurrentFov(), and NET_HANDLE().

◆ autocvar_cl_spawnzoom_speed

float autocvar_cl_spawnzoom_speed = 1

Definition at line 24 of file view.qh.

Referenced by GetCurrentFov().

◆ autocvar_cl_stripcolorcodes

bool autocvar_cl_stripcolorcodes

Definition at line 26 of file view.qh.

Referenced by CSQC_UpdateView().

◆ autocvar_cl_velocityzoom_enabled

bool autocvar_cl_velocityzoom_enabled

Definition at line 27 of file view.qh.

Referenced by GetCurrentFov().

◆ autocvar_cl_velocityzoom_factor

float autocvar_cl_velocityzoom_factor

Definition at line 28 of file view.qh.

Referenced by GetCurrentFov().

◆ autocvar_cl_velocityzoom_speed

float autocvar_cl_velocityzoom_speed

Definition at line 30 of file view.qh.

Referenced by GetCurrentFov().

◆ autocvar_cl_velocityzoom_time

float autocvar_cl_velocityzoom_time

Definition at line 31 of file view.qh.

Referenced by GetCurrentFov().

◆ autocvar_cl_velocityzoom_type

int autocvar_cl_velocityzoom_type = 3

Definition at line 29 of file view.qh.

Referenced by GetCurrentFov().

◆ autocvar_cl_zoomfactor

float autocvar_cl_zoomfactor

Definition at line 32 of file view.qh.

Referenced by GetCurrentFov().

◆ autocvar_cl_zoomsensitivity

float autocvar_cl_zoomsensitivity

Definition at line 33 of file view.qh.

Referenced by GetCurrentFov().

◆ autocvar_cl_zoomspeed

float autocvar_cl_zoomspeed

Definition at line 34 of file view.qh.

Referenced by GetCurrentFov().

◆ autocvar_fov

float autocvar_fov

Definition at line 35 of file view.qh.

Referenced by View_CheckButtonStatus(), and View_UpdateFov().

◆ autocvar_hud_colorflash_alpha

float autocvar_hud_colorflash_alpha

Definition at line 36 of file view.qh.

Referenced by HUD_Draw().

◆ autocvar_hud_contents

bool autocvar_hud_contents

Definition at line 37 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_blur

float autocvar_hud_contents_blur

Definition at line 38 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_blur_alpha

float autocvar_hud_contents_blur_alpha

Definition at line 39 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_fadeintime

float autocvar_hud_contents_fadeintime

Definition at line 40 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_fadeouttime

float autocvar_hud_contents_fadeouttime

Definition at line 41 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_lava_alpha

float autocvar_hud_contents_lava_alpha

Definition at line 42 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_lava_color

string autocvar_hud_contents_lava_color

Definition at line 43 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_slime_alpha

float autocvar_hud_contents_slime_alpha

Definition at line 44 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_slime_color

string autocvar_hud_contents_slime_color

Definition at line 45 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_water_alpha

float autocvar_hud_contents_water_alpha

Definition at line 46 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_water_color

string autocvar_hud_contents_water_color

Definition at line 47 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_damage

bool autocvar_hud_damage

Definition at line 48 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_blur

float autocvar_hud_damage_blur

Definition at line 49 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_blur_alpha

float autocvar_hud_damage_blur_alpha

Definition at line 50 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_color

string autocvar_hud_damage_color

Definition at line 51 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_factor

float autocvar_hud_damage_factor

Definition at line 52 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_fade_rate

float autocvar_hud_damage_fade_rate

Definition at line 53 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_gentle_alpha_multiplier

float autocvar_hud_damage_gentle_alpha_multiplier

Definition at line 54 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_gentle_color

string autocvar_hud_damage_gentle_color

Definition at line 55 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_maxalpha

float autocvar_hud_damage_maxalpha

Definition at line 56 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_pain_threshold

float autocvar_hud_damage_pain_threshold

Definition at line 57 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_pain_threshold_lower

float autocvar_hud_damage_pain_threshold_lower

Definition at line 58 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_pain_threshold_lower_health

float autocvar_hud_damage_pain_threshold_lower_health

Definition at line 59 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_pain_threshold_pulsating_min

float autocvar_hud_damage_pain_threshold_pulsating_min

Definition at line 60 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_pain_threshold_pulsating_period

float autocvar_hud_damage_pain_threshold_pulsating_period

Definition at line 61 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_postprocessing

bool autocvar_hud_postprocessing

Definition at line 63 of file view.qh.

Referenced by HUD_Contents(), HUD_Damage(), and View_PostProcessing().

◆ autocvar_hud_postprocessing_maxbluralpha

float autocvar_hud_postprocessing_maxbluralpha

Definition at line 64 of file view.qh.

Referenced by View_PostProcessing().

◆ autocvar_hud_postprocessing_maxblurradius

float autocvar_hud_postprocessing_maxblurradius

Definition at line 65 of file view.qh.

Referenced by View_PostProcessing().

◆ autocvar_hud_powerup

bool autocvar_hud_powerup

Definition at line 62 of file view.qh.

Referenced by View_PostProcessing().

◆ autocvar_menu_mouse_speed

float autocvar_menu_mouse_speed

Definition at line 66 of file view.qh.

Referenced by update_mousepos(), and ViewLocation_Mouse().

◆ autocvar_r_drawviewmodel

bool autocvar_r_drawviewmodel

Definition at line 94 of file view.qh.

Referenced by CSQC_UpdateView(), Shutdown(), viewmodel_draw(), and W_Model().

◆ autocvar_r_fakelight

int autocvar_r_fakelight

Definition at line 67 of file view.qh.

Referenced by View_NightVision().

◆ autocvar_r_fullbright

bool autocvar_r_fullbright

Definition at line 68 of file view.qh.

Referenced by View_NightVision().

◆ autocvar_r_letterbox

float autocvar_r_letterbox

Definition at line 69 of file view.qh.

◆ autocvar_v_flipped

bool autocvar_v_flipped

Definition at line 70 of file view.qh.

Referenced by HUD_StrafeHUD(), and teamradar_loadcvars().

◆ autocvar_vid_conheight

int autocvar_vid_conheight

Definition at line 71 of file view.qh.

Referenced by CSQC_UpdateView(), View_NightVision(), and viewloc_PlayerPhysics().

◆ autocvar_vid_conwidth

int autocvar_vid_conwidth

Definition at line 72 of file view.qh.

Referenced by CSQC_UpdateView(), View_NightVision(), and viewloc_PlayerPhysics().

◆ autocvar_vid_pixelheight

float autocvar_vid_pixelheight

Definition at line 73 of file view.qh.

Referenced by CSQC_UpdateView().

◆ autocvar_viewsize

float autocvar_viewsize

Definition at line 74 of file view.qh.

◆ cursor_active

int cursor_active

Definition at line 108 of file view.qh.

Referenced by HUD_Main(), HUD_Mouse(), and PM_UpdateButtons().

◆ CURSOR_MOVE

const int CURSOR_MOVE = 1

Definition at line 111 of file view.qh.

Referenced by HUD_Cursor_Show(), and HUD_Panel_Check_Mouse_Pos().

◆ CURSOR_NORMAL

const int CURSOR_NORMAL = 0

◆ CURSOR_RESIZE

const int CURSOR_RESIZE = 2

Definition at line 112 of file view.qh.

Referenced by HUD_Cursor_Show(), and HUD_Panel_Check_Mouse_Pos().

◆ CURSOR_RESIZE2

const int CURSOR_RESIZE2 = 3

Definition at line 113 of file view.qh.

Referenced by HUD_Cursor_Show(), and HUD_Panel_Check_Mouse_Pos().

◆ cursor_type

int cursor_type

Definition at line 109 of file view.qh.

Referenced by HUD_Configure_Exit_Force(), HUD_Cursor_Show(), HUD_Mouse(), and HUD_Panel_Mouse().

◆ dmg_take

float dmg_take

Definition at line 119 of file view.qh.

Referenced by bot_think(), HUD_Damage(), PlayerCorpseDamage(), PlayerDamage(), and SpectateCopy().

◆ drawtime

◆ game_stopped_time

float game_stopped_time

Definition at line 128 of file view.qh.

Referenced by CSQC_UpdateView(), and HUD_Timer().

◆ intermission_time

float intermission_time

Definition at line 127 of file view.qh.

Referenced by CSQC_UpdateView(), HUD_Notify(), and HUD_Timer().

◆ unaccounted_damage

float unaccounted_damage = 0

Definition at line 116 of file view.qh.

Referenced by HitSound(), HUD_Crosshair(), and UpdateDamage().

◆ viewloc_mousepos

vector viewloc_mousepos

Definition at line 106 of file view.qh.

Referenced by HUD_Crosshair(), viewloc_PlayerPhysics(), and ViewLocation_Mouse().

◆ viewmodels

◆ zoomscript_caught

float zoomscript_caught

Definition at line 117 of file view.qh.

Referenced by DrawReticle(), TrueAimCheck(), and View_CheckButtonStatus().