![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Variables | |
int | current_skill |
skill level for currently loaded level (in case the user changes the cvar while the level is running, this reflects the level actually in use) | |
qbool | noclip_anglehack |
cvar_t | sv_adminnick = {CF_SERVER | CF_ARCHIVE, "sv_adminnick", "", "nick name to use for admin messages instead of host name"} |
cvar_t | sv_cheats = {CF_SERVER | CF_NOTIFY, "sv_cheats", "0", "enables cheat commands in any game, and cheat impulses in dpmod"} |
cvar_t | sv_namechangetimer = {CF_SERVER | CF_ARCHIVE, "sv_namechangetimer", "5", "how often to allow name changes, in seconds (prevents people from using animated names and other tricks"} |
cvar_t | sv_status_privacy = {CF_SERVER | CF_ARCHIVE, "sv_status_privacy", "0", "do not show IP addresses in 'status' replies to clients"} |
cvar_t | sv_status_show_qcstatus = {CF_SERVER | CF_ARCHIVE, "sv_status_show_qcstatus", "0", "show the 'qcstatus' field in status replies, not the 'frags' field. Turn this on if your mod uses this field, and the 'frags' field on the other hand has no meaningful value."} |
|
static |
Definition at line 1283 of file sv_ccmds.c.
References classname, Con_Print(), i, NULL, prvm_prog_t::num_edicts, PRVM_EDICT_NUM, PRVM_GetString(), and PRVM_serveredictstring.
Referenced by SV_Viewframe_f(), SV_Viewmodel_f(), SV_Viewnext_f(), and SV_Viewprev_f().
Definition at line 1354 of file sv_ccmds.c.
References model_t::animscenes, Con_Printf(), frame, and animscene_t::name.
Referenced by SV_Viewnext_f(), and SV_Viewprev_f().
|
static |
Definition at line 93 of file sv_ccmds.c.
References server_t::active, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Print(), host_static_t::ConnectLocal, host_static_t::hook, host, NULL, sv, SV_Map_f(), SV_SaveSpawnparms(), SV_SpawnServer(), and host_static_t::ToggleMenu.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1013 of file sv_ccmds.c.
References clientcolors, server_static_t::clients, cmd(), Cmd_Argv(), client_t::colors, Con_DPrint(), client_t::edict, prvm_prog_t::ExecuteProgram, prvm_prog_t::fp, prvm_prog_t::globals, host_client, MSG_WriteByte(), OFS_PARM0, client_t::old_colors, PRVM_EDICT_TO_PROG, PRVM_serveredictfloat, PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, server_t::reliable_datagram, self, sv, svc_updatecolors, svs, SVVM_prog, team, server_t::time, and time.
Referenced by SV_InitOperatorCommands().
Definition at line 149 of file sv_ccmds.c.
References server_static_t::clients, FL_GODMODE, FL_NOTARGET, flags, i, int(), prvm_prog_t::loaded, server_static_t::maxclients, movetype, MOVETYPE_FLY, MOVETYPE_NOCLIP, MOVETYPE_WALK, noclip_anglehack, PRVM_serveredictfloat, svs, SVVM_prog, and cvar_t::value.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1444 of file sv_ccmds.c.
References buf, cmd(), Cmd_Argc(), Cmd_Argv(), collision_extendmovelength, Con_Printf(), dpsnprintf(), client_t::edict, trace_t::endpos, host_client, i, Matrix4x4_OriginFromMatrix(), Matrix4x4_Transform(), MOVE_NORMAL, client_t::name, NULL, print(), PRVM_ED_Alloc(), PRVM_ED_CallPostspawnFunction(), PRVM_ED_CallPrespawnFunction(), PRVM_ED_CallSpawnFunction(), PRVM_ED_FindField(), PRVM_ED_Free(), PRVM_ED_ParseEpair(), src_client, SUPERCONTENTS_SOLID, SV_ClientPrintf(), SV_GetEntityMatrix(), SV_LinkEdict(), SV_TraceLine(), SVVM_prog, cvar_t::value, VectorSet, and void().
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1612 of file sv_ccmds.c.
References classname, cmd(), Cmd_Argv(), Con_Printf(), prvm_edict_t::free, i, prvm_prog_t::num_edicts, print(), PRVM_ED_ClearEdict(), PRVM_ED_Free(), PRVM_EDICT_NUM, PRVM_GetString(), PRVM_NEXT_EDICT, PRVM_serveredictstring, src_client, SV_ClientPrintf(), SVVM_prog, and void().
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1538 of file sv_ccmds.c.
References classname, server_static_t::clients, cmd(), Cmd_Argc(), Cmd_Argv(), collision_extendmovelength, Con_Printf(), client_t::edict, trace_t::ent, prvm_edict_t::free, host_client, i, int(), Matrix4x4_OriginFromMatrix(), Matrix4x4_Transform(), server_static_t::maxclients, MOVE_NORMAL, NULL, print(), PRVM_ED_ClearEdict(), PRVM_ED_Free(), PRVM_EDICT_NUM, PRVM_EDICT_TO_PROG, PRVM_GetString(), PRVM_serveredictstring, src_client, SUPERCONTENTS_BODY, SUPERCONTENTS_SOLID, SV_ClientPrintf(), SV_GetEntityMatrix(), SV_TraceLine(), svs, SVVM_prog, cvar_t::value, VectorSet, and void().
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 383 of file sv_ccmds.c.
References client_t::edict, host_client, movetype, MOVETYPE_FLY, MOVETYPE_WALK, PRVM_serveredictfloat, SV_ClientPrint(), and SVVM_prog.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 215 of file sv_ccmds.c.
References ammo_cells, ammo_nails, ammo_rockets, ammo_shells, armortype, armorvalue, cmd(), Cmd_Argv(), client_t::edict, GAME_HIPNOTIC, GAME_QUOTH, GAME_ROGUE, gamemode, health, HIT_LASER_CANNON, HIT_MJOLNIR, HIT_PROXIMITY_GUN, host_client, int(), IT_ARMOR1, IT_ARMOR2, IT_ARMOR3, IT_GRENADE_LAUNCHER, IT_LIGHTNING, IT_SHOTGUN, items, PRVM_serveredictfloat, RIT_ARMOR1, RIT_ARMOR2, RIT_ARMOR3, SVVM_prog, v, and weapon.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 179 of file sv_ccmds.c.
References client_t::edict, FL_GODMODE, flags, host_client, int(), PRVM_serveredictfloat, SV_ClientPrint(), and SVVM_prog.
Referenced by SV_InitOperatorCommands().
Definition at line 1640 of file sv_ccmds.c.
References CF_CHEAT, CF_SERVER, CF_SERVER_FROM_CLIENT, CF_SHARED, CF_USERINFO, Cmd_AddCommand(), Cvar_RegisterCallback(), Cvar_RegisterVariable(), host_static_t::hook, host, sv_adminnick, SV_Begin_f(), SV_Changelevel_f(), sv_cheats, SV_Color_f(), SV_DisableCheats_c(), SV_Ent_Create_f(), SV_Ent_Remove_All_f(), SV_Ent_Remove_f(), SV_Fly_f(), SV_Give_f(), SV_God_f(), SV_Kick_f(), SV_Kill_f(), SV_Loadgame_f(), SV_Map_f(), SV_MaxPlayers_f(), SV_Name_f(), sv_namechangetimer, SV_Noclip_f(), SV_Notarget_f(), SV_Pause_f(), SV_Ping_f(), SV_Pings_f(), SV_Playermodel_f(), SV_Playerskin_f(), SV_PModel_f(), SV_PreSpawn_f(), SV_Rate_BurstSize_f(), SV_Rate_f(), SV_Restart_f(), SV_Savegame_f(), SV_Say_f(), SV_Say_Team_f(), host_static_t::SV_SendCvar, SV_SendCvar_f(), SV_Spawn_f(), SV_Status_f(), sv_status_privacy, sv_status_show_qcstatus, SV_Tell_f(), SV_Viewframe_f(), SV_Viewmodel_f(), SV_Viewnext_f(), and SV_Viewprev_f().
Referenced by SV_Init().
|
static |
Definition at line 1061 of file sv_ccmds.c.
References client_t::active, server_t::active, cl_name, server_static_t::clients, cmd(), Cmd_Argc(), Cmd_Args(), Cmd_Argv(), COM_ParseToken_Simple(), host_client, host_isclient, i, int(), cvar_t::integer, server_static_t::maxclients, message, client_t::name, NULL, src_local, cvar_t::string, strlen(), sv, SV_DropClient(), svs, and va().
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 415 of file sv_ccmds.c.
References client_t::edict, prvm_prog_t::ExecuteProgram, health, host_client, PRVM_EDICT_TO_PROG, PRVM_serveredictfloat, PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, self, sv, SV_ClientPrint(), SVVM_prog, server_t::time, and time.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 51 of file sv_ccmds.c.
References server_t::active, server_static_t::clients, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Print(), host_static_t::ConnectLocal, Cvar_Set(), cvars_all, host_static_t::Disconnect, GAME_DELUXEQUAKE, gamemode, host_static_t::hook, host, server_static_t::maxclients, server_static_t::maxclients_next, Mem_Alloc, Mem_Free, NULL, server_static_t::serverflags, sv, sv_mempool, SV_Shutdown(), SV_SpawnServer(), svs, and host_static_t::ToggleMenu.
Referenced by SV_Changelevel_f(), and SV_InitOperatorCommands().
|
static |
Definition at line 1134 of file sv_ccmds.c.
References server_t::active, bound, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Print(), Con_Printf(), Cvar_SetQuick(), deathmatch, MAX_SCOREBOARD, server_static_t::maxclients_next, n, sv, and svs.
Referenced by SV_InitOperatorCommands().
Definition at line 868 of file sv_ccmds.c.
References client_t::begun, dp_strlcpy, client_t::edict, host_client, MSG_WriteByte(), MSG_WriteString(), client_t::name, client_t::netconnection, netname, client_t::old_name, PRVM_serveredictstring, PRVM_SetEngineString(), server_t::reliable_datagram, sv, SV_BroadcastPrintf(), SV_WriteNetnameIntoDemo(), svc_updatename, and SVVM_prog.
Referenced by SV_Name_f(), and SV_UpdateToReliableMessages().
|
static |
Definition at line 890 of file sv_ccmds.c.
References server_static_t::clients, cmd(), Cmd_Argc(), Cmd_Args(), Cmd_Argv(), dp_strlcpy, host, host_client, i, max, client_t::name, client_t::nametime, host_static_t::realtime, src_local, STRING_COLOR_DEFAULT, STRING_COLOR_DEFAULT_STR, STRING_COLOR_RGB_TAG_CHAR, STRING_COLOR_TAG, strlen(), SV_ClientPrintf(), SV_Name(), sv_namechangetimer, svs, u8_COM_StringLengthNoColors(), and cvar_t::value.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 192 of file sv_ccmds.c.
References client_t::edict, host_client, movetype, MOVETYPE_NOCLIP, MOVETYPE_WALK, noclip_anglehack, PRVM_serveredictfloat, SV_ClientPrint(), and SVVM_prog.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 399 of file sv_ccmds.c.
References client_t::edict, FL_NOTARGET, flags, host_client, int(), PRVM_serveredictfloat, SV_ClientPrint(), and SVVM_prog.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 434 of file sv_ccmds.c.
References cmd(), Con_Printf(), host_client, hostname, cvar_t::integer, LHNETADDRESS_GetAddressType(), LHNETADDRESSTYPE_LOOP, MSG_WriteByte(), client_t::name, client_t::netconnection, pausable, server_t::paused, netconn_t::peeraddress, print(), server_t::reliable_datagram, src_client, src_local, cvar_t::string, sv, sv_adminnick, SV_BroadcastPrintf(), SV_ClientPrintf(), svc_setpause, and void().
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 656 of file sv_ccmds.c.
References client_t::active, server_t::active, bound, server_static_t::clients, cmd(), Con_Printf(), floor(), i, server_static_t::maxclients, client_t::name, client_t::ping, print(), src_local, sv, SV_ClientPrintf(), svs, and void().
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 686 of file sv_ccmds.c.
References bound, server_static_t::clients, dpsnprintf(), floor(), host_client, i, int(), server_static_t::maxclients, netconn_t::message, MSG_WriteByte(), MSG_WriteShort(), MSG_WriteString(), MSG_WriteUnterminatedString(), client_t::netconnection, NETGRAPH_LOSTPACKET, NETGRAPH_PACKETS, ping, server_t::protocol, PROTOCOL_QUAKEWORLD, qw_svc_updateping, qw_svc_updatepl, sv, svc_stufftext, and svs.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1167 of file sv_ccmds.c.
References cmd(), Cmd_Argc(), Cmd_Args(), Cmd_Argv(), dp_strlcpy, client_t::edict, host_client, i, client_t::old_model, client_t::playermodel, playermodel, PRVM_serveredictstring, PRVM_SetEngineString(), and SVVM_prog.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1214 of file sv_ccmds.c.
References cmd(), Cmd_Argc(), Cmd_Args(), Cmd_Argv(), dp_strlcpy, client_t::edict, host_client, i, client_t::old_skin, client_t::playerskin, playerskin, PRVM_serveredictstring, PRVM_SetEngineString(), and SVVM_prog.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1265 of file sv_ccmds.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), client_t::edict, host_client, PRVM_serveredictfloat, and SVVM_prog.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1001 of file sv_ccmds.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), host_client, and client_t::rate_burstsize.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 989 of file sv_ccmds.c.
References cmd(), Cmd_Argv(), host_client, client_t::rate, and src_local.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 124 of file sv_ccmds.c.
References server_t::active, cmd(), Cmd_Argc(), Con_Print(), host_static_t::ConnectLocal, host_static_t::hook, host, NULL, sv, SV_SpawnServer(), host_static_t::ToggleMenu, and server_t::worldbasename.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 460 of file sv_ccmds.c.
References client_t::active, server_static_t::clients, cmd(), Cmd_Argc(), Cmd_Args(), Con_Print(), dp_strlcat, dpsnprintf(), client_t::edict, host_client, host_isclient, hostname, cvar_t::integer, server_static_t::maxclients, client_t::name, PRVM_serveredictfloat, src_local, cvar_t::string, strlen(), sv_adminnick, SV_ClientPrint(), svs, SVVM_prog, team, and teamplay.
Referenced by SV_Say_f(), and SV_Say_Team_f().
|
static |
Definition at line 520 of file sv_ccmds.c.
References cmd(), and SV_Say().
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 525 of file sv_ccmds.c.
References cmd(), and SV_Say().
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1416 of file sv_ccmds.c.
References server_t::active, server_static_t::clients, cmd(), Cmd_Argc(), Cmd_Argv(), host_client, host_isclient, i, cvar_t::integer, server_static_t::maxclients, sv, SV_ClientCommands(), and svs.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 743 of file sv_ccmds.c.
References client_t::active, server_t::active, netconn_t::address, bound, CF_SERVER, server_static_t::clients, clientstatus, cmd(), Cmd_Argc(), Cmd_Argv(), Con_Printf(), client_t::connecttime, Cvar_VariableString(), cvars_all, dp_strlcpy, engineversion, floor(), client_t::frags, frags, host, host_client, i, netconn_t::incoming_netgraph, int(), cvar_t::integer, ISWHITESPACE, LHNETADDRESS_GetAddressType(), LHNETADDRESSTYPE_LOOP, server_static_t::maxclients, client_t::name, client_t::netconnection, NETGRAPH_LOSTPACKET, NETGRAPH_PACKETS, netconn_t::peeraddress, client_t::ping, ping, print(), server_t::protocol, Protocol_NameForEnum(), Protocol_NumberForEnum(), PROTOCOL_QUAKE, PRVM_EDICT_NUM, PRVM_GetString(), PRVM_serveredictstring, host_static_t::realtime, seconds, src_local, sv, SV_ClientPrintf(), sv_status_privacy, sv_status_show_qcstatus, SV_TimingReport(), svs, SVVM_prog, netgraphitem_t::unreliablebytes, void(), and server_t::worldbasename.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 530 of file sv_ccmds.c.
References server_static_t::clients, cmd(), Cmd_Argc(), Cmd_Args(), Con_Print(), dpsnprintf(), host_client, hostname, int(), MAX_INPUTLINE, server_static_t::maxclients, client_t::name, NULL, src_local, cvar_t::string, strlen(), sv_adminnick, SV_ClientPrint(), and svs.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1331 of file sv_ccmds.c.
References server_t::active, cl, cmd(), Cmd_Argv(), f, FindViewthing(), frame, int(), client_state_t::model_precache, modelindex, model_t::numframes, PRVM_serveredictfloat, sv, and SVVM_prog.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1303 of file sv_ccmds.c.
References server_t::active, cl, cmd(), Cmd_Argv(), Con_Printf(), model_t::Draw, FindViewthing(), frame, int(), model_t::loaded, Mod_ForName(), client_state_t::model_precache, modelindex, NULL, PRVM_serveredictfloat, sv, and SVVM_prog.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1367 of file sv_ccmds.c.
References server_t::active, cl, FindViewthing(), frame, int(), client_state_t::model_precache, modelindex, model_t::numframes, PrintFrameName(), PRVM_serveredictfloat, sv, and SVVM_prog.
Referenced by SV_InitOperatorCommands().
|
static |
Definition at line 1394 of file sv_ccmds.c.
References server_t::active, cl, FindViewthing(), frame, int(), client_state_t::model_precache, modelindex, PrintFrameName(), PRVM_serveredictfloat, sv, and SVVM_prog.
Referenced by SV_InitOperatorCommands().
int current_skill |
skill level for currently loaded level (in case the user changes the cvar while the level is running, this reflects the level actually in use)
Definition at line 27 of file sv_ccmds.c.
Referenced by SV_Loadgame_f(), SV_Savegame_to(), SV_SpawnServer(), and SVVM_load_edict().
qbool noclip_anglehack |
Definition at line 190 of file sv_ccmds.c.
Referenced by CL_ClearState(), CL_Input(), SV_DisableCheats_c(), SV_Noclip_f(), and V_DriftPitch().
cvar_t sv_adminnick = {CF_SERVER | CF_ARCHIVE, "sv_adminnick", "", "nick name to use for admin messages instead of host name"} |
Definition at line 29 of file sv_ccmds.c.
Referenced by SV_InitOperatorCommands(), SV_Pause_f(), SV_Say(), and SV_Tell_f().
cvar_t sv_cheats = {CF_SERVER | CF_NOTIFY, "sv_cheats", "0", "enables cheat commands in any game, and cheat impulses in dpmod"} |
Definition at line 28 of file sv_ccmds.c.
Referenced by Cmd_SV_Callback(), and SV_InitOperatorCommands().
cvar_t sv_namechangetimer = {CF_SERVER | CF_ARCHIVE, "sv_namechangetimer", "5", "how often to allow name changes, in seconds (prevents people from using animated names and other tricks"} |
Definition at line 32 of file sv_ccmds.c.
Referenced by SV_InitOperatorCommands(), and SV_Name_f().
cvar_t sv_status_privacy = {CF_SERVER | CF_ARCHIVE, "sv_status_privacy", "0", "do not show IP addresses in 'status' replies to clients"} |
Definition at line 30 of file sv_ccmds.c.
Referenced by NetConn_ServerParsePacket(), SV_InitOperatorCommands(), and SV_Status_f().
cvar_t sv_status_show_qcstatus = {CF_SERVER | CF_ARCHIVE, "sv_status_show_qcstatus", "0", "show the 'qcstatus' field in status replies, not the 'frags' field. Turn this on if your mod uses this field, and the 'frags' field on the other hand has no meaningful value."} |
Definition at line 31 of file sv_ccmds.c.
Referenced by SV_InitOperatorCommands(), and SV_Status_f().