![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Macros | |
#define | NUMOFFSETS 27 |
Variables | |
cvar_t | cl_anglespeedkey = {CF_CLIENT | CF_ARCHIVE, "cl_anglespeedkey","1.5","how much +speed multiplies keyboard turning speed"} |
cvar_t | cl_backspeed = {CF_CLIENT | CF_ARCHIVE, "cl_backspeed","400","backward movement speed"} |
cvar_t | cl_csqc_generatemousemoveevents = {CF_CLIENT, "cl_csqc_generatemousemoveevents", "1", "enables calls to CSQC_InputEvent with type 2, for compliance with EXT_CSQC spec"} |
cvar_t | cl_forwardspeed = {CF_CLIENT | CF_ARCHIVE, "cl_forwardspeed","400","forward movement speed"} |
int | cl_ignoremousemoves = 2 |
cvar_t | cl_movecliptokeyboard = {CF_CLIENT, "cl_movecliptokeyboard", "0", "if set to 1, any move is clipped to the nine keyboard states; if set to 2, only the direction is clipped, not the amount"} |
cvar_t | cl_movement = {CF_CLIENT | CF_ARCHIVE, "cl_movement", "0", "enables clientside prediction of your player movement on DP servers (use cl_nopred for QWSV servers)"} |
cvar_t | cl_movement_accelerate = {CF_CLIENT, "cl_movement_accelerate", "10", "how fast you accelerate (should match sv_accelerate)"} |
cvar_t | cl_movement_airaccel_qw = {CF_CLIENT, "cl_movement_airaccel_qw", "1", "ratio of QW-style air control as opposed to simple acceleration (reduces speed gain when zigzagging) (should match sv_airaccel_qw); when < 0, the speed is clamped against the maximum allowed forward speed after the move"} |
cvar_t | cl_movement_airaccel_sideways_friction = {CF_CLIENT, "cl_movement_airaccel_sideways_friction", "0", "anti-sideways movement stabilization (should match sv_airaccel_sideways_friction); when < 0, only so much friction is applied that braking (by accelerating backwards) cannot be stronger"} |
cvar_t | cl_movement_airaccelerate = {CF_CLIENT, "cl_movement_airaccelerate", "-1", "how fast you accelerate while in the air (should match sv_airaccelerate), if less than 0 the cl_movement_accelerate variable is used instead"} |
cvar_t | cl_movement_edgefriction = {CF_CLIENT, "cl_movement_edgefriction", "1", "how much to slow down when you may be about to fall off a ledge (should match edgefriction)"} |
cvar_t | cl_movement_friction = {CF_CLIENT, "cl_movement_friction", "4", "how fast you slow down (should match sv_friction)"} |
cvar_t | cl_movement_jumpvelocity = {CF_CLIENT, "cl_movement_jumpvelocity", "270", "how fast you move upward when you begin a jump (should match the quakec code)"} |
cvar_t | cl_movement_maxairspeed = {CF_CLIENT, "cl_movement_maxairspeed", "30", "how fast you can move while in the air (should match sv_maxairspeed)"} |
cvar_t | cl_movement_maxspeed = {CF_CLIENT, "cl_movement_maxspeed", "320", "how fast you can move (should match sv_maxspeed)"} |
cvar_t | cl_movement_minping = {CF_CLIENT | CF_ARCHIVE, "cl_movement_minping", "0", "whether to use prediction when ping is lower than this value in milliseconds"} |
cvar_t | cl_movement_nettimeout = {CF_CLIENT | CF_ARCHIVE, "cl_movement_nettimeout", "0.3", "stops predicting moves when server is lagging badly (avoids major performance problems), timeout in seconds"} |
cvar_t | cl_movement_replay = {CF_CLIENT, "cl_movement_replay", "1", "use engine prediction"} |
cvar_t | cl_movement_stepheight = {CF_CLIENT, "cl_movement_stepheight", "18", "how tall a step you can step in one instant (should match sv_stepheight)"} |
cvar_t | cl_movement_stopspeed = {CF_CLIENT, "cl_movement_stopspeed", "100", "speed below which you will be slowed rapidly to a stop rather than sliding endlessly (should match sv_stopspeed)"} |
cvar_t | cl_movement_track_canjump = {CF_CLIENT | CF_ARCHIVE, "cl_movement_track_canjump", "1", "track if the player released the jump key between two jumps to decide if he is able to jump or not; when off, this causes some \"sliding\" slightly above the floor when the jump key is held too long; if the mod allows repeated jumping by holding space all the time, this has to be set to zero too"} |
cvar_t | cl_movement_wallfriction = {CF_CLIENT, "cl_movement_wallfriction", "1", "how fast you slow down while sliding along a wall (should match sv_wallfriction)"} |
cvar_t | cl_movement_wateraccelerate = {CF_CLIENT, "cl_movement_wateraccelerate", "-1", "how fast you accelerate while in water (should match sv_wateraccelerate), if less than 0 the cl_movement_accelerate variable is used instead"} |
cvar_t | cl_movement_waterfriction = {CF_CLIENT, "cl_movement_waterfriction", "-1", "how fast you slow down (should match sv_waterfriction), if less than 0 the cl_movement_friction variable is used instead"} |
cvar_t | cl_movespeedkey = {CF_CLIENT | CF_ARCHIVE, "cl_movespeedkey","2.0","how much +speed multiplies keyboard movement speed"} |
cvar_t | cl_netfps = {CF_CLIENT | CF_ARCHIVE, "cl_netfps","72", "how many input packets to send to server each second"} |
cvar_t | cl_netimmediatebuttons = {CF_CLIENT | CF_ARCHIVE, "cl_netimmediatebuttons", "1", "sends extra packets whenever your buttons change or an impulse is used (basically: whenever you click fire or change weapon)"} |
cvar_t | cl_netrepeatinput = {CF_CLIENT | CF_ARCHIVE, "cl_netrepeatinput", "1", "how many packets in a row can be lost without movement issues when using cl_movement (technically how many input messages to repeat in each packet that have not yet been acknowledged by the server), only affects DP7 and later servers (Quake uses 0, QuakeWorld uses 2, and just for comparison Quake3 uses 1)"} |
cvar_t | cl_nodelta = {CF_CLIENT, "cl_nodelta", "0", "disables delta compression of non-player entities in QW network protocol"} |
cvar_t | cl_nopred = {CF_CLIENT | CF_ARCHIVE, "cl_nopred", "0", "(QWSV only) disables player movement prediction when playing on QWSV servers (this setting is separate from cl_movement because player expectations are different when playing on DP vs QW servers)"} |
cvar_t | cl_pitchspeed = {CF_CLIENT | CF_ARCHIVE, "cl_pitchspeed","150","keyboard pitch turning speed"} |
cvar_t | cl_sidespeed = {CF_CLIENT | CF_ARCHIVE, "cl_sidespeed","350","strafe movement speed"} |
cvar_t | cl_upspeed = {CF_CLIENT | CF_ARCHIVE, "cl_upspeed","400","vertical movement speed (while swimming or flying)"} |
cvar_t | cl_yawspeed = {CF_CLIENT | CF_ARCHIVE, "cl_yawspeed","140","keyboard yaw turning speed"} |
cvar_t | host_timescale |
kbutton_t | in_attack |
kbutton_t | in_back |
in_bestweapon_info_t | in_bestweapon_info [IN_BESTWEAPON_MAX] |
kbutton_t | in_button10 |
kbutton_t | in_button11 |
kbutton_t | in_button12 |
kbutton_t | in_button13 |
kbutton_t | in_button14 |
kbutton_t | in_button15 |
kbutton_t | in_button16 |
kbutton_t | in_button3 |
kbutton_t | in_button4 |
kbutton_t | in_button5 |
kbutton_t | in_button6 |
kbutton_t | in_button7 |
kbutton_t | in_button8 |
kbutton_t | in_button9 |
kbutton_t | in_down |
kbutton_t | in_forward |
int | in_impulse |
kbutton_t | in_jump |
kbutton_t | in_klook |
kbutton_t | in_left |
kbutton_t | in_lookdown |
kbutton_t | in_lookup |
kbutton_t | in_mlook |
kbutton_t | in_moveleft |
kbutton_t | in_moveright |
cvar_t | in_pitch_max = {CF_CLIENT, "in_pitch_max", "90", "how far you can aim downward (quake used 80)"} |
cvar_t | in_pitch_min = {CF_CLIENT, "in_pitch_min", "-90", "how far you can aim upward (quake used -70)"} |
kbutton_t | in_right |
kbutton_t | in_speed |
kbutton_t | in_strafe |
kbutton_t | in_up |
kbutton_t | in_use |
cvar_t | m_accelerate = {CF_CLIENT | CF_ARCHIVE, "m_accelerate","1", "linear mouse acceleration factor (set to 1 to disable the linear acceleration and use only the power or natural acceleration; set to 0 to disable all acceleration)"} |
cvar_t | m_accelerate_filter = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_filter","0", "linear mouse acceleration factor filtering lowpass constant in seconds (set to 0 for no filtering)"} |
cvar_t | m_accelerate_maxspeed = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_maxspeed","10000", "above this speed in px/s, full acceleration is done, with a linear slope between (applied only on linear acceleration)"} |
cvar_t | m_accelerate_minspeed = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_minspeed","5000", "below this speed in px/s, no acceleration is done, with a linear slope between (applied only on linear acceleration)"} |
cvar_t | m_accelerate_natural_accelsenscap = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_natural_accelsenscap", "0", "Horizontal asymptote that sets the maximum value for the natural mouse acceleration curve, value 2, for example, means that the maximum sensitivity is 2 times the base sensitivity"} |
cvar_t | m_accelerate_natural_offset = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_natural_offset", "0", "below this speed in px/ms, no natural acceleration is done"} |
cvar_t | m_accelerate_natural_strength = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_natural_strength", "0", "How quickly the accelsensitivity approaches the m_accelerate_natural_accelsenscap, values are compressed between 0 and 1 but higher numbers are allowed"} |
cvar_t | m_accelerate_power = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_power","2", "acceleration power (must be above 1 to be useful)"} |
cvar_t | m_accelerate_power_offset = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_power_offset","0", "below this speed in px/ms, no power acceleration is done"} |
cvar_t | m_accelerate_power_senscap = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_power_senscap", "0", "maximum acceleration factor generated by power acceleration; use 0 for unbounded"} |
cvar_t | m_accelerate_power_strength = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_power_strength", "0", "strength of the power mouse acceleration effect"} |
cvar_t | m_filter = {CF_CLIENT | CF_ARCHIVE, "m_filter","0", "smoothes mouse movement, less responsive but smoother aiming"} |
usercmd_t | nullcmd |
static vec3_t | offsets [NUMOFFSETS] |
cvar_t | v_flipped |
#define NUMOFFSETS 27 |
Definition at line 837 of file cl_input.c.
Referenced by CL_ClientMovement_Unstick().
Definition at line 431 of file cl_input.c.
References ANGLEMOD, bound, cl, cl_anglespeedkey, CL_KeyState(), cl_pitchspeed, cl_yawspeed, in_back, in_forward, in_klook, in_left, in_lookdown, in_lookup, in_pitch_max, in_pitch_min, in_right, in_speed, in_strafe, PITCH, client_state_t::realframetime, ROLL, kbutton_t::state, up, V_StopPitchDrift(), cvar_t::value, client_state_t::viewangles, and YAW.
Referenced by CL_Input().
|
static |
Definition at line 954 of file cl_input.c.
References cl, CL_ClientMovement_UpdateStatus(), CL_TraceBox(), cl_clientmovement_state_t::cmd, collision_extendmovelength, DotProduct, trace_t::endpos, f, fabs(), trace_t::fraction, usercmd_t::frametime, cl_clientmovement_state_t::maxs, cl_clientmovement_state_t::mins, MOVE_NORMAL, client_state_t::movevars_stepheight, plane_t::normal, NULL, cl_clientmovement_state_t::onground, cl_clientmovement_state_t::origin, trace_t::plane, cl_clientmovement_state_t::self, trace_t::startsolid, SUPERCONTENTS_BODY, SUPERCONTENTS_PLAYERCLIP, SUPERCONTENTS_SOLID, cvar_t::value, VectorCopy, VectorLength2, VectorMA, VectorSet, cl_clientmovement_state_t::velocity, and cl_clientmovement_state_t::waterjumptime.
Referenced by CL_ClientMovement_Physics_Swim(), and CL_ClientMovement_Physics_Walk().
Definition at line 1179 of file cl_input.c.
Referenced by CL_ClientMovement_Physics_PM_Accelerate().
|
static |
Definition at line 1318 of file cl_input.c.
References usercmd_t::canjump, cl, cl_movement_track_canjump, cl_clientmovement_state_t::cmd, cvar_t::integer, usercmd_t::jump, client_state_t::movevars_jumpvelocity, cl_clientmovement_state_t::onground, and cl_clientmovement_state_t::velocity.
Referenced by CL_ClientMovement_Physics_Walk().
|
static |
Definition at line 1144 of file cl_input.c.
References bound, cl, CL_IsMoveInDirection(), cl_clientmovement_state_t::cmd, DotProduct, usercmd_t::forwardmove, usercmd_t::frametime, max, client_state_t::movevars_aircontrol, client_state_t::movevars_aircontrol_penalty, client_state_t::movevars_aircontrol_power, client_state_t::movevars_maxairspeed, pow(), usercmd_t::sidemove, sqrt(), VectorMAM, VectorNormalize, VectorNormalizeLength(), VectorScale, cl_clientmovement_state_t::velocity, wishdir, and wishspeed.
Referenced by CL_ClientMovement_Physics_Walk().
|
static |
Definition at line 1187 of file cl_input.c.
References bound, cl, CL_ClientMovement_Physics_AdjustAirAccelQW(), cl_clientmovement_state_t::cmd, DotProduct, f, usercmd_t::frametime, max, MOVEFLAG_Q2AIRACCELERATE, client_state_t::moveflags, sqrt(), VectorCopy, VectorLength, VectorLength2, VectorMA, VectorScale, cl_clientmovement_state_t::velocity, wishdir, and wishspeed.
Referenced by CL_ClientMovement_Physics_Walk().
|
static |
Definition at line 1267 of file cl_input.c.
References cl, cl_clientmovement_state_t::cmd, DotProduct, f, usercmd_t::frametime, max, client_state_t::movevars_maxairspeed, client_state_t::movevars_warsowbunny_accel, client_state_t::movevars_warsowbunny_airforwardaccel, client_state_t::movevars_warsowbunny_backtosideratio, client_state_t::movevars_warsowbunny_topspeed, client_state_t::movevars_warsowbunny_turnaccel, VectorCopy, VectorLength, VectorMA, VectorNormalize2, VectorNormalizeLength(), VectorScale, VectorSubtract, cl_clientmovement_state_t::velocity, wishdir, and wishspeed.
Referenced by CL_ClientMovement_Physics_Walk().
|
static |
Definition at line 1020 of file cl_input.c.
References AngleVectors(), bound, usercmd_t::canjump, cl, CL_ClientMovement_Move(), CL_TracePoint(), cls, cl_clientmovement_state_t::cmd, cl_clientmovement_state_t::crouched, DotProduct, f, forward, usercmd_t::forwardmove, usercmd_t::frametime, gamemode, IS_NEXUIZ_DERIVED, usercmd_t::jump, min, MOVE_NOMONSTERS, client_state_t::movevars_maxspeed, client_state_t::movevars_wateraccelerate, client_state_t::movevars_waterfriction, NULL, cl_clientmovement_state_t::onground, cl_clientmovement_state_t::origin, client_static_t::protocol, PROTOCOL_QUAKEWORLD, right, cl_clientmovement_state_t::self, usercmd_t::sidemove, trace_t::startsolid, SUPERCONTENTS_LAVA, SUPERCONTENTS_SLIME, up, usercmd_t::upmove, VectorCopy, VectorMA, VectorMAMAM, VectorNormalizeLength(), VectorScale, VectorSet, cl_clientmovement_state_t::velocity, usercmd_t::viewangles, cl_clientmovement_state_t::waterjumptime, cl_clientmovement_state_t::waterlevel, cl_clientmovement_state_t::watertype, wishdir, and wishspeed.
Referenced by CL_ClientMovement_PlayerMove().
|
static |
Definition at line 1335 of file cl_input.c.
References AngleVectors(), cl, CL_ClientMovement_Move(), CL_ClientMovement_Physics_CheckJump(), CL_ClientMovement_Physics_CPM_PM_Aircontrol(), CL_ClientMovement_Physics_PM_Accelerate(), CL_ClientMovement_Physics_PM_AirAccelerate(), CL_GeomLerp(), CL_IsMoveInDirection(), CL_TraceBox(), CL_TraceLine(), cls, cl_clientmovement_state_t::cmd, collision_extendmovelength, cl_clientmovement_state_t::crouched, DotProduct, fabs(), forward, usercmd_t::forwardmove, trace_t::fraction, usercmd_t::frametime, friction, max, cl_clientmovement_state_t::maxs, min, cl_clientmovement_state_t::mins, MOVE_NORMAL, MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE, MOVEFLAG_NOGRAVITYONGROUND, client_state_t::moveflags, client_state_t::movevars_accelerate, client_state_t::movevars_airaccel_qw, client_state_t::movevars_airaccel_qw_stretchfactor, client_state_t::movevars_airaccel_sideways_friction, client_state_t::movevars_airaccelerate, client_state_t::movevars_aircontrol, client_state_t::movevars_airspeedlimit_nonqw, client_state_t::movevars_airstopaccelerate, client_state_t::movevars_airstrafeaccel_qw, client_state_t::movevars_airstrafeaccelerate, client_state_t::movevars_edgefriction, client_state_t::movevars_entgravity, client_state_t::movevars_friction, client_state_t::movevars_gravity, client_state_t::movevars_maxairspeed, client_state_t::movevars_maxairstrafespeed, client_state_t::movevars_maxspeed, client_state_t::movevars_stopspeed, client_state_t::movevars_warsowbunny_turnaccel, NULL, cl_clientmovement_state_t::onground, cl_clientmovement_state_t::origin, client_static_t::protocol, PROTOCOL_QUAKEWORLD, right, cl_clientmovement_state_t::self, usercmd_t::sidemove, trace_t::startsolid, SUPERCONTENTS_BODY, SUPERCONTENTS_PLAYERCLIP, SUPERCONTENTS_SOLID, up, cvar_t::value, Vector2Length, VectorCopy, VectorLength2, VectorMA, VectorMAM, VectorNormalize, VectorNormalizeLength(), VectorScale, VectorSet, cl_clientmovement_state_t::velocity, usercmd_t::viewangles, cl_clientmovement_state_t::waterjumptime, wishdir, and wishspeed.
Referenced by CL_ClientMovement_PlayerMove().
|
static |
Definition at line 1481 of file cl_input.c.
References usercmd_t::canjump, CL_ClientMovement_Physics_Swim(), CL_ClientMovement_Physics_Walk(), CL_ClientMovement_UpdateStatus(), cl_clientmovement_state_t::cmd, usercmd_t::frametime, usercmd_t::jump, cl_clientmovement_state_t::waterjumptime, cl_clientmovement_state_t::waterlevel, and WATERLEVEL_SWIMMING.
Referenced by CL_ClientMovement_PlayerMove_Frame().
void CL_ClientMovement_PlayerMove_Frame | ( | cl_clientmovement_state_t * | s | ) |
Definition at line 1586 of file cl_input.c.
References usercmd_t::canjump, CL_ClientMovement_PlayerMove(), cl_clientmovement_state_t::cmd, usercmd_t::frametime, and usercmd_t::jump.
Referenced by CL_ClientMovement_Replay(), and VM_CL_runplayerphysics().
Definition at line 1607 of file cl_input.c.
References usercmd_t::canjump, cl, CL_ClientMovement_PlayerMove_Frame(), CL_ClientMovement_UpdateStatus(), CL_MAX_USERCMDS, cl_movement, cl_movement_minping, cl_movement_replay, cls, cl_clientmovement_state_t::cmd, cl_clientmovement_state_t::crouched, client_static_t::demoplayback, client_state_t::entities, i, cvar_t::integer, client_state_t::intermission, client_state_t::movecmd, client_state_t::movement_origin, client_state_t::movement_predicted, client_state_t::movement_replay, client_state_t::movement_velocity, usercmd_t::msec, client_state_t::mvelocity, cl_clientmovement_state_t::onground, client_state_t::onground, cl_clientmovement_state_t::origin, entity_state_t::origin, client_state_t::playerentity, usercmd_t::sequence, client_static_t::servermovesequence, client_static_t::signon, SIGNONS, STAT_HEALTH, entity_t::state_current, client_state_t::stats, cvar_t::value, VectorCopy, and cl_clientmovement_state_t::velocity.
Referenced by CL_UpdateWorld().
|
static |
Definition at line 861 of file cl_input.c.
References cl, CL_TraceBox(), collision_extendmovelength, i, MOVE_NORMAL, NULL, NUMOFFSETS, offsets, cl_clientmovement_state_t::origin, client_state_t::playercrouchmaxs, client_state_t::playercrouchmins, cl_clientmovement_state_t::self, trace_t::startsolid, SUPERCONTENTS_PLAYERCLIP, SUPERCONTENTS_SOLID, cvar_t::value, VectorAdd, and VectorCopy.
Referenced by CL_ClientMovement_UpdateStatus().
|
static |
Definition at line 878 of file cl_input.c.
References cl, CL_ClientMovement_Unstick(), CL_TraceBox(), CL_TracePoint(), cl_clientmovement_state_t::cmd, collision_extendmovelength, usercmd_t::crouch, cl_clientmovement_state_t::crouched, DotProduct, f, trace_t::fraction, cl_clientmovement_state_t::maxs, cl_clientmovement_state_t::mins, MOVE_NOMONSTERS, MOVE_NORMAL, plane_t::normal, NULL, cl_clientmovement_state_t::onground, cl_clientmovement_state_t::origin, trace_t::plane, client_state_t::playercrouchmaxs, client_state_t::playercrouchmins, client_state_t::playerstandmaxs, client_state_t::playerstandmins, cl_clientmovement_state_t::self, trace_t::startsolid, trace_t::startsupercontents, SUPERCONTENTS_BODY, SUPERCONTENTS_LIQUIDSMASK, SUPERCONTENTS_PLAYERCLIP, SUPERCONTENTS_SOLID, cvar_t::value, VectorCopy, VectorMA, VectorSet, cl_clientmovement_state_t::velocity, cl_clientmovement_state_t::waterjumptime, cl_clientmovement_state_t::waterlevel, WATERLEVEL_NONE, WATERLEVEL_SUBMERGED, WATERLEVEL_SWIMMING, WATERLEVEL_WETFEET, and cl_clientmovement_state_t::watertype.
Referenced by CL_ClientMovement_Move(), CL_ClientMovement_PlayerMove(), and CL_ClientMovement_Replay().
Definition at line 1125 of file cl_input.c.
References a, b, fabs(), and pow().
Referenced by CL_ClientMovement_Physics_Walk().
Definition at line 2209 of file cl_input.c.
References CF_CLIENT, cl_csqc_generatemousemoveevents, cl_movecliptokeyboard, cl_movement, cl_movement_accelerate, cl_movement_airaccel_qw, cl_movement_airaccel_sideways_friction, cl_movement_airaccelerate, cl_movement_edgefriction, cl_movement_friction, cl_movement_jumpvelocity, cl_movement_maxairspeed, cl_movement_maxspeed, cl_movement_minping, cl_movement_nettimeout, cl_movement_replay, cl_movement_stepheight, cl_movement_stopspeed, cl_movement_track_canjump, cl_movement_wallfriction, cl_movement_wateraccelerate, cl_movement_waterfriction, cl_netfps, cl_netimmediatebuttons, cl_netrepeatinput, cl_nodelta, cl_nopred, Cmd_AddCommand(), Cvar_RegisterVariable(), IN_AttackDown(), IN_AttackUp(), IN_BackDown(), IN_BackUp(), IN_BestWeapon_f(), IN_BestWeapon_Register_f(), IN_Button10Down(), IN_Button10Up(), IN_Button11Down(), IN_Button11Up(), IN_Button12Down(), IN_Button12Up(), IN_Button13Down(), IN_Button13Up(), IN_Button14Down(), IN_Button14Up(), IN_Button15Down(), IN_Button15Up(), IN_Button16Down(), IN_Button16Up(), IN_Button3Down(), IN_Button3Up(), IN_Button4Down(), IN_Button4Up(), IN_Button5Down(), IN_Button5Up(), IN_Button6Down(), IN_Button6Up(), IN_Button7Down(), IN_Button7Up(), IN_Button8Down(), IN_Button8Up(), IN_Button9Down(), IN_Button9Up(), IN_DownDown(), IN_DownUp(), IN_ForwardDown(), IN_ForwardUp(), IN_Impulse(), IN_JumpDown(), IN_JumpUp(), IN_KLookDown(), IN_KLookUp(), IN_LeftDown(), IN_LeftUp(), IN_LookdownDown(), IN_LookdownUp(), IN_LookupDown(), IN_LookupUp(), IN_MLookDown(), IN_MLookUp(), IN_MoveleftDown(), IN_MoveleftUp(), IN_MoverightDown(), IN_MoverightUp(), in_pitch_max, in_pitch_min, IN_RightDown(), IN_RightUp(), IN_SpeedDown(), IN_SpeedUp(), IN_StrafeDown(), IN_StrafeUp(), IN_UpDown(), IN_UpUp(), IN_UseDown(), IN_UseUp(), m_accelerate, m_accelerate_filter, m_accelerate_maxspeed, m_accelerate_minspeed, m_accelerate_natural_accelsenscap, m_accelerate_natural_offset, m_accelerate_natural_strength, m_accelerate_power, m_accelerate_power_offset, m_accelerate_power_senscap, m_accelerate_power_strength, and m_filter.
Referenced by CL_Init().
Definition at line 483 of file cl_input.c.
References bound, cl, CL_AdjustAngles(), cl_backspeed, cl_csqc_generatemousemoveevents, cl_forwardspeed, cl_ignoremousemoves, CL_KeyState(), cl_movecliptokeyboard, cl_movespeedkey, cl_prydoncursor, cl_sidespeed, cl_upspeed, CL_VM_InputEvent(), CLVM_prog, client_state_t::cmd, client_state_t::csqc_wantsmousemove, usercmd_t::cursor_screen, f, fabs(), usercmd_t::forwardmove, freelook, viddef_mode_t::height, in_back, in_down, in_forward, in_klook, in_left, in_mlook, in_mouse_x, in_mouse_y, IN_Move(), in_moveleft, in_moveright, in_right, in_speed, in_strafe, in_up, in_windowmouse_x, in_windowmouse_y, cvar_t::integer, key_consoleactive, key_dest, key_game, lookstrafe, m_accelerate, m_accelerate_filter, m_accelerate_maxspeed, m_accelerate_minspeed, m_accelerate_natural_accelsenscap, m_accelerate_natural_offset, m_accelerate_natural_strength, m_accelerate_power, m_accelerate_power_offset, m_accelerate_power_senscap, m_accelerate_power_strength, m_filter, m_forward, m_pitch, m_side, m_yaw, max, viddef_t::mode, noclip_anglehack, PITCH, client_state_t::realframetime, sensitivity, client_state_t::sensitivityscale, usercmd_t::sidemove, sqrt(), kbutton_t::state, usercmd_t::upmove, v_flipped, V_StopPitchDrift(), cvar_t::value, vid, vid_conheight, vid_conwidth, client_state_t::viewangles, client_state_t::viewzoom, viddef_mode_t::width, wishspeed, and YAW.
Referenced by CL_Frame().
Definition at line 1112 of file cl_input.c.
References ANGLEMOD, fabs(), forward, and RAD2DEG.
Referenced by CL_ClientMovement_Physics_CPM_PM_Aircontrol(), and CL_ClientMovement_Physics_Walk().
Definition at line 315 of file cl_input.c.
References kbutton_t::state.
Referenced by CL_AdjustAngles(), and CL_Input().
Definition at line 1737 of file cl_input.c.
References cl, client_state_t::cmd, Con_Printf(), developer_networkentities, cvar_t::integer, LATESTFRAMENUMS, client_state_t::latestframenums, client_state_t::latestframenumsposition, client_state_t::latestsendnums, and usercmd_t::sequence.
Referenced by EntityFrame4_CL_ReadFrame(), EntityFrame5_CL_ReadFrame(), and EntityFrame_CL_ReadFrame().
void CL_RotateMoves | ( | const matrix4x4_t * | m | ) |
Definition at line 1746 of file cl_input.c.
References AnglesFromVectors(), AngleVectors(), cl, CL_MAX_USERCMDS, cls, f, i, Matrix4x4_Transform(), client_state_t::movecmd, r, usercmd_t::sequence, client_static_t::servermovesequence, v, VectorCopy, and usercmd_t::viewangles.
Referenced by VM_CL_RotateMoves().
Definition at line 1771 of file cl_input.c.
References bound, buf, usercmd_t::buttons, ca_connected, cl, CL_DisconnectEx(), CL_MAX_DOWNLOADACKS, CL_MAX_USERCMDS, cl_movement, cl_movement_nettimeout, cl_netfps, cl_netimmediatebuttons, cl_netrepeatinput, cl_nodelta, cl_nopred, cl_prydoncursor, cl_rate, cl_rate_burstsize, CL_UpdatePrydonCursor(), clc_ackdownloaddata, clc_ackframe, clc_move, cls, client_state_t::cmd, cmd(), COM_BlockSequenceCRCByteQW(), Con_Printf(), usercmd_t::crouch, sizebuf_t::cursize, usercmd_t::cursor_screen, data, client_static_t::demorecording, developer_networkentities, client_static_t::dp_downloadack, float, floor(), usercmd_t::forwardmove, usercmd_t::frametime, host, i, usercmd_t::impulse, in_attack, in_button10, in_button11, in_button12, in_button13, in_button14, in_button15, in_button16, in_button3, in_button4, in_button5, in_button6, in_button7, in_button8, in_button9, in_impulse, in_jump, in_use, netconn_t::incoming_netgraph, cvar_t::integer, usercmd_t::jump, key_consoleactive, key_dest, key_game, client_state_t::last_received_message, LATESTFRAMENUMS, client_state_t::latestframenums, client_state_t::latestframenumsposition, client_state_t::latestsendnums, max, netconn_t::message, min, client_state_t::movecmd, client_state_t::movement_replay, client_state_t::movevars_ticrate, usercmd_t::msec, MSG_WriteAngle16i(), MSG_WriteAngle32f(), MSG_WriteAngle8i(), MSG_WriteByte(), MSG_WriteCoord16i(), MSG_WriteFloat(), MSG_WriteLong(), MSG_WriteShort(), client_state_t::mtime, client_static_t::netcon, NetConn_CanSend(), NetConn_SendUnreliableMessage(), NETGRAPH_LOSTPACKET, NETGRAPH_PACKETS, nullcmd, client_state_t::opt_inputs_since_update, netconn_t::outgoing_unreliable_sequence, sizebuf_t::overflowed, usercmd_t::predicted, client_static_t::proquake_servermod, client_static_t::protocol, PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_DARKPLACES5, PROTOCOL_DARKPLACES6, PROTOCOL_DARKPLACES7, PROTOCOL_DARKPLACES8, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, PROTOCOL_QUAKEWORLD, PROTOCOL_UNKNOWN, qw_clc_delta, qw_clc_move, client_state_t::qw_deltasequence, QW_MSG_WriteDeltaUsercmd(), QW_UPDATE_BACKUP, QW_UPDATE_MASK, client_state_t::qw_validsequence, client_state_t::realframetime, host_static_t::realtime, usercmd_t::sequence, client_static_t::servermovesequence, usercmd_t::sidemove, client_static_t::signon, SIGNONS, cl_downloadack_t::size, cl_downloadack_t::start, client_static_t::state, kbutton_t::state, client_state_t::time, usercmd_t::time, client_state_t::timesincepacket, netgraphitem_t::unreliablebytes, usercmd_t::upmove, cvar_t::value, VectorCopy, vid_activewindow, client_state_t::viewangles, and usercmd_t::viewangles.
Referenced by CL_Frame().
Definition at line 1495 of file cl_input.c.
References cl, cl_movement_accelerate, cl_movement_airaccel_qw, cl_movement_airaccel_sideways_friction, cl_movement_airaccelerate, cl_movement_edgefriction, cl_movement_friction, cl_movement_jumpvelocity, cl_movement_maxairspeed, cl_movement_maxspeed, cl_movement_stepheight, cl_movement_stopspeed, cl_movement_wallfriction, cl_movement_wateraccelerate, cl_movement_waterfriction, cls, client_static_t::demoplayback, GAME_NEXUIZ, gamemode, host_timescale, MOVEFLAG_Q2AIRACCELERATE, MOVEFLAG_VALID, client_state_t::moveflags, client_state_t::movevars_accelerate, client_state_t::movevars_airaccel_qw, client_state_t::movevars_airaccel_qw_stretchfactor, client_state_t::movevars_airaccel_sideways_friction, client_state_t::movevars_airaccelerate, client_state_t::movevars_aircontrol, client_state_t::movevars_aircontrol_penalty, client_state_t::movevars_aircontrol_power, client_state_t::movevars_airspeedlimit_nonqw, client_state_t::movevars_airstopaccelerate, client_state_t::movevars_airstrafeaccel_qw, client_state_t::movevars_airstrafeaccelerate, client_state_t::movevars_edgefriction, client_state_t::movevars_entgravity, client_state_t::movevars_friction, client_state_t::movevars_gravity, client_state_t::movevars_jumpvelocity, client_state_t::movevars_maxairspeed, client_state_t::movevars_maxairstrafespeed, client_state_t::movevars_maxspeed, client_state_t::movevars_spectatormaxspeed, client_state_t::movevars_stepheight, client_state_t::movevars_stopspeed, client_state_t::movevars_ticrate, client_state_t::movevars_timescale, client_state_t::movevars_wallfriction, client_state_t::movevars_warsowbunny_accel, client_state_t::movevars_warsowbunny_airforwardaccel, client_state_t::movevars_warsowbunny_backtosideratio, client_state_t::movevars_warsowbunny_topspeed, client_state_t::movevars_warsowbunny_turnaccel, client_state_t::movevars_wateraccelerate, client_state_t::movevars_waterfriction, client_static_t::protocol, PROTOCOL_QUAKEWORLD, STAT_MOVEFLAGS, STAT_MOVEVARS_ACCELERATE, STAT_MOVEVARS_AIRACCEL_QW, STAT_MOVEVARS_AIRACCEL_QW_STRETCHFACTOR, STAT_MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION, STAT_MOVEVARS_AIRACCELERATE, STAT_MOVEVARS_AIRCONTROL, STAT_MOVEVARS_AIRCONTROL_PENALTY, STAT_MOVEVARS_AIRCONTROL_POWER, STAT_MOVEVARS_AIRSPEEDLIMIT_NONQW, STAT_MOVEVARS_AIRSTOPACCELERATE, STAT_MOVEVARS_AIRSTRAFEACCEL_QW, STAT_MOVEVARS_AIRSTRAFEACCELERATE, STAT_MOVEVARS_EDGEFRICTION, STAT_MOVEVARS_ENTGRAVITY, STAT_MOVEVARS_FRICTION, STAT_MOVEVARS_GRAVITY, STAT_MOVEVARS_JUMPVELOCITY, STAT_MOVEVARS_MAXAIRSPEED, STAT_MOVEVARS_MAXAIRSTRAFESPEED, STAT_MOVEVARS_MAXSPEED, STAT_MOVEVARS_SPECTATORMAXSPEED, STAT_MOVEVARS_STEPHEIGHT, STAT_MOVEVARS_STOPSPEED, STAT_MOVEVARS_TICRATE, STAT_MOVEVARS_TIMESCALE, STAT_MOVEVARS_WALLFRICTION, STAT_MOVEVARS_WARSOWBUNNY_ACCEL, STAT_MOVEVARS_WARSOWBUNNY_AIRFORWARDACCEL, STAT_MOVEVARS_WARSOWBUNNY_BACKTOSIDERATIO, STAT_MOVEVARS_WARSOWBUNNY_TOPSPEED, STAT_MOVEVARS_WARSOWBUNNY_TURNACCEL, STAT_MOVEVARS_WATERACCELERATE, STAT_MOVEVARS_WATERFRICTION, client_state_t::stats, client_state_t::statsf, sv_gravity, and cvar_t::value.
Referenced by CL_ParseServerMessage().
Definition at line 787 of file cl_input.c.
References bound, chase_active, cl, cl_prydoncursor, cl_prydoncursor_notrace, CL_SelectTraceLine(), client_state_t::cmd, usercmd_t::cursor_end, usercmd_t::cursor_entitynumber, usercmd_t::cursor_fraction, usercmd_t::cursor_impact, usercmd_t::cursor_normal, usercmd_t::cursor_screen, usercmd_t::cursor_start, client_state_t::entities, r_refdef_view_t::frustum_x, r_refdef_view_t::frustum_y, cvar_t::integer, client_state_t::intermission, r_refdef_view_t::matrix, Matrix4x4_OriginFromMatrix(), Matrix4x4_Transform(), NULL, client_state_t::playerentity, r_refdef, entity_t::render, v_flipped, VectorClear, VectorCopy, VectorSet, and r_refdef_t::view.
Referenced by CL_SendMove().
|
static |
Definition at line 159 of file cl_input.c.
References cmd(), in_attack, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 160 of file cl_input.c.
References cmd(), in_attack, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 143 of file cl_input.c.
References cmd(), in_back, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 144 of file cl_input.c.
References cmd(), in_back, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 271 of file cl_input.c.
References in_bestweapon_info_t::ammomin, in_bestweapon_info_t::ammostat, cl, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Printf(), i, in_bestweapon_info_t::impulse, in_bestweapon_info, IN_BESTWEAPON_MAX, in_impulse, n, name, STAT_ITEMS, client_state_t::stats, and in_bestweapon_info_t::weaponbit.
Referenced by CL_InitInput().
|
static |
Definition at line 203 of file cl_input.c.
References in_bestweapon_info_t::activeweaponcode, in_bestweapon_info_t::ammomin, in_bestweapon_info_t::ammostat, Con_Printf(), dp_strlcpy, i, impulse, in_bestweapon_info_t::impulse, in_bestweapon_info, IN_BESTWEAPON_MAX, name, and in_bestweapon_info_t::weaponbit.
Referenced by IN_BestWeapon_Register_f(), and IN_BestWeapon_ResetData().
|
static |
Definition at line 244 of file cl_input.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), Con_Printf(), in_bestweapon_info, IN_BestWeapon_Register(), and IN_BestWeapon_ResetData().
Referenced by CL_InitInput().
call before each map so QC can start from a clean state
Definition at line 226 of file cl_input.c.
References HIT_LASER_CANNON, HIT_MJOLNIR, in_bestweapon_info, IN_BestWeapon_Register(), IT_AXE, IT_GRENADE_LAUNCHER, IT_LIGHTNING, IT_NAILGUN, IT_ROCKET_LAUNCHER, IT_SHOTGUN, IT_SUPER_NAILGUN, IT_SUPER_SHOTGUN, STAT_CELLS, STAT_NAILS, STAT_ROCKETS, and STAT_SHELLS.
Referenced by CL_ClearState(), and IN_BestWeapon_Register_f().
|
static |
Definition at line 181 of file cl_input.c.
References cmd(), in_button10, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 182 of file cl_input.c.
References cmd(), in_button10, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 183 of file cl_input.c.
References cmd(), in_button11, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 184 of file cl_input.c.
References cmd(), in_button11, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 185 of file cl_input.c.
References cmd(), in_button12, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 186 of file cl_input.c.
References cmd(), in_button12, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 187 of file cl_input.c.
References cmd(), in_button13, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 188 of file cl_input.c.
References cmd(), in_button13, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 189 of file cl_input.c.
References cmd(), in_button14, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 190 of file cl_input.c.
References cmd(), in_button14, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 191 of file cl_input.c.
References cmd(), in_button15, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 192 of file cl_input.c.
References cmd(), in_button15, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 193 of file cl_input.c.
References cmd(), in_button16, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 194 of file cl_input.c.
References cmd(), in_button16, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 166 of file cl_input.c.
References cmd(), in_button3, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 167 of file cl_input.c.
References cmd(), in_button3, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 168 of file cl_input.c.
References cmd(), in_button4, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 169 of file cl_input.c.
References cmd(), in_button4, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 170 of file cl_input.c.
References cmd(), in_button5, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 171 of file cl_input.c.
References cmd(), in_button5, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 172 of file cl_input.c.
References cmd(), in_button6, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 173 of file cl_input.c.
References cmd(), in_button6, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 174 of file cl_input.c.
References cmd(), in_button7, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 175 of file cl_input.c.
References cmd(), in_button7, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 176 of file cl_input.c.
References cmd(), in_button8, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 177 of file cl_input.c.
References cmd(), in_button8, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 179 of file cl_input.c.
References cmd(), in_button9, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 180 of file cl_input.c.
References cmd(), in_button9, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 135 of file cl_input.c.
References cmd(), in_down, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 136 of file cl_input.c.
References cmd(), in_down, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 141 of file cl_input.c.
References cmd(), in_forward, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 142 of file cl_input.c.
References cmd(), in_forward, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 199 of file cl_input.c.
References cmd(), Cmd_Argv(), and in_impulse.
Referenced by CL_InitInput().
|
static |
Definition at line 196 of file cl_input.c.
References cmd(), in_jump, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 197 of file cl_input.c.
References cmd(), in_jump, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 124 of file cl_input.c.
References cmd(), in_klook, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 125 of file cl_input.c.
References cmd(), in_klook, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 137 of file cl_input.c.
References cmd(), in_left, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 138 of file cl_input.c.
References cmd(), in_left, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 147 of file cl_input.c.
References cmd(), in_lookdown, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 148 of file cl_input.c.
References cmd(), in_lookdown, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 145 of file cl_input.c.
References cmd(), in_lookup, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 146 of file cl_input.c.
References cmd(), in_lookup, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 126 of file cl_input.c.
References cmd(), in_mlook, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 127 of file cl_input.c.
References cmd(), in_mlook, KeyUp(), lookspring, kbutton_t::state, V_StartPitchDrift_f(), and cvar_t::value.
Referenced by CL_InitInput().
|
static |
Definition at line 149 of file cl_input.c.
References cmd(), in_moveleft, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 150 of file cl_input.c.
References cmd(), in_moveleft, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 151 of file cl_input.c.
References cmd(), in_moveright, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 152 of file cl_input.c.
References cmd(), in_moveright, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 139 of file cl_input.c.
References cmd(), in_right, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 140 of file cl_input.c.
References cmd(), in_right, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 154 of file cl_input.c.
References cmd(), in_speed, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 155 of file cl_input.c.
References cmd(), in_speed, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 156 of file cl_input.c.
References cmd(), in_strafe, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 157 of file cl_input.c.
References cmd(), in_strafe, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 133 of file cl_input.c.
References cmd(), in_up, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 134 of file cl_input.c.
References cmd(), in_up, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 162 of file cl_input.c.
References cmd(), in_use, and KeyDown().
Referenced by CL_InitInput().
|
static |
Definition at line 163 of file cl_input.c.
References cmd(), in_use, and KeyUp().
Referenced by CL_InitInput().
|
static |
Definition at line 65 of file cl_input.c.
References b, cmd(), Cmd_Argv(), and Con_Print().
Referenced by IN_AttackDown(), IN_BackDown(), IN_Button10Down(), IN_Button11Down(), IN_Button12Down(), IN_Button13Down(), IN_Button14Down(), IN_Button15Down(), IN_Button16Down(), IN_Button3Down(), IN_Button4Down(), IN_Button5Down(), IN_Button6Down(), IN_Button7Down(), IN_Button8Down(), IN_Button9Down(), IN_DownDown(), IN_ForwardDown(), IN_JumpDown(), IN_KLookDown(), IN_LeftDown(), IN_LookdownDown(), IN_LookupDown(), IN_MLookDown(), IN_MoveleftDown(), IN_MoverightDown(), IN_RightDown(), IN_SpeedDown(), IN_StrafeDown(), IN_UpDown(), and IN_UseDown().
|
static |
Definition at line 94 of file cl_input.c.
References b, cmd(), and Cmd_Argv().
Referenced by IN_AttackUp(), IN_BackUp(), IN_Button10Up(), IN_Button11Up(), IN_Button12Up(), IN_Button13Up(), IN_Button14Up(), IN_Button15Up(), IN_Button16Up(), IN_Button3Up(), IN_Button4Up(), IN_Button5Up(), IN_Button6Up(), IN_Button7Up(), IN_Button8Up(), IN_Button9Up(), IN_DownUp(), IN_ForwardUp(), IN_JumpUp(), IN_KLookUp(), IN_LeftUp(), IN_LookdownUp(), IN_LookupUp(), IN_MLookUp(), IN_MoveleftUp(), IN_MoverightUp(), IN_RightUp(), IN_SpeedUp(), IN_StrafeUp(), IN_UpUp(), and IN_UseUp().
Definition at line 1695 of file cl_input.c.
References buf, usercmd_t::buttons, usercmd_t::forwardmove, usercmd_t::impulse, usercmd_t::msec, MSG_WriteAngle16i(), MSG_WriteByte(), MSG_WriteShort(), QW_CM_ANGLE1, QW_CM_ANGLE2, QW_CM_ANGLE3, QW_CM_BUTTONS, QW_CM_FORWARD, QW_CM_IMPULSE, QW_CM_SIDE, QW_CM_UP, usercmd_t::sidemove, usercmd_t::upmove, and usercmd_t::viewangles.
Referenced by CL_SendMove().
cvar_t cl_anglespeedkey = {CF_CLIENT | CF_ARCHIVE, "cl_anglespeedkey","1.5","how much +speed multiplies keyboard turning speed"} |
Definition at line 375 of file cl_input.c.
Referenced by CL_AdjustAngles(), and CL_Init().
cvar_t cl_backspeed = {CF_CLIENT | CF_ARCHIVE, "cl_backspeed","400","backward movement speed"} |
Definition at line 366 of file cl_input.c.
Referenced by CL_Init(), CL_Input(), and M_Menu_Options_AdjustSliders().
cvar_t cl_csqc_generatemousemoveevents = {CF_CLIENT, "cl_csqc_generatemousemoveevents", "1", "enables calls to CSQC_InputEvent with type 2, for compliance with EXT_CSQC spec"} |
Definition at line 420 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t cl_forwardspeed = {CF_CLIENT | CF_ARCHIVE, "cl_forwardspeed","400","forward movement speed"} |
Definition at line 365 of file cl_input.c.
Referenced by CL_Init(), CL_Input(), IN_Move_TouchScreen_Quake(), IN_Move_TouchScreen_SteelStorm(), M_Menu_Options_AdjustSliders(), M_Options_Draw(), V_DriftPitch(), and VID_ApplyJoyState().
int cl_ignoremousemoves = 2 |
Definition at line 474 of file cl_input.c.
Referenced by CL_Input(), VID_Mode(), VID_SetMouse(), and VM_CL_setcursormode().
cvar_t cl_movecliptokeyboard = {CF_CLIENT, "cl_movecliptokeyboard", "0", "if set to 1, any move is clipped to the nine keyboard states; if set to 2, only the direction is clipped, not the amount"} |
Definition at line 370 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t cl_movement = {CF_CLIENT | CF_ARCHIVE, "cl_movement", "0", "enables clientside prediction of your player movement on DP servers (use cl_nopred for QWSV servers)"} |
Definition at line 377 of file cl_input.c.
Referenced by CL_ClientMovement_Replay(), CL_InitInput(), and CL_SendMove().
cvar_t cl_movement_accelerate = {CF_CLIENT, "cl_movement_accelerate", "10", "how fast you accelerate (should match sv_accelerate)"} |
Definition at line 390 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movement_airaccel_qw = {CF_CLIENT, "cl_movement_airaccel_qw", "1", "ratio of QW-style air control as opposed to simple acceleration (reduces speed gain when zigzagging) (should match sv_airaccel_qw); when < 0, the speed is clamped against the maximum allowed forward speed after the move"} |
Definition at line 394 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movement_airaccel_sideways_friction = {CF_CLIENT, "cl_movement_airaccel_sideways_friction", "0", "anti-sideways movement stabilization (should match sv_airaccel_sideways_friction); when < 0, only so much friction is applied that braking (by accelerating backwards) cannot be stronger"} |
Definition at line 395 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movement_airaccelerate = {CF_CLIENT, "cl_movement_airaccelerate", "-1", "how fast you accelerate while in the air (should match sv_airaccelerate), if less than 0 the cl_movement_accelerate variable is used instead"} |
Definition at line 391 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movement_edgefriction = {CF_CLIENT, "cl_movement_edgefriction", "1", "how much to slow down when you may be about to fall off a ledge (should match edgefriction)"} |
Definition at line 388 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movement_friction = {CF_CLIENT, "cl_movement_friction", "4", "how fast you slow down (should match sv_friction)"} |
cvar_t cl_movement_jumpvelocity = {CF_CLIENT, "cl_movement_jumpvelocity", "270", "how fast you move upward when you begin a jump (should match the quakec code)"} |
Definition at line 393 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movement_maxairspeed = {CF_CLIENT, "cl_movement_maxairspeed", "30", "how fast you can move while in the air (should match sv_maxairspeed)"} |
Definition at line 383 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movement_maxspeed = {CF_CLIENT, "cl_movement_maxspeed", "320", "how fast you can move (should match sv_maxspeed)"} |
cvar_t cl_movement_minping = {CF_CLIENT | CF_ARCHIVE, "cl_movement_minping", "0", "whether to use prediction when ping is lower than this value in milliseconds"} |
Definition at line 380 of file cl_input.c.
Referenced by CL_ClientMovement_Replay(), and CL_InitInput().
cvar_t cl_movement_nettimeout = {CF_CLIENT | CF_ARCHIVE, "cl_movement_nettimeout", "0.3", "stops predicting moves when server is lagging badly (avoids major performance problems), timeout in seconds"} |
Definition at line 379 of file cl_input.c.
Referenced by CL_InitInput(), and CL_SendMove().
Definition at line 378 of file cl_input.c.
Referenced by CL_ClientMovement_Replay(), and CL_InitInput().
cvar_t cl_movement_stepheight = {CF_CLIENT, "cl_movement_stepheight", "18", "how tall a step you can step in one instant (should match sv_stepheight)"} |
Definition at line 389 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movement_stopspeed = {CF_CLIENT, "cl_movement_stopspeed", "100", "speed below which you will be slowed rapidly to a stop rather than sliding endlessly (should match sv_stopspeed)"} |
Definition at line 384 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movement_track_canjump = {CF_CLIENT | CF_ARCHIVE, "cl_movement_track_canjump", "1", "track if the player released the jump key between two jumps to decide if he is able to jump or not; when off, this causes some \"sliding\" slightly above the floor when the jump key is held too long; if the mod allows repeated jumping by holding space all the time, this has to be set to zero too"} |
Definition at line 381 of file cl_input.c.
Referenced by CL_ClientMovement_Physics_CheckJump(), and CL_InitInput().
cvar_t cl_movement_wallfriction = {CF_CLIENT, "cl_movement_wallfriction", "1", "how fast you slow down while sliding along a wall (should match sv_wallfriction)"} |
Definition at line 386 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movement_wateraccelerate = {CF_CLIENT, "cl_movement_wateraccelerate", "-1", "how fast you accelerate while in water (should match sv_wateraccelerate), if less than 0 the cl_movement_accelerate variable is used instead"} |
Definition at line 392 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movement_waterfriction = {CF_CLIENT, "cl_movement_waterfriction", "-1", "how fast you slow down (should match sv_waterfriction), if less than 0 the cl_movement_friction variable is used instead"} |
Definition at line 387 of file cl_input.c.
Referenced by CL_InitInput(), and CL_UpdateMoveVars().
cvar_t cl_movespeedkey = {CF_CLIENT | CF_ARCHIVE, "cl_movespeedkey","2.0","how much +speed multiplies keyboard movement speed"} |
Definition at line 369 of file cl_input.c.
Referenced by CL_Init(), and CL_Input().
cvar_t cl_netfps = {CF_CLIENT | CF_ARCHIVE, "cl_netfps","72", "how many input packets to send to server each second"} |
Definition at line 414 of file cl_input.c.
Referenced by CL_InitInput(), and CL_SendMove().
cvar_t cl_netimmediatebuttons = {CF_CLIENT | CF_ARCHIVE, "cl_netimmediatebuttons", "1", "sends extra packets whenever your buttons change or an impulse is used (basically: whenever you click fire or change weapon)"} |
Definition at line 416 of file cl_input.c.
Referenced by CL_InitInput(), and CL_SendMove().
cvar_t cl_netrepeatinput = {CF_CLIENT | CF_ARCHIVE, "cl_netrepeatinput", "1", "how many packets in a row can be lost without movement issues when using cl_movement (technically how many input messages to repeat in each packet that have not yet been acknowledged by the server), only affects DP7 and later servers (Quake uses 0, QuakeWorld uses 2, and just for comparison Quake3 uses 1)"} |
Definition at line 415 of file cl_input.c.
Referenced by CL_InitInput(), and CL_SendMove().
cvar_t cl_nodelta = {CF_CLIENT, "cl_nodelta", "0", "disables delta compression of non-player entities in QW network protocol"} |
Definition at line 418 of file cl_input.c.
Referenced by CL_InitInput(), and CL_SendMove().
cvar_t cl_nopred = {CF_CLIENT | CF_ARCHIVE, "cl_nopred", "0", "(QWSV only) disables player movement prediction when playing on QWSV servers (this setting is separate from cl_movement because player expectations are different when playing on DP vs QW servers)"} |
Definition at line 396 of file cl_input.c.
Referenced by CL_InitInput(), and CL_SendMove().
cvar_t cl_pitchspeed = {CF_CLIENT | CF_ARCHIVE, "cl_pitchspeed","150","keyboard pitch turning speed"} |
Definition at line 373 of file cl_input.c.
Referenced by CL_AdjustAngles(), CL_Init(), IN_Move_TouchScreen_Quake(), IN_Move_TouchScreen_SteelStorm(), and VID_ApplyJoyState().
cvar_t cl_sidespeed = {CF_CLIENT | CF_ARCHIVE, "cl_sidespeed","350","strafe movement speed"} |
Definition at line 367 of file cl_input.c.
Referenced by CL_Init(), CL_Input(), IN_Move_TouchScreen_Quake(), IN_Move_TouchScreen_SteelStorm(), and VID_ApplyJoyState().
cvar_t cl_upspeed = {CF_CLIENT | CF_ARCHIVE, "cl_upspeed","400","vertical movement speed (while swimming or flying)"} |
Definition at line 364 of file cl_input.c.
Referenced by CL_Init(), CL_Input(), and VID_ApplyJoyState().
cvar_t cl_yawspeed = {CF_CLIENT | CF_ARCHIVE, "cl_yawspeed","140","keyboard yaw turning speed"} |
Definition at line 372 of file cl_input.c.
Referenced by CL_AdjustAngles(), CL_Init(), IN_Move_TouchScreen_Quake(), IN_Move_TouchScreen_SteelStorm(), and VID_ApplyJoyState().
|
extern |
Definition at line 228 of file sv_main.c.
Referenced by CL_Frame(), CL_UpdateMoveVars(), and SV_WriteClientdataToMessage().
kbutton_t in_attack |
Definition at line 54 of file cl_input.c.
Referenced by CL_SendMove(), IN_AttackDown(), and IN_AttackUp().
kbutton_t in_back |
Definition at line 52 of file cl_input.c.
Referenced by CL_AdjustAngles(), CL_Input(), IN_BackDown(), and IN_BackUp().
in_bestweapon_info_t in_bestweapon_info[IN_BESTWEAPON_MAX] |
Definition at line 201 of file cl_input.c.
Referenced by IN_BestWeapon_f(), IN_BestWeapon_Register(), IN_BestWeapon_Register_f(), and IN_BestWeapon_ResetData().
kbutton_t in_button10 |
Definition at line 59 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button10Down(), and IN_Button10Up().
kbutton_t in_button11 |
Definition at line 59 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button11Down(), and IN_Button11Up().
kbutton_t in_button12 |
Definition at line 59 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button12Down(), and IN_Button12Up().
kbutton_t in_button13 |
Definition at line 59 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button13Down(), and IN_Button13Up().
kbutton_t in_button14 |
Definition at line 59 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button14Down(), and IN_Button14Up().
kbutton_t in_button15 |
Definition at line 59 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button15Down(), and IN_Button15Up().
kbutton_t in_button16 |
Definition at line 59 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button16Down(), and IN_Button16Up().
kbutton_t in_button3 |
Definition at line 57 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button3Down(), and IN_Button3Up().
kbutton_t in_button4 |
Definition at line 57 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button4Down(), and IN_Button4Up().
kbutton_t in_button5 |
Definition at line 57 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button5Down(), and IN_Button5Up().
kbutton_t in_button6 |
Definition at line 57 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button6Down(), and IN_Button6Up().
kbutton_t in_button7 |
Definition at line 57 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button7Down(), and IN_Button7Up().
kbutton_t in_button8 |
Definition at line 57 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button8Down(), and IN_Button8Up().
kbutton_t in_button9 |
Definition at line 59 of file cl_input.c.
Referenced by CL_SendMove(), IN_Button9Down(), and IN_Button9Up().
kbutton_t in_down |
Definition at line 55 of file cl_input.c.
Referenced by CL_Input(), IN_DownDown(), and IN_DownUp().
kbutton_t in_forward |
Definition at line 52 of file cl_input.c.
Referenced by CL_AdjustAngles(), CL_Input(), IN_ForwardDown(), and IN_ForwardUp().
int in_impulse |
Definition at line 61 of file cl_input.c.
Referenced by CL_SendMove(), IN_BestWeapon_f(), and IN_Impulse().
kbutton_t in_jump |
Definition at line 54 of file cl_input.c.
Referenced by CL_SendMove(), IN_JumpDown(), and IN_JumpUp().
kbutton_t in_klook |
Definition at line 51 of file cl_input.c.
Referenced by CL_AdjustAngles(), CL_Input(), IN_KLookDown(), and IN_KLookUp().
kbutton_t in_left |
Definition at line 52 of file cl_input.c.
Referenced by CL_AdjustAngles(), CL_Input(), IN_LeftDown(), and IN_LeftUp().
kbutton_t in_lookdown |
Definition at line 53 of file cl_input.c.
Referenced by CL_AdjustAngles(), IN_LookdownDown(), and IN_LookdownUp().
kbutton_t in_lookup |
Definition at line 53 of file cl_input.c.
Referenced by CL_AdjustAngles(), IN_LookupDown(), and IN_LookupUp().
kbutton_t in_mlook |
Definition at line 51 of file cl_input.c.
Referenced by CL_Input(), IN_MLookDown(), and IN_MLookUp().
kbutton_t in_moveleft |
Definition at line 53 of file cl_input.c.
Referenced by CL_Input(), IN_MoveleftDown(), and IN_MoveleftUp().
kbutton_t in_moveright |
Definition at line 53 of file cl_input.c.
Referenced by CL_Input(), IN_MoverightDown(), and IN_MoverightUp().
cvar_t in_pitch_max = {CF_CLIENT, "in_pitch_max", "90", "how far you can aim downward (quake used 80)"} |
cvar_t in_pitch_min = {CF_CLIENT, "in_pitch_min", "-90", "how far you can aim upward (quake used -70)"} |
kbutton_t in_right |
Definition at line 52 of file cl_input.c.
Referenced by CL_AdjustAngles(), CL_Input(), IN_RightDown(), and IN_RightUp().
kbutton_t in_speed |
Definition at line 54 of file cl_input.c.
Referenced by CL_AdjustAngles(), CL_Input(), IN_SpeedDown(), and IN_SpeedUp().
kbutton_t in_strafe |
Definition at line 54 of file cl_input.c.
Referenced by CL_AdjustAngles(), CL_Input(), IN_StrafeDown(), and IN_StrafeUp().
kbutton_t in_up |
Definition at line 55 of file cl_input.c.
Referenced by CL_Input(), IN_UpDown(), and IN_UpUp().
kbutton_t in_use |
Definition at line 54 of file cl_input.c.
Referenced by CL_SendMove(), IN_UseDown(), and IN_UseUp().
cvar_t m_accelerate = {CF_CLIENT | CF_ARCHIVE, "m_accelerate","1", "linear mouse acceleration factor (set to 1 to disable the linear acceleration and use only the power or natural acceleration; set to 0 to disable all acceleration)"} |
Definition at line 402 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t m_accelerate_filter = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_filter","0", "linear mouse acceleration factor filtering lowpass constant in seconds (set to 0 for no filtering)"} |
Definition at line 405 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t m_accelerate_maxspeed = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_maxspeed","10000", "above this speed in px/s, full acceleration is done, with a linear slope between (applied only on linear acceleration)"} |
Definition at line 404 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t m_accelerate_minspeed = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_minspeed","5000", "below this speed in px/s, no acceleration is done, with a linear slope between (applied only on linear acceleration)"} |
Definition at line 403 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t m_accelerate_natural_accelsenscap = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_natural_accelsenscap", "0", "Horizontal asymptote that sets the maximum value for the natural mouse acceleration curve, value 2, for example, means that the maximum sensitivity is 2 times the base sensitivity"} |
Definition at line 411 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t m_accelerate_natural_offset = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_natural_offset", "0", "below this speed in px/ms, no natural acceleration is done"} |
Definition at line 412 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t m_accelerate_natural_strength = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_natural_strength", "0", "How quickly the accelsensitivity approaches the m_accelerate_natural_accelsenscap, values are compressed between 0 and 1 but higher numbers are allowed"} |
Definition at line 410 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t m_accelerate_power = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_power","2", "acceleration power (must be above 1 to be useful)"} |
Definition at line 407 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t m_accelerate_power_offset = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_power_offset","0", "below this speed in px/ms, no power acceleration is done"} |
Definition at line 406 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t m_accelerate_power_senscap = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_power_senscap", "0", "maximum acceleration factor generated by power acceleration; use 0 for unbounded"} |
Definition at line 408 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t m_accelerate_power_strength = {CF_CLIENT | CF_ARCHIVE, "m_accelerate_power_strength", "0", "strength of the power mouse acceleration effect"} |
Definition at line 409 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
cvar_t m_filter = {CF_CLIENT | CF_ARCHIVE, "m_filter","0", "smoothes mouse movement, less responsive but smoother aiming"} |
Definition at line 401 of file cl_input.c.
Referenced by CL_InitInput(), and CL_Input().
usercmd_t nullcmd |
Definition at line 1770 of file cl_input.c.
Referenced by CL_SendMove().
|
static |
Definition at line 838 of file cl_input.c.
Referenced by CL_ClientMovement_Unstick(), Mod_GenerateLightmaps_SamplePoint(), and RSurf_PrepareVerticesForBatch().
|
extern |