]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/view.qh
Purge autocvars.qh from the client-side codebase, cvars are defined in the headers...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / view.qh
1 #pragma once
2
3 #include <common/weapons/weapon.qh>
4
5 bool autocvar_camera_chase_smoothly;
6 bool autocvar_camera_enable;
7 bool autocvar_camera_forward_follows;
8 bool autocvar_camera_free;
9 float autocvar_camera_look_attenuation;
10 float autocvar_camera_look_player;
11 float autocvar_camera_mouse_threshold;
12 bool autocvar_camera_reset;
13 float autocvar_camera_speed_attenuation;
14 float autocvar_camera_speed_chase;
15 float autocvar_camera_speed_free;
16 float autocvar_camera_speed_roll;
17 int autocvar_chase_active;
18 int autocvar_cl_gentle_damage;
19 bool autocvar_cl_lockview;
20 bool autocvar_cl_orthoview;
21 bool autocvar_cl_orthoview_nofog;
22 bool autocvar_cl_spawnzoom = 1;
23 float autocvar_cl_spawnzoom_speed = 1;
24 float autocvar_cl_spawnzoom_factor = 2;
25 bool autocvar_cl_stripcolorcodes;
26 bool autocvar_cl_velocityzoom_enabled;
27 float autocvar_cl_velocityzoom_factor;
28 int autocvar_cl_velocityzoom_type = 3;
29 float autocvar_cl_velocityzoom_speed;
30 float autocvar_cl_velocityzoom_time;
31 float autocvar_cl_zoomfactor;
32 float autocvar_cl_zoomsensitivity;
33 float autocvar_cl_zoomspeed;
34 float autocvar_fov;
35 float autocvar_hud_colorflash_alpha;
36 bool autocvar_hud_contents;
37 float autocvar_hud_contents_blur;
38 float autocvar_hud_contents_blur_alpha;
39 float autocvar_hud_contents_fadeintime;
40 float autocvar_hud_contents_fadeouttime;
41 float autocvar_hud_contents_lava_alpha;
42 string autocvar_hud_contents_lava_color;
43 float autocvar_hud_contents_slime_alpha;
44 string autocvar_hud_contents_slime_color;
45 float autocvar_hud_contents_water_alpha;
46 string autocvar_hud_contents_water_color;
47 bool autocvar_hud_damage;
48 float autocvar_hud_damage_blur;
49 float autocvar_hud_damage_blur_alpha;
50 string autocvar_hud_damage_color;
51 float autocvar_hud_damage_factor;
52 float autocvar_hud_damage_fade_rate;
53 float autocvar_hud_damage_gentle_alpha_multiplier;
54 string autocvar_hud_damage_gentle_color;
55 float autocvar_hud_damage_maxalpha;
56 float autocvar_hud_damage_pain_threshold;
57 float autocvar_hud_damage_pain_threshold_lower;
58 float autocvar_hud_damage_pain_threshold_lower_health;
59 float autocvar_hud_damage_pain_threshold_pulsating_min;
60 float autocvar_hud_damage_pain_threshold_pulsating_period;
61 bool autocvar_hud_powerup;
62 bool autocvar_hud_postprocessing;
63 float autocvar_hud_postprocessing_maxbluralpha;
64 float autocvar_hud_postprocessing_maxblurradius;
65 float autocvar_menu_mouse_speed;
66 int autocvar_r_fakelight;
67 bool autocvar_r_fullbright;
68 float autocvar_r_letterbox;
69 bool autocvar_v_flipped;
70 int autocvar_vid_conheight;
71 int autocvar_vid_conwidth;
72 float autocvar_vid_pixelheight;
73 float autocvar_viewsize;
74 bool autocvar_cl_eventchase_vehicle = 1;
75 vector autocvar_cl_eventchase_vehicle_viewoffset = '0 0 80';
76 float autocvar_cl_eventchase_vehicle_distance = 250;
77 int autocvar_cl_hitsound;
78 float autocvar_cl_hitsound_min_pitch = 0.75;
79 float autocvar_cl_hitsound_max_pitch = 1.5;
80 float autocvar_cl_hitsound_nom_damage = 25;
81 float autocvar_cl_hitsound_antispam_time;
82 bool autocvar_cl_eventchase_spectated_change = false;
83 float autocvar_cl_eventchase_spectated_change_time = 1;
84 int autocvar_cl_eventchase_death = 2;
85 float autocvar_cl_eventchase_distance = 140;
86 bool autocvar_cl_eventchase_frozen = false;
87 float autocvar_cl_eventchase_speed = 1.3;
88 vector autocvar_cl_eventchase_maxs = '12 12 8';
89 vector autocvar_cl_eventchase_mins = '-12 -12 -8';
90 vector autocvar_cl_eventchase_viewoffset = '0 0 20';
91 string autocvar__togglezoom;
92 int autocvar_cl_nade_timer;
93 bool autocvar_r_drawviewmodel;
94
95 void calc_followmodel_ofs(entity view);
96
97 vector project_3d_to_2d(vector vec);
98
99 void update_mousepos();
100
101 void CSQC_Demo_Camera();
102
103 entity viewmodels[MAX_WEAPONSLOTS];
104
105 vector viewloc_mousepos;
106
107 int cursor_active;
108 int cursor_type;
109 const int CURSOR_NORMAL = 0;
110 const int CURSOR_MOVE = 1;
111 const int CURSOR_RESIZE = 2;
112 const int CURSOR_RESIZE2 = 3;
113
114 float drawtime;
115 float unaccounted_damage = 0;
116 float zoomscript_caught;
117
118 float dmg_take;
119 // float dmg_save;
120 // vector dmg_origin;
121
122 #ifdef BLURTEST
123 float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
124 #endif
125
126 float intermission_time;