![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Functions | |
void | V_CalcRefdef (void) |
void | V_CalcRefdefUsing (const matrix4x4_t *entrendermatrix, const vec3_t clviewangles, qbool teleported, qbool clonground, qbool clcmdjump, float clstatsviewheight, qbool cldead, const vec3_t clvelocity) |
void | V_CalcViewBlend (void) |
void | V_DriftPitch (void) |
void | V_FadeViewFlashs (void) |
void | V_Init (void) |
void | V_MakeViewIsometric (void) |
void | V_ParseDamage (void) |
void | V_StartPitchDrift (void) |
void | V_StartPitchDrift_f (struct cmd_state_s *cmd) |
void | V_StopPitchDrift (void) |
void | V_UpdateBlends (void) |
Definition at line 944 of file view.c.
References ca_connected, cl, cls, client_state_t::cmd, client_state_t::csqc_server2csqcentitynumber, client_state_t::csqc_viewanglesfromengine, client_state_t::csqc_viewmodelmatrixfromengine, client_state_t::csqc_vieworiginfromengine, client_state_t::entities, identitymatrix, usercmd_t::jump, entity_render_t::matrix, r_refdef_view_t::matrix, client_state_t::onground, entity_t::persistent, r_refdef, entity_t::render, client_static_t::signon, SIGNONS, STAT_HEALTH, STAT_VIEWHEIGHT, client_static_t::state, client_state_t::stats, entity_persistent_t::trail_allowed, V_CalcRefdefUsing(), VectorClear, VectorCopy, client_state_t::velocity, r_refdef_t::view, client_state_t::viewangles, client_state_t::viewentity, viewmodelmatrix_nobob, and viewmodelmatrix_withbob.
Referenced by CL_UpdateWorld().
void V_CalcRefdefUsing | ( | const matrix4x4_t * | entrendermatrix, |
const vec3_t | clviewangles, | ||
qbool | teleported, | ||
qbool | clonground, | ||
qbool | clcmdjump, | ||
float | clstatsviewheight, | ||
qbool | cldead, | ||
const vec3_t | clvelocity ) |
Definition at line 512 of file view.c.
References AngleVectors(), client_state_t::bob2_smooth, client_state_t::bobfall_speed, client_state_t::bobfall_swing, bound, client_state_t::calcrefdef_prevtime, chase_active, chase_back, chase_overhead, chase_pitchangle, chase_stevie, chase_up, cl, cl_bob, cl_bob2, cl_bob2cycle, cl_bob2smooth, cl_bob_limit, cl_bob_limit_heightcheck, cl_bob_limit_heightcheck_dontcrosswatersurface, cl_bob_velocity_limit, cl_bobcycle, cl_bobfall, cl_bobfallcycle, cl_bobfallminspeed, cl_bobmodel, cl_bobmodel_classic, cl_bobmodel_side, cl_bobmodel_speed, cl_bobmodel_up, cl_bobup, cl_followmodel, cl_followmodel_side_highpass, cl_followmodel_side_highpass1, cl_followmodel_side_limit, cl_followmodel_side_lowpass, cl_followmodel_side_speed, cl_followmodel_up_highpass, cl_followmodel_up_highpass1, cl_followmodel_up_limit, cl_followmodel_up_lowpass, cl_followmodel_up_speed, cl_leanmodel, cl_leanmodel_side_highpass, cl_leanmodel_side_highpass1, cl_leanmodel_side_limit, cl_leanmodel_side_lowpass, cl_leanmodel_side_speed, cl_leanmodel_up_highpass, cl_leanmodel_up_highpass1, cl_leanmodel_up_limit, cl_leanmodel_up_lowpass, cl_leanmodel_up_speed, cl_punchangle_applied, cl_rollangle, cl_rollspeed, cl_smoothviewheight, cl_stairsmoothspeed, CL_TraceLine(), cl_viewmodel_scale, collision_extendmovelength, Com_CalcRoll(), cos(), client_state_t::csqc_viewanglesfromengine, client_state_t::csqc_viewmodelmatrixfromengine, client_state_t::csqc_vieworiginfromengine, DotProduct, trace_t::endpos, floor(), forward, trace_t::fraction, frametime, GAME_GOODVSBAD2, gamemode, client_state_t::gunangles_adjustment_highpass, client_state_t::gunangles_adjustment_lowpass, client_state_t::gunangles_highpass, client_state_t::gunangles_prev, client_state_t::gunorg_adjustment_highpass, client_state_t::gunorg_adjustment_lowpass, client_state_t::gunorg_highpass, client_state_t::gunorg_prev, highpass3(), highpass3_limited(), client_state_t::hitgroundtime, i, identitymatrix, int(), cvar_t::integer, client_state_t::intermission, client_state_t::lastongroundtime, lowpass3(), M_PI, MATERIALFLAGMASK_TRANSLUCENT, r_refdef_view_t::matrix, Matrix4x4_Concat(), Matrix4x4_ConcatScale(), Matrix4x4_Copy(), Matrix4x4_CreateFromQuakeEntity(), Matrix4x4_Invert_Simple(), Matrix4x4_OriginFromMatrix(), Matrix4x4_QuakeToDuke3D(), max, min, MOVE_NOMONSTERS, client_state_t::movecmd, client_state_t::movevars_stepheight, client_state_t::movevars_timescale, plane_t::normal, NULL, offset, client_state_t::oldonground, client_state_t::oldtime, PITCH, trace_t::plane, client_state_t::punchangle, client_state_t::punchvector, client_state_t::qw_weaponkick, r_refdef, r_viewmodel_quake, right, ROLL, scr_viewsize, sin(), sqrt(), client_state_t::stairsmoothtime, client_state_t::stairsmoothz, SUPERCONTENTS_LIQUIDSMASK, SUPERCONTENTS_SKY, SUPERCONTENTS_SOLID, client_state_t::time, usercmd_t::time, up, V_CalcIntermissionRefdef(), v_deathtilt, v_deathtiltangle, v_dmg_pitch, v_dmg_roll, v_dmg_time, v_idlescale, v_ipitch_cycle, v_ipitch_level, v_iroll_cycle, v_iroll_level, v_iyaw_cycle, v_iyaw_level, v_kicktime, v_yshearing, cvar_t::value, VectorAdd, VectorClear, VectorCopy, VectorMA, VectorMAMAM, VectorScale, VectorSet, VectorSubtract, r_refdef_t::view, viewmodelmatrix_nobob, viewmodelmatrix_withbob, and YAW.
Referenced by V_CalcRefdef(), and VM_CL_V_CalcRefdef().
Definition at line 1043 of file view.c.
References a, bound, ca_connected, cl, cl_deathfade, CL_PointSuperContents, cls, CSHIFT_CONTENTS, CSHIFT_POWERUP, CSHIFT_VCSHIFT, client_state_t::cshifts, client_state_t::deathfade, cshift_t::destcolor, r_refdef_t::frustumscale_x, r_refdef_t::frustumscale_y, GAME_TRANSFUSION, gamemode, gl_polyblend, Image_LinearFloatFromsRGB, IT_INVISIBILITY, IT_INVULNERABILITY, IT_QUAD, IT_SUIT, r_refdef_view_t::matrix, Matrix4x4_OriginFromMatrix(), max, NUM_CSHIFTS, client_state_t::oldtime, cshift_t::percent, r_refdef, r_waterwarp, client_static_t::signon, SIGNONS, sin(), viddef_t::sRGB3D, STAT_HEALTH, STAT_ITEMS, client_static_t::state, client_state_t::stats, SUPERCONTENTS_LAVA, SUPERCONTENTS_LIQUIDSMASK, SUPERCONTENTS_SLIME, client_state_t::time, v_cshift, cvar_t::value, VectorLerp, VectorMAM, VectorScale, vid, r_refdef_t::view, client_state_t::view_underwater, and r_refdef_t::viewblend.
Referenced by CSQC_RelinkAllEntities().
Definition at line 189 of file view.c.
References cl, cl_forwardspeed, cls, client_state_t::cmd, client_static_t::demoplayback, client_state_t::driftmove, fabs(), usercmd_t::forwardmove, client_state_t::idealpitch, noclip_anglehack, client_state_t::nodrift, client_state_t::onground, PITCH, client_state_t::pitchvel, client_state_t::realframetime, v_centermove, v_centerspeed, V_StartPitchDrift(), cvar_t::value, and client_state_t::viewangles.
Referenced by CL_UpdateWorld().
Definition at line 1028 of file view.c.
References cshift_t::alphafade, cl, CSHIFT_BONUS, CSHIFT_DAMAGE, client_state_t::cshifts, client_state_t::oldtime, cshift_t::percent, and client_state_t::time.
Referenced by CL_UpdateWorld().
Definition at line 1196 of file view.c.
References CF_CLIENT, CF_CLIENT_FROM_SERVER, chase_active, chase_back, chase_overhead, chase_pitchangle, chase_stevie, chase_up, cl_bob, cl_bob2, cl_bob2cycle, cl_bob2smooth, cl_bob_limit, cl_bob_limit_heightcheck, cl_bob_limit_heightcheck_dontcrosswatersurface, cl_bob_velocity_limit, cl_bobcycle, cl_bobfall, cl_bobfallcycle, cl_bobfallminspeed, cl_bobmodel, cl_bobmodel_classic, cl_bobmodel_forward, cl_bobmodel_side, cl_bobmodel_speed, cl_bobmodel_up, cl_bobup, cl_followmodel, cl_followmodel_side_highpass, cl_followmodel_side_highpass1, cl_followmodel_side_limit, cl_followmodel_side_lowpass, cl_followmodel_side_speed, cl_followmodel_up_highpass, cl_followmodel_up_highpass1, cl_followmodel_up_limit, cl_followmodel_up_lowpass, cl_followmodel_up_speed, cl_leanmodel, cl_leanmodel_side_highpass, cl_leanmodel_side_highpass1, cl_leanmodel_side_limit, cl_leanmodel_side_lowpass, cl_leanmodel_side_speed, cl_leanmodel_up_highpass, cl_leanmodel_up_highpass1, cl_leanmodel_up_limit, cl_leanmodel_up_lowpass, cl_leanmodel_up_speed, cl_rollangle, cl_rollspeed, cl_smoothviewheight, cl_stairsmoothspeed, cl_viewmodel_scale, Cmd_AddCommand(), crosshair, Cvar_RegisterVariable(), r_viewmodel_quake, V_BonusFlash_f(), v_centermove, v_centerspeed, V_cshift_f(), v_deathtilt, v_deathtiltangle, v_idlescale, v_ipitch_cycle, v_ipitch_level, v_iroll_cycle, v_iroll_level, v_isometric, v_isometric_flipcullface, v_isometric_locked_orientation, v_isometric_relx, v_isometric_rely, v_isometric_relz, v_isometric_rot_pitch, v_isometric_rot_roll, v_isometric_rot_yaw, v_isometric_tx, v_isometric_ty, v_isometric_tz, v_isometric_usevieworiginculling, v_isometric_verticalfov, v_isometric_xx, v_isometric_xy, v_isometric_xz, v_isometric_yx, v_isometric_yy, v_isometric_yz, v_isometric_zx, v_isometric_zy, v_isometric_zz, v_iyaw_cycle, v_iyaw_level, v_kickpitch, v_kickroll, v_kicktime, V_StartPitchDrift_f(), and v_yshearing.
Referenced by CL_Init().
Definition at line 968 of file view.c.
Definition at line 261 of file view.c.
References entity_state_t::active, cshift_t::alphafade, cl, cl_message, CL_VM_UpdateDmgGlobals(), cls, count, CSHIFT_DAMAGE, client_state_t::cshifts, cshift_t::destcolor, client_state_t::entities, client_state_t::faceanimtime, entity_render_t::inversematrix, Matrix4x4_Transform(), MSG_ReadByte, MSG_ReadVector(), cshift_t::percent, client_static_t::protocol, entity_t::render, entity_t::state_current, client_state_t::time, v_dmg_pitch, v_dmg_roll, v_dmg_time, v_kickpitch, v_kickroll, v_kicktime, cvar_t::value, VectorNormalize, and client_state_t::viewentity.
Referenced by CL_ParseServerMessage().
Definition at line 151 of file view.c.
References cl, client_state_t::driftmove, client_state_t::laststop, client_state_t::nodrift, client_state_t::pitchvel, client_state_t::time, v_centerspeed, and cvar_t::value.
Referenced by V_DriftPitch(), and V_StartPitchDrift_f().
void V_StartPitchDrift_f | ( | struct cmd_state_s * | cmd | ) |
Definition at line 169 of file view.c.
References cl, client_state_t::laststop, client_state_t::nodrift, client_state_t::pitchvel, and client_state_t::time.
Referenced by CL_AdjustAngles(), and CL_Input().