![]() |
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 | DEBUGMOVES 0 |
#define | MAX_FORWARD 6 |
Functions | |
static void | DropPunchAngle (void) |
static void | SV_Accelerate (void) |
static void | SV_AirAccelerate (vec3_t wishveloc) |
static void | SV_AirMove (void) |
void | SV_ApplyClientMove (void) |
void | SV_Begin_f (cmd_state_t *cmd) |
static void | SV_ExecuteClientMoves (void) |
static void | SV_FrameAck (int framenum) |
static qbool | SV_FrameLost (int framenum) |
void | SV_PlayerPhysics (void) |
void | SV_PreSpawn_f (cmd_state_t *cmd) |
void | SV_ReadClientMessage (void) |
static void | SV_ReadClientMove (void) |
void | SV_SetIdealPitch (void) |
void | SV_Spawn_f (cmd_state_t *cmd) |
static void | SV_UserFriction (void) |
static void | SV_WaterJump (void) |
static void | SV_WaterMove (void) |
Variables | |
static vec3_t | forward |
static qbool | onground |
static vec3_t | right |
cvar_t | sv_autodemo_perclient |
cvar_t | sv_gameplayfix_q2airaccelerate |
int | sv_numreadmoves = 0 |
usercmd_t | sv_readmoves [CL_MAX_USERCMDS] |
cvar_t | sv_rollangle |
cvar_t | sv_rollspeed |
static vec3_t | up |
static usercmd_t | usercmd |
static vec3_t | wishdir |
static float | wishspeed |
#define MAX_FORWARD 6 |
Definition at line 238 of file sv_user.c.
Referenced by SV_SetIdealPitch().
Definition at line 398 of file sv_user.c.
References client_t::edict, server_t::frametime, host_client, PRVM_serveredictvector, punchangle, punchvector, sv, SVVM_prog, VectorCopy, VectorNormalizeLength(), and VectorScale.
Referenced by SV_PlayerPhysics().
Definition at line 357 of file sv_user.c.
References DotProduct, client_t::edict, server_t::frametime, host_client, i, PRVM_serveredictvector, sv, sv_accelerate, SVVM_prog, cvar_t::value, velocity, wishdir, and wishspeed.
Referenced by SV_AirMove().
Definition at line 376 of file sv_user.c.
References DotProduct, client_t::edict, server_t::frametime, host_client, i, cvar_t::integer, PRVM_serveredictvector, sv, sv_accelerate, sv_airaccelerate, sv_gameplayfix_q2airaccelerate, sv_maxairspeed, SVVM_prog, cvar_t::value, VectorNormalizeLength(), velocity, and wishspeed.
Referenced by SV_AirMove().
Definition at line 512 of file sv_user.c.
References angles, AngleVectors(), client_t::edict, forward, usercmd_t::forwardmove, host_client, i, movetype, MOVETYPE_NOCLIP, MOVETYPE_WALK, onground, PRVM_serveredictfloat, PRVM_serveredictvector, right, usercmd_t::sidemove, sv, SV_Accelerate(), SV_AirAccelerate(), sv_maxspeed, SV_UserFriction(), SVVM_prog, teleport_time, server_t::time, up, usercmd_t::upmove, usercmd, cvar_t::value, VectorCopy, VectorNormalizeLength(), VectorScale, velocity, wishdir, and wishspeed.
Referenced by SV_PlayerPhysics().
Definition at line 893 of file sv_user.c.
References usercmd_t::applied, button0, button10, button11, button12, button13, button14, button15, button16, button2, button3, button4, button5, button6, button7, button8, button9, buttonchat, usercmd_t::buttons, buttonuse, client_t::cmd, cursor_active, usercmd_t::cursor_entitynumber, usercmd_t::cursor_impact, cursor_screen, usercmd_t::cursor_screen, usercmd_t::cursor_start, cursor_trace_endpos, cursor_trace_ent, cursor_trace_start, client_t::edict, float, usercmd_t::forwardmove, host_client, impulse, usercmd_t::impulse, netconn_t::incoming_netgraph, movement, client_t::movement_count, client_t::netconnection, NETGRAPH_LOSTPACKET, NETGRAPH_PACKETS, client_t::ping, ping, ping_movementloss, ping_packetloss, PRVM_EDICT_NUM, PRVM_EDICT_TO_PROG, PRVM_serveredictedict, PRVM_serveredictfloat, PRVM_serveredictvector, usercmd_t::receivetime, usercmd_t::sidemove, SVVM_prog, netgraphitem_t::unreliablebytes, usercmd_t::upmove, v_angle, VectorCopy, VectorSet, and usercmd_t::viewangles.
Referenced by SV_PlayerPhysics().
void SV_Begin_f | ( | cmd_state_t * | cmd | ) |
Definition at line 204 of file sv_user.c.
References client_t::begun, server_static_t::clients, Con_Print(), Con_Printf(), host_client, i, server_t::loadgame, server_static_t::maxclients, server_t::paused, client_t::spawned, sv, and svs.
Referenced by SV_InitOperatorCommands().
Definition at line 775 of file sv_user.c.
References client_t::begun, bound, usercmd_t::buttons, ceil(), client_t::clmovement_disabletimeout, client_t::clmovement_inputtimeout, client_t::cmd, Con_Printf(), disableclientprediction, client_t::edict, floor(), usercmd_t::forwardmove, frametime, server_t::frametime, host, host_client, usercmd_t::impulse, cvar_t::integer, max, min, client_t::movement_count, client_t::movesequence, movetype, MOVETYPE_WALK, NETGRAPH_PACKETS, client_t::ping, PRVM_serveredictfloat, PRVM_serverglobalfloat, host_static_t::realtime, usercmd_t::receivetime, usercmd_t::sequence, usercmd_t::sidemove, sv, sv_clmovement_enable, sv_clmovement_inputtimeout, sv_clmovement_minping, sv_clmovement_minping_disabletime, sv_numreadmoves, SV_Physics_ClientMove(), sv_readmoves, SVVM_prog, sys_ticrate, server_t::time, time, usercmd_t::time, usercmd_t::upmove, cvar_t::value, and usercmd_t::viewangles.
Referenced by SV_ReadClientMessage().
Definition at line 970 of file sv_user.c.
References client_t::entitydatabase, client_t::entitydatabase4, client_t::entitydatabase5, EntityFrame4_AckFrame(), EntityFrame5_AckFrame(), EntityFrame_AckFrame(), and host_client.
Referenced by SV_ReadClientMessage().
Definition at line 956 of file sv_user.c.
References client_t::entitydatabase5, EntityFrame5_LostFrame(), EntityFrameCSQC_LostFrame(), and host_client.
Referenced by SV_ReadClientMessage().
Definition at line 571 of file sv_user.c.
References angles, client_t::cmd, Com_CalcRoll(), DropPunchAngle(), client_t::edict, prvm_prog_t::ExecuteProgram, fixangle, FL_ONGROUND, FL_WATERJUMP, flags, health, host_client, int(), cvar_t::integer, movetype, MOVETYPE_NOCLIP, MOVETYPE_NONE, onground, PITCH, PRVM_EDICT_TO_PROG, PRVM_serveredictfloat, PRVM_serveredictvector, PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, punchangle, ROLL, self, sv, SV_AirMove(), SV_ApplyClientMove(), SV_CheckVelocity(), SV_PlayerPhysics(), sv_playerphysicsqc, sv_rollangle, sv_rollspeed, SV_WaterJump(), SV_WaterMove(), SVVM_prog, server_t::time, time, usercmd, v_angle, cvar_t::value, VectorAdd, VectorCopy, velocity, waterlevel, and YAW.
Referenced by SV_Physics_ClientEntity_PreThink(), SV_Physics_ClientMove(), and SV_PlayerPhysics().
void SV_PreSpawn_f | ( | cmd_state_t * | cmd | ) |
Definition at line 36 of file sv_user.c.
References Con_Print(), sizebuf_t::cursize, sizebuf_t::data, host_client, netconn_t::message, MSG_WriteByte(), client_t::nametime, client_t::netconnection, client_t::prespawned, client_t::sendsignon, server_t::signon, sv, svc_signonnum, and SZ_Write().
Referenced by SV_InitOperatorCommands().
Definition at line 985 of file sv_user.c.
References client_t::active, sizebuf_t::badread, client_t::begun, clc_ackdownloaddata, clc_ackframe, clc_disconnect, clc_move, clc_nop, clc_stringcmd, Cmd_ExecuteString(), cmd_serverfromclient, Com_HexDumpToConsole(), Con_DPrintf(), Con_Print(), Con_Printf(), CRC_Block(), sizebuf_t::cursize, sizebuf_t::data, developer, developer_networkentities, developer_networking, client_t::download_expectedposition, client_t::download_file, client_t::download_name, client_t::download_started, client_t::edict, prvm_prog_t::ExecuteProgram, FS_Close(), FS_FileSize(), FS_Read(), FS_Seek(), host_client, i, int(), cvar_t::integer, client_t::latestframenum, Mem_Alloc, Mem_Free, netconn_t::message, MSG_ReadByte, MSG_ReadLong, MSG_ReadShort, MSG_ReadString(), MSG_ReadString_len(), client_t::name, client_t::netconnection, NULL, OFS_PARM0, server_t::protocol, PROTOCOL_DARKPLACES8, PRVM_EDICT_TO_PROG, PRVM_G_INT, PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, PRVM_SetTempString(), sizebuf_t::readcount, self, client_t::sendsignon, size, src_client, strlen(), sv, sv_autodemo_perclient, SV_ClientCommands(), SV_DropClient(), SV_ExecuteClientMoves(), SV_FrameAck(), SV_FrameLost(), sv_message, sv_numreadmoves, SV_ReadClientMove(), sv_readstring, SV_WriteDemoMessage(), SVVM_prog, tempmempool, prvm_prog_t::tempstringsbuf, server_t::time, and time.
Referenced by NetConn_ServerParsePacket().
Definition at line 643 of file sv_user.c.
References usercmd_t::applied, sizebuf_t::badread, client_t::begun, usercmd_t::buttons, CL_MAX_USERCMDS, client_t::cmd, Con_DPrintf(), Con_Printf(), usercmd_t::cursor_entitynumber, usercmd_t::cursor_impact, usercmd_t::cursor_screen, usercmd_t::cursor_start, float, floor(), usercmd_t::forwardmove, server_t::frametime, host_client, i, usercmd_t::impulse, prvm_prog_t::max_edicts, min, client_t::movement_count, client_t::movement_highestsequence_seen, MSG_ReadAngle16i(), MSG_ReadAngle32f(), MSG_ReadAngle8i(), MSG_ReadByte, MSG_ReadCoord16i(), MSG_ReadFloat, MSG_ReadLong, MSG_ReadShort, NETGRAPH_PACKETS, server_t::protocol, PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_DARKPLACES5, PROTOCOL_DARKPLACES6, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, PRVM_EDICT_NUM, usercmd_t::receivetime, usercmd_t::sequence, usercmd_t::sidemove, sv, sv_message, sv_numreadmoves, sv_readmoves, SVVM_prog, server_t::time, usercmd_t::time, usercmd_t::upmove, and usercmd_t::viewangles.
Referenced by SV_ReadClientMessage().
Definition at line 239 of file sv_user.c.
References angles, collision_extendmovelength, cos(), dir, client_t::edict, FL_ONGROUND, flags, trace_t::fraction, host_client, i, idealpitch, M_PI, MAX_FORWARD, MOVE_NOMONSTERS, ON_EPSILON, origin, PRVM_serveredictfloat, PRVM_serveredictvector, sin(), trace_t::startsolid, SUPERCONTENTS_SOLID, sv_idealpitchscale, SV_TraceLine(), SVVM_prog, cvar_t::value, view_ofs, YAW, and z.
Referenced by SV_WriteClientdataToMessage().
void SV_Spawn_f | ( | cmd_state_t * | cmd | ) |
Definition at line 62 of file sv_user.c.
References client_t::active, angles, client_t::clientconnectcalled, server_static_t::clients, client_t::colors, Con_DPrint(), Con_Print(), Con_Printf(), client_t::edict, prvm_prog_t::ExecuteProgram, found_secrets, client_t::frags, host_client, i, killed_monsters, server_t::lightstyles, server_t::loadgame, MAX_CL_STATS, MAX_LIGHTSTYLES, server_static_t::maxclients, netconn_t::message, MSG_WriteAngle(), MSG_WriteByte(), MSG_WriteFloat(), MSG_WriteLong(), MSG_WriteShort(), MSG_WriteString(), client_t::name, client_t::nametime, client_t::netconnection, NUM_SPAWN_PARMS, parm1, client_t::prespawned, server_t::protocol, PRVM_EDICT_TO_PROG, PRVM_serveredictvector, PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, self, client_t::spawn_parms, client_t::spawned, STAT_MONSTERS, STAT_SECRETS, STAT_TOTALMONSTERS, STAT_TOTALSECRETS, sv, SV_WriteClientdataToMessage(), svc_lightstyle, svc_setangle, svc_signonnum, svc_time, svc_updatecolors, svc_updatefrags, svc_updatename, svc_updatestat, svs, SVVM_prog, server_t::time, time, total_monsters, total_secrets, and v_angle.
Referenced by SV_InitOperatorCommands().
Definition at line 316 of file sv_user.c.
References collision_extendmovelength, client_t::edict, trace_t::fraction, server_t::frametime, friction, host_client, mins, MOVE_NOMONSTERS, origin, PRVM_serveredictvector, sv, sv_edgefriction, sv_friction, SV_GenericHitSuperContentsMask(), sv_stopspeed, SV_TraceLine(), SVVM_prog, cvar_t::value, Vector2Length, VectorScale, and velocity.
Referenced by SV_AirMove().
Definition at line 493 of file sv_user.c.
References client_t::edict, flags, host_client, int(), movedir, PRVM_serveredictfloat, PRVM_serveredictvector, sv, SVVM_prog, teleport_time, server_t::time, velocity, and waterlevel.
Referenced by SV_PlayerPhysics().
Definition at line 435 of file sv_user.c.
References AngleVectors(), client_t::edict, forward, usercmd_t::forwardmove, server_t::frametime, host_client, i, PRVM_serveredictvector, right, usercmd_t::sidemove, sv, sv_accelerate, sv_friction, sv_maxspeed, sv_wateraccelerate, sv_waterfriction, SVVM_prog, up, usercmd_t::upmove, usercmd, v_angle, cvar_t::value, VectorCopy, VectorLength, VectorNormalize, VectorScale, and velocity.
Referenced by SV_PlayerPhysics().
|
static |
Definition at line 305 of file sv_user.c.
Referenced by AnglesFromVectors(), AngleVectors(), AngleVectorsDuke3DFLU(), AngleVectorsFLU(), CL_ClientMovement_Physics_Swim(), CL_ClientMovement_Physics_Walk(), CL_GetEntityMatrix(), CL_IsMoveInDirection(), CL_NewParticlesFromEffectinfo(), CL_RelinkBeams(), CL_VM_TransformView(), Com_CalcRoll(), M_Setup_Key(), Matrix4x4_QuakeToDuke3D(), Mod_GenerateLightmaps_CreateLightmaps(), R_HDR_UpdateIrisAdaptation(), R_View_SetFrustum(), RSurf_PrepareVerticesForBatch(), SV_AirMove(), SV_PushMove(), SV_WallFriction(), SV_WaterMove(), V_CalcRefdefUsing(), V_MakeViewIsometric(), VectorVectors(), VectorVectorsDouble(), VM_CL_GetEntity(), VM_CL_gettaginfo(), VM_CL_makestatic(), VM_CL_makevectors(), VM_CL_R_AddDynamicLight(), VM_CL_setlistener(), VM_CL_skel_get_boneabs(), VM_CL_skel_get_bonerel(), VM_CL_skel_mul_bone(), VM_CL_skel_mul_bones(), VM_CL_skel_set_bone(), VM_makevectors(), VM_SV_gettaginfo(), VM_SV_skel_get_boneabs(), VM_SV_skel_get_bonerel(), VM_SV_skel_mul_bone(), VM_SV_skel_mul_bones(), VM_SV_skel_set_bone(), VM_vectoangles(), and VM_vectorvectors().
|
static |
Definition at line 308 of file sv_user.c.
Referenced by SV_AirMove(), and SV_PlayerPhysics().
|
static |
Definition at line 305 of file sv_user.c.
Referenced by AngleVectors(), CL_Beam_AddPolygons(), CL_ClientMovement_Physics_Swim(), CL_ClientMovement_Physics_Walk(), CL_NewParticlesFromEffectinfo(), Com_CalcRoll(), Font_GetKerningForMap(), Font_GetKerningForSize(), FS_AddFileToPack(), FS_FindFile(), FS_IsRegisteredQuakePack(), R_DrawParticle_TransparentCallback(), R_Viewport_InitOrtho(), RSurf_PrepareVerticesForBatch(), SV_AirMove(), SV_WaterMove(), V_CalcRefdefUsing(), VectorVectors(), VectorVectorsDouble(), VM_CL_makevectors(), VM_makevectors(), and VM_vectorvectors().
|
extern |
Definition at line 211 of file sv_main.c.
Referenced by SV_Init(), SV_ReadClientMessage(), and SV_SendServerinfo().
|
extern |
int sv_numreadmoves = 0 |
Definition at line 641 of file sv_user.c.
Referenced by SV_ExecuteClientMoves(), SV_ReadClientMessage(), and SV_ReadClientMove().
usercmd_t sv_readmoves[CL_MAX_USERCMDS] |
Definition at line 642 of file sv_user.c.
Referenced by SV_ExecuteClientMoves(), and SV_ReadClientMove().
|
extern |
|
extern |
|
static |
Definition at line 305 of file sv_user.c.
Referenced by AnglesFromVectors(), AngleVectors(), AngleVectorsDuke3DFLU(), AngleVectorsFLU(), CL_AdjustAngles(), CL_Beam_AddPolygons(), CL_ClientMovement_Physics_Swim(), CL_ClientMovement_Physics_Walk(), CL_GetEntityMatrix(), CL_NewParticlesFromEffectinfo(), CL_VM_TransformView(), Com_CalcRoll(), Matrix4x4_QuakeToDuke3D(), Mod_GenerateLightmaps_CreateLightmaps(), R_CalcSprite_Vertex3f(), R_DrawParticle_TransparentCallback(), R_Model_Sprite_Draw_TransparentCallback(), R_RotateSprite(), R_TrackSprite(), R_View_SetFrustum(), RSurf_PrepareVerticesForBatch(), SV_AirMove(), SV_PushMove(), SV_WaterMove(), V_CalcRefdefUsing(), V_MakeViewIsometric(), VectorVectors(), VectorVectorsDouble(), VM_CL_GetEntity(), VM_CL_gettaginfo(), VM_CL_makestatic(), VM_CL_makevectors(), VM_CL_R_AddDynamicLight(), VM_CL_setlistener(), VM_CL_skel_get_boneabs(), VM_CL_skel_get_bonerel(), VM_CL_skel_mul_bone(), VM_CL_skel_mul_bones(), VM_CL_skel_set_bone(), VM_makevectors(), VM_SV_gettaginfo(), VM_SV_skel_get_boneabs(), VM_SV_skel_get_bonerel(), VM_SV_skel_mul_bone(), VM_SV_skel_mul_bones(), VM_SV_skel_set_bone(), VM_vectoangles(), and VM_vectorvectors().
|
static |
Definition at line 26 of file sv_user.c.
Referenced by SV_AirMove(), SV_PlayerPhysics(), and SV_WaterMove().
|
static |
Definition at line 305 of file sv_user.c.
Referenced by CL_ClientMovement_Physics_CPM_PM_Aircontrol(), CL_ClientMovement_Physics_PM_Accelerate(), CL_ClientMovement_Physics_PM_AirAccelerate(), CL_ClientMovement_Physics_Swim(), CL_ClientMovement_Physics_Walk(), SV_Accelerate(), and SV_AirMove().
|
static |
Definition at line 306 of file sv_user.c.
Referenced by CL_ClientMovement_Physics_CPM_PM_Aircontrol(), CL_ClientMovement_Physics_PM_Accelerate(), CL_ClientMovement_Physics_PM_AirAccelerate(), CL_ClientMovement_Physics_Swim(), CL_ClientMovement_Physics_Walk(), CL_Input(), SV_Accelerate(), SV_AirAccelerate(), SV_AirMove(), and SV_CheckVelocity().