Xonotic
|
Go to the source code of this file.
Referenced by CSQCPlayer_Physics(), CSQCPlayer_SavePrediction(), and IsFlying().
Definition at line 245 of file cl_player.qc.
References autocvar_cl_stairsmoothspeed, bound(), csqcmodel_teleported, drawtime, max(), PHYS_STEPHEIGHT, stairsmooth_drawtime, stairsmooth_offset, stairsmooth_prevtime, time, and v.
Referenced by CSQCModel_Hook_PreDraw(), and CSQCPlayer_SetCamera().
Definition at line 307 of file cl_player.qc.
References autocvar_cl_bob, autocvar_cl_bob2, autocvar_cl_bob2cycle, autocvar_cl_bob2smooth, autocvar_cl_bob_limit, autocvar_cl_bob_limit_heightcheck, autocvar_cl_bob_velocity_limit, autocvar_cl_bobcycle, autocvar_cl_bobfall, autocvar_cl_bobfallcycle, autocvar_cl_bobfallminspeed, autocvar_cl_bobup, BIT, bob2_smooth, bobfall_speed, bobfall_swing, bound(), cos(), csqcmodel_isdead, frametime, input_buttons, IS_ONGROUND, ISPLAYER_PLAYER, isplayermodel, M_PI, makevectors, max(), min(), MOVE_NOMONSTERS, NULL, rint(), sin(), sqrt(), time, trace_fraction, v, v_forward, v_right, v_up, vector(), velocity, and view_angles.
Referenced by CSQCPlayer_CalcRefdef().
Definition at line 437 of file cl_player.qc.
References autocvar_chase_back, autocvar_chase_front, autocvar_chase_overhead, autocvar_chase_pitchangle, autocvar_chase_up, makevectors, move_movetype, MOVE_NOMONSTERS, MOVE_NORMAL, MOVETYPE_NOCLIP, normalize(), NULL, spectatee_status, trace_endpos, trace_plane_normal, v, v_forward, v_up, vectoangles(), vector(), and view_angles.
Referenced by CSQCPlayer_CalcRefdef().
Definition at line 268 of file cl_player.qc.
References autocvar_v_deathtilt, autocvar_v_deathtiltangle, csqcmodel_isdead, and view_angles.
Referenced by CSQCPlayer_CalcRefdef().
Definition at line 282 of file cl_player.qc.
References autocvar_v_idlescale, autocvar_v_ipitch_cycle, autocvar_v_ipitch_level, autocvar_v_iroll_cycle, autocvar_v_iroll_level, autocvar_v_iyaw_cycle, autocvar_v_iyaw_level, sin(), time, and view_angles.
Referenced by CSQCPlayer_CalcRefdef().
Definition at line 217 of file cl_player.qc.
References autocvar_cl_smoothviewheight, autocvar_cl_stairsmoothspeed, bound(), csqcmodel_teleported, drawtime, max(), PHYS_STEPHEIGHT, PMF_ONGROUND, pmove_flags, smooth_prevtime, stairsmoothz, time, view_ofs, and viewheightavg.
Referenced by CSQCPlayer_CalcRefdef().
Definition at line 521 of file cl_player.qc.
References autocvar_chase_active, CSQCPlayer_ApplyBobbing(), CSQCPlayer_ApplyChase(), CSQCPlayer_ApplyDeathTilt(), CSQCPlayer_ApplyIdleScaling(), CSQCPlayer_ApplySmoothing(), CSQCPlayer_CalcRoll(), intermission, origin, vector(), VF_ANGLES, VF_ORIGIN, view_angles, view_ofs, view_punchangle, and view_punchvector.
Referenced by CSQCPlayer_SetCamera().
Definition at line 418 of file cl_player.qc.
References autocvar_cl_rollangle, autocvar_cl_rollspeed, fabs(), makevectors, v_right, velocity, and view_angles.
Referenced by CSQCPlayer_CalcRefdef().
vector CSQCPlayer_GetPredictionErrorO | ( | ) |
Definition at line 44 of file cl_player.qc.
References csqcplayer_predictionerrorfactor, csqcplayer_predictionerroro, csqcplayer_predictionerrortime, and time.
Referenced by CSQCPlayer_PredictTo(), and CSQCPlayer_SetPredictionError().
vector CSQCPlayer_GetPredictionErrorV | ( | ) |
Definition at line 50 of file cl_player.qc.
References csqcplayer_predictionerrorfactor, csqcplayer_predictionerrortime, csqcplayer_predictionerrorv, and time.
Referenced by CSQCPlayer_PredictTo(), and CSQCPlayer_SetPredictionError().
Definition at line 207 of file cl_player.qc.
References csqcplayer.
Referenced by CSQCModel_Draw().
Definition at line 128 of file cl_player.qc.
References angles, autocvar_cl_movement, CSQC_ClientMovement_PlayerMove_Frame(), input_angles, IS_DUCKED, IS_JUMP_HELD, IS_ONGROUND, Movetype_Physics_NoMatchTicrate(), PMF_DUCKED, PMF_JUMP_HELD, PMF_ONGROUND, pmove_flags, v_angle, vector(), and view_angles.
Referenced by CSQCPlayer_PredictTo().
Definition at line 674 of file cl_player.qc.
References csqcplayer, CSQCPlayer_Remove(), csqcplayer_status, CSQCPLAYERSTATUS_FROMSERVER, cvar(), cvar_settemp(), entnum, and player_localnum.
Referenced by NET_HANDLE().
Definition at line 154 of file cl_player.qc.
References clientcommandframe, CSQCPlayer_GetPredictionErrorO(), CSQCPlayer_GetPredictionErrorV(), csqcplayer_moveframe, CSQCPlayer_Physics(), CSQCPlayer_SetMinsMaxs(), csqcplayer_status, CSQCPlayer_Unpredict(), CSQCPLAYERSTATUS_PREDICTED, input_angles, LOG_INFO, origin, velocity, and view_angles.
Referenced by CSQCPlayer_SetCamera().
Definition at line 667 of file cl_player.qc.
References csqcplayer, csqcplayer_status, CSQCPlayer_Unpredict(), and CSQCPLAYERSTATUS_FROMSERVER.
Referenced by NET_HANDLE().
Definition at line 661 of file cl_player.qc.
References csqcplayer, cvar_settemp(), and NULL.
Referenced by CSQCPlayer_PostUpdate().
Definition at line 117 of file cl_player.qc.
References CSQC_ClientMovement_PlayerMove_Frame(), csqcplayer_origin, csqcplayer_sequence, csqcplayer_status, csqcplayer_velocity, CSQCPLAYERSTATUS_PREDICTED, entity(), flags, origin, player_pmflags, servercommandframe, and velocity.
Referenced by CSQCPlayer_SetCamera().
void CSQCPlayer_SetCamera | ( | ) |
Called once per CSQC_UpdateView()
Definition at line 554 of file cl_player.qc.
References autocvar_cl_movement_intermissionrunning, autocvar_cl_useenginerefdef, BIT, BITSET, clientcommandframe, CSQCModel_ApplyStairSmoothing(), CSQCModel_server2csqc(), csqcplayer, CSQCPlayer_CalcRefdef(), CSQCPLAYER_HOOK_POSTCAMERASETUP, CSQCPlayer_PredictTo(), CSQCPlayer_SavePrediction(), CSQCPlayer_SetMinsMaxs(), CSQCPlayer_SetPredictionError(), csqcplayer_status, CSQCPLAYERSTATUS_FROMSERVER, CSQCPLAYERSTATUS_PREDICTED, drawtime, entity(), FL_ONGROUND, IFLAG_ANGLES, IFLAG_ORIGIN, input_angles, input_buttons, intermission, InterpolateOrigin_Do(), IS_DEAD, IS_ONGROUND, NULL, PHYS_HEALTH, PHYS_PL_CROUCH_VIEWOFS, PHYS_PL_VIEWOFS, PHYS_VIEWHEIGHT, player_localentnum, PMF_ONGROUND, pmove_onground, pmove_vel, REFDEFFLAG_DEAD, REFDEFFLAG_INTERMISSION, REFDEFFLAG_JUMPING, REFDEFFLAG_TELEPORTED, servercommandframe, setorigin(), and vector().
Referenced by CSQC_UpdateView().
Definition at line 99 of file cl_player.qc.
References IS_DEAD, IS_DUCKED, ISPLAYER_PLAYER, isplayermodel, maxs, mins, PHYS_PL_CROUCH_MAX, PHYS_PL_CROUCH_MIN, PHYS_PL_CROUCH_VIEWOFS, PHYS_PL_MAX, PHYS_PL_MIN, PHYS_PL_VIEWOFS, and view_ofs.
Referenced by CSQCPlayer_PredictTo(), and CSQCPlayer_SetCamera().
Definition at line 56 of file cl_player.qc.
References autocvar_cl_movement_errorcompensation, CSQCPlayer_GetPredictionErrorO(), CSQCPlayer_GetPredictionErrorV(), csqcplayer_predictionerrorfactor, csqcplayer_predictionerroro, csqcplayer_predictionerrortime, csqcplayer_predictionerrorv, ticrate, time, v, and vdist.
Referenced by CSQCPlayer_SetCamera().
Definition at line 89 of file cl_player.qc.
References csqcplayer_moveframe, csqcplayer_origin, csqcplayer_sequence, csqcplayer_status, csqcplayer_velocity, CSQCPLAYERSTATUS_PREDICTED, CSQCPLAYERSTATUS_UNPREDICTED, flags, LOG_FATALF, origin, player_pmflags, and velocity.
Referenced by CSQCPlayer_PredictTo(), and CSQCPlayer_PreUpdate().
float autocvar_chase_back |
Definition at line 433 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyChase().
bool autocvar_chase_overhead |
Definition at line 435 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyChase().
float autocvar_chase_pitchangle |
Definition at line 436 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyChase().
float autocvar_chase_up |
Definition at line 434 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyChase().
float autocvar_cl_bob = 0 |
Definition at line 292 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_bob2 = 0 |
Definition at line 301 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_bob2cycle = 1 |
Definition at line 302 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_bob2smooth = 0.05 |
Definition at line 303 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_bob_limit = 7 |
Definition at line 294 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_bob_limit_heightcheck = 0 |
Definition at line 295 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_bob_velocity_limit = 400 |
Definition at line 296 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_bobcycle = 0.5 |
Definition at line 293 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_bobfall = 0.05 |
Definition at line 298 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_bobfallcycle = 3 |
Definition at line 299 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_bobfallminspeed = 200 |
Definition at line 300 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_bobup = 0.5 |
Definition at line 297 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float autocvar_cl_movement_errorcompensation = 0 |
Definition at line 29 of file cl_player.qc.
Referenced by CSQCPlayer_SetPredictionError().
Definition at line 30 of file cl_player.qc.
Referenced by CSQCPlayer_SetCamera().
float autocvar_cl_rollangle |
Definition at line 416 of file cl_player.qc.
Referenced by CSQCPlayer_CalcRoll().
float autocvar_cl_rollspeed |
Definition at line 417 of file cl_player.qc.
Referenced by CSQCPlayer_CalcRoll().
float autocvar_cl_smoothviewheight = 0.05 |
Definition at line 214 of file cl_player.qc.
Referenced by CSQCPlayer_ApplySmoothing().
float autocvar_cl_stairsmoothspeed = 200 |
Definition at line 213 of file cl_player.qc.
Referenced by CSQCModel_ApplyStairSmoothing(), and CSQCPlayer_ApplySmoothing().
Definition at line 551 of file cl_player.qc.
Referenced by CSQCPlayer_SetCamera().
bool autocvar_v_deathtilt |
Definition at line 266 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyDeathTilt().
float autocvar_v_deathtiltangle |
Definition at line 267 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyDeathTilt().
float autocvar_v_idlescale |
Definition at line 275 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyIdleScaling().
float autocvar_v_ipitch_cycle |
Definition at line 276 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyIdleScaling().
float autocvar_v_ipitch_level |
Definition at line 279 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyIdleScaling().
float autocvar_v_iroll_cycle |
Definition at line 278 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyIdleScaling().
float autocvar_v_iroll_level |
Definition at line 281 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyIdleScaling().
float autocvar_v_iyaw_cycle |
Definition at line 277 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyIdleScaling().
float autocvar_v_iyaw_level |
Definition at line 280 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyIdleScaling().
float bob2_smooth |
Definition at line 306 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float bobfall_speed |
Definition at line 305 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float bobfall_swing |
Definition at line 304 of file cl_player.qc.
Referenced by CSQCPlayer_ApplyBobbing().
float csqcplayer_moveframe |
Definition at line 38 of file cl_player.qc.
Referenced by CSQCPlayer_PredictTo(), and CSQCPlayer_Unpredict().
vector csqcplayer_origin |
Definition at line 35 of file cl_player.qc.
Referenced by CSQCPlayer_SavePrediction(), and CSQCPlayer_Unpredict().
float csqcplayer_predictionerrorfactor |
Definition at line 42 of file cl_player.qc.
Referenced by CSQCPlayer_GetPredictionErrorO(), CSQCPlayer_GetPredictionErrorV(), and CSQCPlayer_SetPredictionError().
vector csqcplayer_predictionerroro |
Definition at line 39 of file cl_player.qc.
Referenced by CSQCPlayer_GetPredictionErrorO(), and CSQCPlayer_SetPredictionError().
float csqcplayer_predictionerrortime |
Definition at line 41 of file cl_player.qc.
Referenced by CSQCPlayer_GetPredictionErrorO(), CSQCPlayer_GetPredictionErrorV(), and CSQCPlayer_SetPredictionError().
vector csqcplayer_predictionerrorv |
Definition at line 40 of file cl_player.qc.
Referenced by CSQCPlayer_GetPredictionErrorV(), and CSQCPlayer_SetPredictionError().
float csqcplayer_sequence |
Definition at line 36 of file cl_player.qc.
Referenced by CSQCPlayer_SavePrediction(), and CSQCPlayer_Unpredict().
vector csqcplayer_velocity |
Definition at line 35 of file cl_player.qc.
Referenced by CSQCPlayer_SavePrediction(), and CSQCPlayer_Unpredict().
int player_pmflags |
Definition at line 37 of file cl_player.qc.
Referenced by CSQCPlayer_SavePrediction(), and CSQCPlayer_Unpredict().
float pmove_onground |
Definition at line 33 of file cl_player.qc.
Referenced by CSQCPlayer_SetCamera().
float smooth_prevtime |
Definition at line 215 of file cl_player.qc.
Referenced by CSQCPlayer_ApplySmoothing().
float stairsmooth_drawtime |
Definition at line 244 of file cl_player.qc.
Referenced by CSQCModel_ApplyStairSmoothing().
float stairsmooth_offset |
Definition at line 242 of file cl_player.qc.
Referenced by CSQCModel_ApplyStairSmoothing().
float stairsmooth_prevtime |
Definition at line 243 of file cl_player.qc.
Referenced by CSQCModel_ApplyStairSmoothing().
float stairsmoothz |
Definition at line 212 of file cl_player.qc.
Referenced by CSQCPlayer_ApplySmoothing().
float viewheightavg |
Definition at line 216 of file cl_player.qc.
Referenced by CSQCPlayer_ApplySmoothing().