Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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 ()
bool View_InputEvent (int bInputType, float nPrimary, float nSecondary)

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
vector autocvar_cl_gunoffset
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
bool autocvar_cl_zoomscroll = 1
float autocvar_cl_zoomscroll_scale = 0.2
float autocvar_cl_zoomscroll_speed = 16
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 113 of file view.qc.

114{
116 return; // cl_followmodel_ofs already calculated for this frame
117
118 float frac;
119 vector gunorg = '0 0 0';
120 static vector vel_average;
121 static vector gunorg_adjustment_highpass;
122 static vector gunorg_adjustment_lowpass;
123
124 vector vel;
126 vel = view.velocity;
127 else
128 {
129 vector forward, right, up;
130 MAKE_VECTORS(view_angles, forward, right, up);
131 vel.x = view.velocity * forward;
132 vel.y = view.velocity * right * -1;
133 vel.z = view.velocity * up;
134 }
135
136 vel.x = bound(vel_average.x - autocvar_cl_followmodel_limit, vel.x, vel_average.x + autocvar_cl_followmodel_limit);
137 vel.y = bound(vel_average.y - autocvar_cl_followmodel_limit, vel.y, vel_average.y + autocvar_cl_followmodel_limit);
138 vel.z = bound(vel_average.z - autocvar_cl_followmodel_limit, vel.z, vel_average.z + autocvar_cl_followmodel_limit);
139
141 lowpass3(vel, frac, vel_average, gunorg);
142
143 gunorg *= -autocvar_cl_followmodel_speed * 0.042;
144
145 // perform highpass/lowpass on the adjustment vectors (turning velocity into acceleration!)
146 // trick: we must do the lowpass LAST, so the lowpass vector IS the final vector!
148 highpass3(gunorg, frac, gunorg_adjustment_highpass, gunorg);
150 lowpass3(gunorg, frac, gunorg_adjustment_lowpass, gunorg);
151
153 {
154 vector fixed_gunorg;
155 vector forward, right, up;
156 MAKE_VECTORS(view_angles, forward, right, up);
157 fixed_gunorg.x = gunorg * forward;
158 fixed_gunorg.y = gunorg * right * -1;
159 fixed_gunorg.z = gunorg * up;
160 gunorg = fixed_gunorg;
161 }
162
163 cl_followmodel_ofs = gunorg;
165}
vector view_angles
float time
#define MAKE_VECTORS(angles, forward, right, up)
Same as the makevectors builtin but uses the provided locals instead of the v_* globals.
vector cl_followmodel_ofs
Definition hud.qh:218
float cl_followmodel_time
Definition hud.qh:219
float bound(float min, float value, float max)
vector
Definition self.qh:92
bool autocvar_cl_followmodel_velocity_absolute
Definition view.qc:57
float autocvar_cl_followmodel_limit
Definition view.qc:53
float autocvar_cl_followmodel_velocity_lowpass
Definition view.qc:54
float autocvar_cl_followmodel_speed
Definition view.qc:52
#define lowpass3(value, frac, ref_store, ref_out)
Definition view.qc:101
float autocvar_cl_followmodel_highpass
Definition view.qc:55
float autocvar_cl_followmodel_lowpass
Definition view.qc:56
#define avg_factor(avg_time)
Definition view.qc:66
#define highpass3(value, frac, ref_store, ref_out)
Definition view.qc:107

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, entity(), highpass3, lowpass3, MAKE_VECTORS, time, vector, and view_angles.

Referenced by Hud_Dynamic_Frame(), and viewmodel_animate().

◆ CSQC_Demo_Camera()

void CSQC_Demo_Camera ( )

Definition at line 1896 of file view.qc.

1897{
1898 float speed, attenuation, dimensions;
1899 vector tmp;
1900
1902 {
1903 camera_offset = '0 0 0';
1904 current_angles = '0 0 0';
1905 camera_direction = '0 0 0';
1906 camera_offset.z += 30;
1907 camera_offset.x += 30 * -cos(current_angles.y * DEG2RAD);
1908 camera_offset.y += 30 * -sin(current_angles.y * DEG2RAD);
1911 cvar_set("camera_reset", "0");
1913 }
1914
1915 // Camera angles
1916 if( camera_roll )
1918
1920 {
1921 vector dir;
1922 float n;
1923
1925 n = mouse_angles.z;
1927 mouse_angles.x = mouse_angles.x * -1;
1928 mouse_angles.z = n;
1929 }
1930 else
1931 {
1932 tmp = getmousepos() * 0.1;
1934 {
1935 mouse_angles.x += tmp.y * cos(mouse_angles.z * DEG2RAD) + (tmp.x * sin(mouse_angles.z * DEG2RAD));
1936 mouse_angles.y -= tmp.x * cos(mouse_angles.z * DEG2RAD) + (tmp.y * -sin(mouse_angles.z * DEG2RAD));
1937 }
1938 }
1939
1942 else
1944
1945 attenuation = 1 / max(1, attenuation);
1946 current_angles += (mouse_angles - current_angles) * attenuation;
1947
1948 // limit current pitch angle to sane values
1949 if (current_angles.x < -90) current_angles.x = -90;
1950 if (current_angles.x > 90 ) current_angles.x = 90;
1951
1952 // limit mouse and current yaw angles to standard values simultaneously so that the difference
1953 // between these angles is not altered
1954 while (current_angles.y < -180 && mouse_angles.y < -180) {current_angles.y += 360; mouse_angles.y += 360;}
1955 while (current_angles.y > 180 && mouse_angles.y > 180 ) {current_angles.y -= 360; mouse_angles.y -= 360;}
1956
1957 // Camera position
1958 tmp = '0 0 0';
1959 dimensions = 0;
1960
1961 if( camera_direction.x )
1962 {
1963 tmp.x = camera_direction.x * cos(current_angles.y * DEG2RAD);
1964 tmp.y = camera_direction.x * sin(current_angles.y * DEG2RAD);
1966 tmp.z = camera_direction.x * -sin(current_angles.x * DEG2RAD);
1967 ++dimensions;
1968 }
1969
1970 if( camera_direction.y )
1971 {
1972 tmp.x += camera_direction.y * -sin(current_angles.y * DEG2RAD);
1974 tmp.z += camera_direction.y * sin(current_angles.z * DEG2RAD);
1975 ++dimensions;
1976 }
1977
1978 if( camera_direction.z )
1979 {
1980 tmp.z += camera_direction.z * cos(current_angles.z * DEG2RAD);
1981 ++dimensions;
1982 }
1983
1986 else
1988
1989 if(dimensions)
1990 {
1991 speed = speed * sqrt(1 / dimensions);
1992 camera_offset += tmp * speed;
1993 }
1994
1996
1997 // Camera modes
1999 {
2000 if ( camera_mode == CAMERA_CHASE )
2001 {
2004 }
2005
2008 }
2009 else
2010 {
2011 if ( camera_mode == CAMERA_FREE )
2012 {
2016 }
2017
2019
2021 current_origin += (view_origin - current_origin) * attenuation;
2022 else
2024
2026 }
2027
2028 setproperty(VF_ANGLES, current_angles);
2029 setproperty(VF_ORIGIN, current_position);
2030}
vector camera_direction
Definition main.qh:156
vector view_origin
Definition main.qh:109
float camera_roll
Definition main.qh:155
float DEG2RAD
const float VF_ORIGIN
const float VF_ANGLES
float speed
Definition dynlight.qc:9
void cvar_set(string name, string value)
float cos(float f)
vector vectoangles(vector v)
float sqrt(float f)
float sin(float f)
vector normalize(vector v)
vector getmousepos(void)
float max(float f,...)
int dir
Definition impulse.qc:89
#define vdist(v, cmp, f)
Vector distance comparison, avoids sqrt()
Definition vector.qh:8
vector current_position
Definition view.qc:1895
vector current_camera_offset
Definition view.qc:1895
vector mouse_angles
Definition view.qc:1895
const float CAMERA_CHASE
Definition view.qc:638
vector current_origin
Definition view.qc:1895
float camera_mode
Definition view.qc:636
vector current_angles
Definition view.qc:1895
vector camera_offset
Definition view.qc:1895
const float CAMERA_FREE
Definition view.qc:637
float autocvar_camera_mouse_threshold
Definition view.qh:11
float autocvar_camera_speed_free
Definition view.qh:15
float autocvar_camera_look_attenuation
Definition view.qh:9
bool autocvar_camera_chase_smoothly
Definition view.qh:5
bool autocvar_camera_forward_follows
Definition view.qh:7
float autocvar_camera_speed_chase
Definition view.qh:14
bool autocvar_camera_free
Definition view.qh:8
float autocvar_camera_look_player
Definition view.qh:10
float autocvar_camera_speed_roll
Definition view.qh:16
bool autocvar_camera_reset
Definition view.qh:12
float autocvar_camera_speed_attenuation
Definition view.qh:13

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().

◆ project_3d_to_2d()

vector project_3d_to_2d ( vector vec)

Definition at line 373 of file view.qc.

374{
375 vec = cs_project(vec);
376 return vec;
377}

References vector.

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

◆ update_mousepos()

void update_mousepos ( )

Definition at line 388 of file view.qc.

389{
393}
vector mousepos
Definition hud.qh:103
noref float vid_conwidth
Definition draw.qh:8
noref float vid_conheight
Definition draw.qh:9
float autocvar_menu_mouse_speed
Definition view.qh:69

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

Referenced by HUD_Mouse().

◆ View_InputEvent()

bool View_InputEvent ( int bInputType,
float nPrimary,
float nSecondary )

Definition at line 465 of file view.qc.

466{
467 if (bInputType == 2 || bInputType == 3)
468 return false;
469
470 // at this point bInputType can only be 0 or 1 (key pressed or released)
471 bool key_pressed = (bInputType == 0);
472
473 if (nPrimary == K_MWHEELUP || nPrimary == K_MWHEELDOWN)
474 {
476 return false; // zoom scroll disabled
477 if (!IsZooming(true))
478 return false;
479 if (key_pressed)
480 ZoomScroll(nPrimary);
481 return true;
482 }
483
484 return false;
485}
float K_MWHEELDOWN
Definition keycodes.qc:133
float K_MWHEELUP
Definition keycodes.qc:132
void ZoomScroll(float nPrimary)
Definition view.qc:450
bool IsZooming(bool ignore_spectatorbutton_zoom)
Definition view.qc:424
bool autocvar_cl_zoomscroll
Definition view.qh:35
float autocvar_cl_zoomscroll_scale
Definition view.qh:36

References autocvar_cl_zoomscroll, autocvar_cl_zoomscroll_scale, IsZooming(), K_MWHEELDOWN, K_MWHEELUP, and ZoomScroll().

Referenced by CSQC_InputEvent().

Variable Documentation

◆ autocvar__togglezoom

string autocvar__togglezoom

Definition at line 95 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 88 of file view.qh.

Referenced by CSQCPlayer_ApplyDeathTilt(), and WantEventchase().

◆ autocvar_cl_eventchase_distance

float autocvar_cl_eventchase_distance = 140

Definition at line 89 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_frozen

bool autocvar_cl_eventchase_frozen = false

Definition at line 90 of file view.qh.

Referenced by MUTATOR_HOOKFUNCTION(), and WantEventchase().

◆ autocvar_cl_eventchase_maxs

vector autocvar_cl_eventchase_maxs = '12 12 8'

Definition at line 92 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_mins

vector autocvar_cl_eventchase_mins = '-12 -12 -8'

Definition at line 93 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_spectated_change

bool autocvar_cl_eventchase_spectated_change = false

Definition at line 86 of file view.qh.

Referenced by WantEventchase().

◆ autocvar_cl_eventchase_spectated_change_time

float autocvar_cl_eventchase_spectated_change_time = 1

Definition at line 87 of file view.qh.

Referenced by WantEventchase().

◆ autocvar_cl_eventchase_speed

float autocvar_cl_eventchase_speed = 1.3

Definition at line 91 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_vehicle

bool autocvar_cl_eventchase_vehicle = 1

Definition at line 78 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_vehicle_distance

float autocvar_cl_eventchase_vehicle_distance = 250

Definition at line 80 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 79 of file view.qh.

Referenced by View_EventChase().

◆ autocvar_cl_eventchase_viewoffset

vector autocvar_cl_eventchase_viewoffset = '0 0 20'

Definition at line 94 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 DamageEffect(), and HUD_Damage().

◆ autocvar_cl_gunoffset

vector autocvar_cl_gunoffset

Definition at line 98 of file view.qh.

Referenced by NET_HANDLE(), and viewmodel_draw().

◆ autocvar_cl_hitsound

int autocvar_cl_hitsound

Definition at line 81 of file view.qh.

Referenced by HitSound().

◆ autocvar_cl_hitsound_antispam_time

float autocvar_cl_hitsound_antispam_time

Definition at line 85 of file view.qh.

Referenced by HitSound().

◆ autocvar_cl_hitsound_max_pitch

float autocvar_cl_hitsound_max_pitch = 1.5

Definition at line 83 of file view.qh.

Referenced by HitSound().

◆ autocvar_cl_hitsound_min_pitch

float autocvar_cl_hitsound_min_pitch = 0.75

Definition at line 82 of file view.qh.

Referenced by HitSound().

◆ autocvar_cl_hitsound_nom_damage

float autocvar_cl_hitsound_nom_damage = 25

Definition at line 84 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(), Draw_ArcBeam(), GetCurrentFov(), HUD_Crosshair(), NET_HANDLE(), and View_Lock().

◆ autocvar_cl_nade_timer

int autocvar_cl_nade_timer

Definition at line 96 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_zoomscroll

bool autocvar_cl_zoomscroll = 1

Definition at line 35 of file view.qh.

Referenced by GetCurrentFov(), and View_InputEvent().

◆ autocvar_cl_zoomscroll_scale

float autocvar_cl_zoomscroll_scale = 0.2

Definition at line 36 of file view.qh.

Referenced by GetCurrentFov(), View_InputEvent(), and ZoomScroll().

◆ autocvar_cl_zoomscroll_speed

float autocvar_cl_zoomscroll_speed = 16

Definition at line 37 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 38 of file view.qh.

Referenced by View_CheckButtonStatus(), and View_UpdateFov().

◆ autocvar_hud_colorflash_alpha

float autocvar_hud_colorflash_alpha

Definition at line 39 of file view.qh.

Referenced by HUD_Draw(), and orb_draw2d().

◆ autocvar_hud_contents

bool autocvar_hud_contents

Definition at line 40 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_blur

float autocvar_hud_contents_blur

Definition at line 41 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_blur_alpha

float autocvar_hud_contents_blur_alpha

Definition at line 42 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_fadeintime

float autocvar_hud_contents_fadeintime

Definition at line 43 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_fadeouttime

float autocvar_hud_contents_fadeouttime

Definition at line 44 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_lava_alpha

float autocvar_hud_contents_lava_alpha

Definition at line 45 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_lava_color

string autocvar_hud_contents_lava_color

Definition at line 46 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_slime_alpha

float autocvar_hud_contents_slime_alpha

Definition at line 47 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_slime_color

string autocvar_hud_contents_slime_color

Definition at line 48 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_water_alpha

float autocvar_hud_contents_water_alpha

Definition at line 49 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_contents_water_color

string autocvar_hud_contents_water_color

Definition at line 50 of file view.qh.

Referenced by HUD_Contents().

◆ autocvar_hud_damage

bool autocvar_hud_damage

Definition at line 51 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_blur

float autocvar_hud_damage_blur

Definition at line 52 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_blur_alpha

float autocvar_hud_damage_blur_alpha

Definition at line 53 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_color

string autocvar_hud_damage_color

Definition at line 54 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_factor

float autocvar_hud_damage_factor

Definition at line 55 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_fade_rate

float autocvar_hud_damage_fade_rate

Definition at line 56 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_gentle_alpha_multiplier

float autocvar_hud_damage_gentle_alpha_multiplier

Definition at line 57 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_gentle_color

string autocvar_hud_damage_gentle_color

Definition at line 58 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_maxalpha

float autocvar_hud_damage_maxalpha

Definition at line 59 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_pain_threshold

float autocvar_hud_damage_pain_threshold

Definition at line 60 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_damage_pain_threshold_lower

float autocvar_hud_damage_pain_threshold_lower

Definition at line 61 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 62 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 63 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 64 of file view.qh.

Referenced by HUD_Damage().

◆ autocvar_hud_postprocessing

bool autocvar_hud_postprocessing

Definition at line 66 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 67 of file view.qh.

Referenced by View_PostProcessing().

◆ autocvar_hud_postprocessing_maxblurradius

float autocvar_hud_postprocessing_maxblurradius

Definition at line 68 of file view.qh.

Referenced by View_PostProcessing().

◆ autocvar_hud_powerup

bool autocvar_hud_powerup

Definition at line 65 of file view.qh.

Referenced by View_PostProcessing().

◆ autocvar_menu_mouse_speed

float autocvar_menu_mouse_speed

Definition at line 69 of file view.qh.

Referenced by update_mousepos(), and ViewLocation_Mouse().

◆ autocvar_r_drawviewmodel

bool autocvar_r_drawviewmodel

Definition at line 97 of file view.qh.

Referenced by CSQC_UpdateView(), Draw_ArcBeam(), NET_HANDLE(), and Shutdown().

◆ autocvar_r_fakelight

int autocvar_r_fakelight

Definition at line 70 of file view.qh.

Referenced by View_NightVision().

◆ autocvar_r_fullbright

bool autocvar_r_fullbright

Definition at line 71 of file view.qh.

Referenced by View_NightVision().

◆ autocvar_r_letterbox

float autocvar_r_letterbox

Definition at line 72 of file view.qh.

Referenced by HUD_Draw().

◆ autocvar_v_flipped

bool autocvar_v_flipped

Definition at line 73 of file view.qh.

Referenced by HUD_StrafeHUD(), and teamradar_loadcvars().

◆ autocvar_vid_conheight

int autocvar_vid_conheight

Definition at line 74 of file view.qh.

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

◆ autocvar_vid_conwidth

int autocvar_vid_conwidth

Definition at line 75 of file view.qh.

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

◆ autocvar_vid_pixelheight

float autocvar_vid_pixelheight

Definition at line 76 of file view.qh.

Referenced by CSQC_UpdateView().

◆ autocvar_viewsize

float autocvar_viewsize

Definition at line 77 of file view.qh.

Referenced by HUD_Draw().

◆ cursor_active

int cursor_active

Definition at line 112 of file view.qh.

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

◆ CURSOR_MOVE

const int CURSOR_MOVE = 1

Definition at line 115 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 116 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 117 of file view.qh.

Referenced by HUD_Cursor_Show(), and HUD_Panel_Check_Mouse_Pos().

◆ cursor_type

int cursor_type

Definition at line 113 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 123 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 132 of file view.qh.

Referenced by CSQC_UpdateView(), and HUD_Timer().

◆ intermission_time

float intermission_time

Definition at line 131 of file view.qh.

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

◆ unaccounted_damage

float unaccounted_damage = 0

Definition at line 120 of file view.qh.

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

◆ viewloc_mousepos

vector viewloc_mousepos

◆ viewmodels

◆ zoomscript_caught

float zoomscript_caught

Definition at line 121 of file view.qh.

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