Xonotic
|
#include <common/weapons/weapon.qh>
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 () |
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().
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().
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().
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().
string autocvar__togglezoom |
Definition at line 92 of file view.qh.
Referenced by View_CheckButtonStatus().
bool autocvar_camera_chase_smoothly |
Definition at line 5 of file view.qh.
Referenced by CSQC_Demo_Camera().
bool autocvar_camera_enable |
Definition at line 6 of file view.qh.
Referenced by View_DemoCamera().
bool autocvar_camera_forward_follows |
Definition at line 7 of file view.qh.
Referenced by CSQC_Demo_Camera().
bool autocvar_camera_free |
Definition at line 8 of file view.qh.
Referenced by CSQC_Demo_Camera().
float autocvar_camera_look_attenuation |
Definition at line 9 of file view.qh.
Referenced by CSQC_Demo_Camera().
float autocvar_camera_look_player |
Definition at line 10 of file view.qh.
Referenced by CSQC_Demo_Camera().
float autocvar_camera_mouse_threshold |
Definition at line 11 of file view.qh.
Referenced by CSQC_Demo_Camera().
bool autocvar_camera_reset |
Definition at line 12 of file view.qh.
Referenced by CSQC_Demo_Camera().
float autocvar_camera_speed_attenuation |
Definition at line 13 of file view.qh.
Referenced by CSQC_Demo_Camera().
float autocvar_camera_speed_chase |
Definition at line 14 of file view.qh.
Referenced by CSQC_Demo_Camera().
float autocvar_camera_speed_free |
Definition at line 15 of file view.qh.
Referenced by CSQC_Demo_Camera().
float autocvar_camera_speed_roll |
Definition at line 16 of file view.qh.
Referenced by CSQC_Demo_Camera().
int autocvar_chase_active |
Definition at line 17 of file view.qh.
Referenced by CSQC_UpdateView(), CSQCPlayer_CalcRefdef(), Draw_ShowNames(), HUD_Crosshair(), Shutdown(), View_DemoCamera(), View_EventChase(), viewmodel_animate(), viewmodel_draw(), W_Model(), and WarpZone_View_Inside().
bool autocvar_chase_front |
Definition at line 18 of file view.qh.
Referenced by CSQCPlayer_ApplyChase(), and HUD_Crosshair().
int autocvar_cl_eventchase_death = 2 |
Definition at line 85 of file view.qh.
Referenced by WantEventchase().
float autocvar_cl_eventchase_distance = 140 |
Definition at line 86 of file view.qh.
Referenced by View_EventChase().
Definition at line 87 of file view.qh.
Referenced by WantEventchase().
vector autocvar_cl_eventchase_maxs = '12 12 8' |
Definition at line 89 of file view.qh.
Referenced by View_EventChase().
vector autocvar_cl_eventchase_mins = '-12 -12 -8' |
Definition at line 90 of file view.qh.
Referenced by View_EventChase().
Definition at line 83 of file view.qh.
Referenced by WantEventchase().
float autocvar_cl_eventchase_spectated_change_time = 1 |
Definition at line 84 of file view.qh.
Referenced by WantEventchase().
float autocvar_cl_eventchase_speed = 1.3 |
Definition at line 88 of file view.qh.
Referenced by View_EventChase().
bool autocvar_cl_eventchase_vehicle = 1 |
Definition at line 75 of file view.qh.
Referenced by View_EventChase().
float autocvar_cl_eventchase_vehicle_distance = 250 |
Definition at line 77 of file view.qh.
Referenced by View_EventChase().
vector autocvar_cl_eventchase_vehicle_viewoffset = '0 0 80' |
Definition at line 76 of file view.qh.
Referenced by View_EventChase().
vector autocvar_cl_eventchase_viewoffset = '0 0 20' |
Definition at line 91 of file view.qh.
Referenced by View_EventChase().
int autocvar_cl_gentle_damage |
Definition at line 19 of file view.qh.
Referenced by HUD_Damage().
int autocvar_cl_hitsound |
Definition at line 78 of file view.qh.
Referenced by HitSound().
float autocvar_cl_hitsound_antispam_time |
Definition at line 82 of file view.qh.
Referenced by HitSound().
float autocvar_cl_hitsound_max_pitch = 1.5 |
Definition at line 80 of file view.qh.
Referenced by HitSound().
float autocvar_cl_hitsound_min_pitch = 0.75 |
Definition at line 79 of file view.qh.
Referenced by HitSound().
float autocvar_cl_hitsound_nom_damage = 25 |
Definition at line 81 of file view.qh.
Referenced by HitSound().
bool autocvar_cl_lockview |
Definition at line 20 of file view.qh.
Referenced by CSQC_Init(), GetCurrentFov(), HUD_Crosshair(), NET_HANDLE(), and View_Lock().
int autocvar_cl_nade_timer |
Definition at line 93 of file view.qh.
Referenced by HUD_Draw().
bool autocvar_cl_orthoview |
Definition at line 21 of file view.qh.
Referenced by Fog_Force(), View_Ortho(), View_UpdateFov(), and WantEventchase().
bool autocvar_cl_orthoview_nofog |
Definition at line 22 of file view.qh.
Referenced by Fog_Force().
bool autocvar_cl_spawnzoom = 1 |
Definition at line 23 of file view.qh.
Referenced by GetCurrentFov(), and NET_HANDLE().
float autocvar_cl_spawnzoom_factor = 2 |
Definition at line 25 of file view.qh.
Referenced by GetCurrentFov(), and NET_HANDLE().
float autocvar_cl_spawnzoom_speed = 1 |
Definition at line 24 of file view.qh.
Referenced by GetCurrentFov().
bool autocvar_cl_stripcolorcodes |
Definition at line 26 of file view.qh.
Referenced by CSQC_UpdateView().
bool autocvar_cl_velocityzoom_enabled |
Definition at line 27 of file view.qh.
Referenced by GetCurrentFov().
float autocvar_cl_velocityzoom_factor |
Definition at line 28 of file view.qh.
Referenced by GetCurrentFov().
float autocvar_cl_velocityzoom_speed |
Definition at line 30 of file view.qh.
Referenced by GetCurrentFov().
float autocvar_cl_velocityzoom_time |
Definition at line 31 of file view.qh.
Referenced by GetCurrentFov().
int autocvar_cl_velocityzoom_type = 3 |
Definition at line 29 of file view.qh.
Referenced by GetCurrentFov().
float autocvar_cl_zoomfactor |
Definition at line 32 of file view.qh.
Referenced by GetCurrentFov().
float autocvar_cl_zoomsensitivity |
Definition at line 33 of file view.qh.
Referenced by GetCurrentFov().
float autocvar_cl_zoomspeed |
Definition at line 34 of file view.qh.
Referenced by GetCurrentFov().
float autocvar_fov |
Definition at line 35 of file view.qh.
Referenced by View_CheckButtonStatus(), and View_UpdateFov().
float autocvar_hud_colorflash_alpha |
Definition at line 36 of file view.qh.
Referenced by HUD_Draw().
bool autocvar_hud_contents |
Definition at line 37 of file view.qh.
Referenced by HUD_Contents().
float autocvar_hud_contents_blur |
Definition at line 38 of file view.qh.
Referenced by HUD_Contents().
float autocvar_hud_contents_blur_alpha |
Definition at line 39 of file view.qh.
Referenced by HUD_Contents().
float autocvar_hud_contents_fadeintime |
Definition at line 40 of file view.qh.
Referenced by HUD_Contents().
float autocvar_hud_contents_fadeouttime |
Definition at line 41 of file view.qh.
Referenced by HUD_Contents().
float autocvar_hud_contents_lava_alpha |
Definition at line 42 of file view.qh.
Referenced by HUD_Contents().
string autocvar_hud_contents_lava_color |
Definition at line 43 of file view.qh.
Referenced by HUD_Contents().
float autocvar_hud_contents_slime_alpha |
Definition at line 44 of file view.qh.
Referenced by HUD_Contents().
string autocvar_hud_contents_slime_color |
Definition at line 45 of file view.qh.
Referenced by HUD_Contents().
float autocvar_hud_contents_water_alpha |
Definition at line 46 of file view.qh.
Referenced by HUD_Contents().
string autocvar_hud_contents_water_color |
Definition at line 47 of file view.qh.
Referenced by HUD_Contents().
bool autocvar_hud_damage |
Definition at line 48 of file view.qh.
Referenced by HUD_Damage().
float autocvar_hud_damage_blur |
Definition at line 49 of file view.qh.
Referenced by HUD_Damage().
float autocvar_hud_damage_blur_alpha |
Definition at line 50 of file view.qh.
Referenced by HUD_Damage().
string autocvar_hud_damage_color |
Definition at line 51 of file view.qh.
Referenced by HUD_Damage().
float autocvar_hud_damage_factor |
Definition at line 52 of file view.qh.
Referenced by HUD_Damage().
float autocvar_hud_damage_fade_rate |
Definition at line 53 of file view.qh.
Referenced by HUD_Damage().
float autocvar_hud_damage_gentle_alpha_multiplier |
Definition at line 54 of file view.qh.
Referenced by HUD_Damage().
string autocvar_hud_damage_gentle_color |
Definition at line 55 of file view.qh.
Referenced by HUD_Damage().
float autocvar_hud_damage_maxalpha |
Definition at line 56 of file view.qh.
Referenced by HUD_Damage().
float autocvar_hud_damage_pain_threshold |
Definition at line 57 of file view.qh.
Referenced by HUD_Damage().
float autocvar_hud_damage_pain_threshold_lower |
Definition at line 58 of file view.qh.
Referenced by HUD_Damage().
float autocvar_hud_damage_pain_threshold_lower_health |
Definition at line 59 of file view.qh.
Referenced by HUD_Damage().
float autocvar_hud_damage_pain_threshold_pulsating_min |
Definition at line 60 of file view.qh.
Referenced by HUD_Damage().
float autocvar_hud_damage_pain_threshold_pulsating_period |
Definition at line 61 of file view.qh.
Referenced by HUD_Damage().
bool autocvar_hud_postprocessing |
Definition at line 63 of file view.qh.
Referenced by HUD_Contents(), HUD_Damage(), and View_PostProcessing().
float autocvar_hud_postprocessing_maxbluralpha |
Definition at line 64 of file view.qh.
Referenced by View_PostProcessing().
float autocvar_hud_postprocessing_maxblurradius |
Definition at line 65 of file view.qh.
Referenced by View_PostProcessing().
bool autocvar_hud_powerup |
Definition at line 62 of file view.qh.
Referenced by View_PostProcessing().
float autocvar_menu_mouse_speed |
Definition at line 66 of file view.qh.
Referenced by update_mousepos(), and ViewLocation_Mouse().
bool autocvar_r_drawviewmodel |
Definition at line 94 of file view.qh.
Referenced by CSQC_UpdateView(), Shutdown(), viewmodel_draw(), and W_Model().
int autocvar_r_fakelight |
Definition at line 67 of file view.qh.
Referenced by View_NightVision().
bool autocvar_r_fullbright |
Definition at line 68 of file view.qh.
Referenced by View_NightVision().
bool autocvar_v_flipped |
Definition at line 70 of file view.qh.
Referenced by HUD_StrafeHUD(), and teamradar_loadcvars().
int autocvar_vid_conheight |
Definition at line 71 of file view.qh.
Referenced by CSQC_UpdateView(), View_NightVision(), and viewloc_PlayerPhysics().
int autocvar_vid_conwidth |
Definition at line 72 of file view.qh.
Referenced by CSQC_UpdateView(), View_NightVision(), and viewloc_PlayerPhysics().
float autocvar_vid_pixelheight |
Definition at line 73 of file view.qh.
Referenced by CSQC_UpdateView().
int cursor_active |
Definition at line 108 of file view.qh.
Referenced by HUD_Main(), HUD_Mouse(), and PM_UpdateButtons().
const int CURSOR_MOVE = 1 |
Definition at line 111 of file view.qh.
Referenced by HUD_Cursor_Show(), and HUD_Panel_Check_Mouse_Pos().
const int CURSOR_NORMAL = 0 |
Definition at line 110 of file view.qh.
Referenced by HUD_Configure_Exit_Force(), HUD_Cursor_Show(), HUD_Mouse(), HUD_Panel_Check_Mouse_Pos(), and HUD_Panel_Mouse().
const int CURSOR_RESIZE = 2 |
Definition at line 112 of file view.qh.
Referenced by HUD_Cursor_Show(), and HUD_Panel_Check_Mouse_Pos().
const int CURSOR_RESIZE2 = 3 |
Definition at line 113 of file view.qh.
Referenced by HUD_Cursor_Show(), and HUD_Panel_Check_Mouse_Pos().
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().
float dmg_take |
Definition at line 119 of file view.qh.
Referenced by bot_think(), HUD_Damage(), PlayerCorpseDamage(), PlayerDamage(), and SpectateCopy().
float drawtime |
Definition at line 115 of file view.qh.
Referenced by CSQC_UpdateView(), CSQCModel_ApplyStairSmoothing(), CSQCPlayer_ApplySmoothing(), and CSQCPlayer_SetCamera().
float game_stopped_time |
Definition at line 128 of file view.qh.
Referenced by CSQC_UpdateView(), and HUD_Timer().
float intermission_time |
Definition at line 127 of file view.qh.
Referenced by CSQC_UpdateView(), HUD_Notify(), and HUD_Timer().
float unaccounted_damage = 0 |
Definition at line 116 of file view.qh.
Referenced by HitSound(), HUD_Crosshair(), and UpdateDamage().
vector viewloc_mousepos |
Definition at line 106 of file view.qh.
Referenced by HUD_Crosshair(), viewloc_PlayerPhysics(), and ViewLocation_Mouse().
entity viewmodels[MAX_WEAPONSLOTS] |
Definition at line 104 of file view.qh.
Referenced by CSQC_UpdateView(), DrawReticle(), GetCurrentFov(), HitSound(), HUD_Ammo(), HUD_Crosshair(), HUD_Weapons(), PM_ClientMovement_UpdateStatus(), STATIC_INIT(), View_CheckButtonStatus(), and W_Model().
float zoomscript_caught |
Definition at line 117 of file view.qh.
Referenced by DrawReticle(), TrueAimCheck(), and View_CheckButtonStatus().