|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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 () |
| bool | View_InputEvent (int bInputType, float nPrimary, float nSecondary) |
Definition at line 113 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, entity(), highpass3, lowpass3, MAKE_VECTORS, time, vector, and view_angles.
Referenced by Hud_Dynamic_Frame(), and viewmodel_animate().
| void CSQC_Demo_Camera | ( | ) |
Definition at line 1896 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 373 of file view.qc.
References vector.
Referenced by AuxiliaryXhair_Draw2D(), DamageText::DamageText_draw2d(), DebugText3d::DebugText3d_draw2d(), Draw_ShowNames(), Draw_WaypointSprite(), EnemyHitCheck(), HUD_Crosshair(), NET_HANDLE(), and turret_draw2d().
| void update_mousepos | ( | ) |
Definition at line 388 of file view.qc.
References autocvar_menu_mouse_speed, bound(), getmousepos(), mousepos, vid_conheight, and vid_conwidth.
Referenced by HUD_Mouse().
Definition at line 465 of file view.qc.
References autocvar_cl_zoomscroll, autocvar_cl_zoomscroll_scale, IsZooming(), K_MWHEELDOWN, K_MWHEELUP, and ZoomScroll().
Referenced by CSQC_InputEvent().
| string autocvar__togglezoom |
Definition at line 95 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(), DamageEffect_Think(), Draw_ArcBeam(), Draw_GrapplingHook(), Draw_ShowNames(), DrawReticle(), HUD_Crosshair(), NET_HANDLE(), NET_HANDLE(), Porto_Draw(), Shutdown(), View_DemoCamera(), View_EventChase(), View_SpectatorCamera(), viewmodel_animate(), viewmodel_draw(), 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 88 of file view.qh.
Referenced by CSQCPlayer_ApplyDeathTilt(), and WantEventchase().
| float autocvar_cl_eventchase_distance = 140 |
Definition at line 89 of file view.qh.
Referenced by View_EventChase().
Definition at line 90 of file view.qh.
Referenced by MUTATOR_HOOKFUNCTION(), and WantEventchase().
| vector autocvar_cl_eventchase_maxs = '12 12 8' |
Definition at line 92 of file view.qh.
Referenced by View_EventChase().
| vector autocvar_cl_eventchase_mins = '-12 -12 -8' |
Definition at line 93 of file view.qh.
Referenced by View_EventChase().
Definition at line 86 of file view.qh.
Referenced by WantEventchase().
| float autocvar_cl_eventchase_spectated_change_time = 1 |
Definition at line 87 of file view.qh.
Referenced by WantEventchase().
| float autocvar_cl_eventchase_speed = 1.3 |
Definition at line 91 of file view.qh.
Referenced by View_EventChase().
| bool autocvar_cl_eventchase_vehicle = 1 |
Definition at line 78 of file view.qh.
Referenced by View_EventChase().
| float autocvar_cl_eventchase_vehicle_distance = 250 |
Definition at line 80 of file view.qh.
Referenced by View_EventChase().
| vector autocvar_cl_eventchase_vehicle_viewoffset = '0 0 80' |
Definition at line 79 of file view.qh.
Referenced by View_EventChase().
| vector autocvar_cl_eventchase_viewoffset = '0 0 20' |
Definition at line 94 of file view.qh.
Referenced by View_EventChase().
| int autocvar_cl_gentle_damage |
Definition at line 19 of file view.qh.
Referenced by DamageEffect(), and HUD_Damage().
| vector autocvar_cl_gunoffset |
Definition at line 98 of file view.qh.
Referenced by NET_HANDLE(), and viewmodel_draw().
| int autocvar_cl_hitsound |
Definition at line 81 of file view.qh.
Referenced by HitSound().
| float autocvar_cl_hitsound_antispam_time |
Definition at line 85 of file view.qh.
Referenced by HitSound().
| float autocvar_cl_hitsound_max_pitch = 1.5 |
Definition at line 83 of file view.qh.
Referenced by HitSound().
| float autocvar_cl_hitsound_min_pitch = 0.75 |
Definition at line 82 of file view.qh.
Referenced by HitSound().
| float autocvar_cl_hitsound_nom_damage = 25 |
Definition at line 84 of file view.qh.
Referenced by HitSound().
| 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().
| int autocvar_cl_nade_timer |
Definition at line 96 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().
| bool autocvar_cl_zoomscroll = 1 |
Definition at line 35 of file view.qh.
Referenced by GetCurrentFov(), and View_InputEvent().
| float autocvar_cl_zoomscroll_scale = 0.2 |
Definition at line 36 of file view.qh.
Referenced by GetCurrentFov(), View_InputEvent(), and ZoomScroll().
| float autocvar_cl_zoomscroll_speed = 16 |
Definition at line 37 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 38 of file view.qh.
Referenced by View_CheckButtonStatus(), and View_UpdateFov().
| float autocvar_hud_colorflash_alpha |
Definition at line 39 of file view.qh.
Referenced by HUD_Draw(), and orb_draw2d().
| bool autocvar_hud_contents |
Definition at line 40 of file view.qh.
Referenced by HUD_Contents().
| float autocvar_hud_contents_blur |
Definition at line 41 of file view.qh.
Referenced by HUD_Contents().
| float autocvar_hud_contents_blur_alpha |
Definition at line 42 of file view.qh.
Referenced by HUD_Contents().
| float autocvar_hud_contents_fadeintime |
Definition at line 43 of file view.qh.
Referenced by HUD_Contents().
| float autocvar_hud_contents_fadeouttime |
Definition at line 44 of file view.qh.
Referenced by HUD_Contents().
| float autocvar_hud_contents_lava_alpha |
Definition at line 45 of file view.qh.
Referenced by HUD_Contents().
| string autocvar_hud_contents_lava_color |
Definition at line 46 of file view.qh.
Referenced by HUD_Contents().
| float autocvar_hud_contents_slime_alpha |
Definition at line 47 of file view.qh.
Referenced by HUD_Contents().
| string autocvar_hud_contents_slime_color |
Definition at line 48 of file view.qh.
Referenced by HUD_Contents().
| float autocvar_hud_contents_water_alpha |
Definition at line 49 of file view.qh.
Referenced by HUD_Contents().
| string autocvar_hud_contents_water_color |
Definition at line 50 of file view.qh.
Referenced by HUD_Contents().
| bool autocvar_hud_damage |
Definition at line 51 of file view.qh.
Referenced by HUD_Damage().
| float autocvar_hud_damage_blur |
Definition at line 52 of file view.qh.
Referenced by HUD_Damage().
| float autocvar_hud_damage_blur_alpha |
Definition at line 53 of file view.qh.
Referenced by HUD_Damage().
| string autocvar_hud_damage_color |
Definition at line 54 of file view.qh.
Referenced by HUD_Damage().
| float autocvar_hud_damage_factor |
Definition at line 55 of file view.qh.
Referenced by HUD_Damage().
| float autocvar_hud_damage_fade_rate |
Definition at line 56 of file view.qh.
Referenced by HUD_Damage().
| float autocvar_hud_damage_gentle_alpha_multiplier |
Definition at line 57 of file view.qh.
Referenced by HUD_Damage().
| string autocvar_hud_damage_gentle_color |
Definition at line 58 of file view.qh.
Referenced by HUD_Damage().
| float autocvar_hud_damage_maxalpha |
Definition at line 59 of file view.qh.
Referenced by HUD_Damage().
| float autocvar_hud_damage_pain_threshold |
Definition at line 60 of file view.qh.
Referenced by HUD_Damage().
| float autocvar_hud_damage_pain_threshold_lower |
Definition at line 61 of file view.qh.
Referenced by HUD_Damage().
| float autocvar_hud_damage_pain_threshold_lower_health |
Definition at line 62 of file view.qh.
Referenced by HUD_Damage().
| float autocvar_hud_damage_pain_threshold_pulsating_min |
Definition at line 63 of file view.qh.
Referenced by HUD_Damage().
| float autocvar_hud_damage_pain_threshold_pulsating_period |
Definition at line 64 of file view.qh.
Referenced by HUD_Damage().
| bool autocvar_hud_postprocessing |
Definition at line 66 of file view.qh.
Referenced by HUD_Contents(), HUD_Damage(), and View_PostProcessing().
| float autocvar_hud_postprocessing_maxbluralpha |
Definition at line 67 of file view.qh.
Referenced by View_PostProcessing().
| float autocvar_hud_postprocessing_maxblurradius |
Definition at line 68 of file view.qh.
Referenced by View_PostProcessing().
| bool autocvar_hud_powerup |
Definition at line 65 of file view.qh.
Referenced by View_PostProcessing().
| float autocvar_menu_mouse_speed |
Definition at line 69 of file view.qh.
Referenced by update_mousepos(), and ViewLocation_Mouse().
| bool autocvar_r_drawviewmodel |
Definition at line 97 of file view.qh.
Referenced by CSQC_UpdateView(), Draw_ArcBeam(), NET_HANDLE(), and Shutdown().
| int autocvar_r_fakelight |
Definition at line 70 of file view.qh.
Referenced by View_NightVision().
| bool autocvar_r_fullbright |
Definition at line 71 of file view.qh.
Referenced by View_NightVision().
| float autocvar_r_letterbox |
Definition at line 72 of file view.qh.
Referenced by HUD_Draw().
| bool autocvar_v_flipped |
Definition at line 73 of file view.qh.
Referenced by HUD_StrafeHUD(), and teamradar_loadcvars().
| int autocvar_vid_conheight |
Definition at line 74 of file view.qh.
Referenced by CSQC_UpdateView(), STATIC_INIT_LATE(), and View_NightVision().
| int autocvar_vid_conwidth |
Definition at line 75 of file view.qh.
Referenced by CSQC_UpdateView(), STATIC_INIT_LATE(), and View_NightVision().
| float autocvar_vid_pixelheight |
Definition at line 76 of file view.qh.
Referenced by CSQC_UpdateView().
| float autocvar_viewsize |
Definition at line 77 of file view.qh.
Referenced by HUD_Draw().
| int cursor_active |
Definition at line 112 of file view.qh.
Referenced by HUD_Main(), HUD_Mouse(), and PM_UpdateButtons().
| const int CURSOR_MOVE = 1 |
Definition at line 115 of file view.qh.
Referenced by HUD_Cursor_Show(), and HUD_Panel_Check_Mouse_Pos().
| const int CURSOR_NORMAL = 0 |
Definition at line 114 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 116 of file view.qh.
Referenced by HUD_Cursor_Show(), and HUD_Panel_Check_Mouse_Pos().
| const int CURSOR_RESIZE2 = 3 |
Definition at line 117 of file view.qh.
Referenced by HUD_Cursor_Show(), and HUD_Panel_Check_Mouse_Pos().
| 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().
| float dmg_take |
Definition at line 123 of file view.qh.
Referenced by bot_think(), HUD_Damage(), PlayerCorpseDamage(), PlayerDamage(), and SpectateCopy().
| float drawtime |
Definition at line 119 of file view.qh.
Referenced by CSQC_UpdateView(), CSQCModel_ApplyStairSmoothing(), CSQCPlayer_ApplySmoothing(), and CSQCPlayer_SetCamera().
| float game_stopped_time |
Definition at line 132 of file view.qh.
Referenced by CSQC_UpdateView(), and HUD_Timer().
| float intermission_time |
Definition at line 131 of file view.qh.
Referenced by CSQC_UpdateView(), HUD_Notify(), HUD_QuickMenu_Forbidden(), and HUD_Timer().
| float unaccounted_damage = 0 |
Definition at line 120 of file view.qh.
Referenced by HitSound(), HUD_Crosshair(), and UpdateDamage().
| vector viewloc_mousepos |
Definition at line 110 of file view.qh.
Referenced by HUD_Crosshair(), STATIC_INIT_LATE(), viewloc_SetViewLocation(), and ViewLocation_Mouse().
| entity viewmodels[MAX_WEAPONSLOTS] |
Definition at line 108 of file view.qh.
Referenced by CSQC_UpdateView(), Draw_ArcBeam(), Draw_GrapplingHook(), DrawReticle(), HitSound(), HUD_Ammo(), HUD_Crosshair(), HUD_Weapons(), IsZooming(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), PM_ClientMovement_UpdateStatus(), Porto_Draw(), ReadWepent(), Remove_GrapplingHook(), STATIC_INIT(), and View_CheckButtonStatus().
| float zoomscript_caught |
Definition at line 121 of file view.qh.
Referenced by DrawReticle(), TrueAimCheck(), and View_CheckButtonStatus().