![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "quakedef.h"
#include "sv_demo.h"
#include "libcurl.h"
#include "csprogs.h"
#include "thread.h"
#include "prvm_offsets.h"
Go to the source code of this file.
Variables | |
cvar_t | coop = {CF_SERVER, "coop","0", "coop mode, 0 = no coop, 1 = coop mode, multiple players playing through the singleplayer game (coop mode also shuts off deathmatch)"} |
cvar_t | cutscene = {CF_SERVER, "cutscene", "1", "enables cutscenes in nehahra, can be used by other mods"} |
cvar_t | deathmatch = {CF_SERVER, "deathmatch","0", "deathmatch mode, values depend on mod but typically 0 = no deathmatch, 1 = normal deathmatch with respawning weapons, 2 = weapons stay (players can only pick up new weapons)"} |
cvar_t | fraglimit = {CF_SERVER | CF_NOTIFY, "fraglimit","0", "ends level if this many frags is reached by any player"} |
cvar_t | gamecfg = {CF_SERVER, "gamecfg", "0", "unused cvar in quake, can be used by mods"} |
cvar_t | halflifebsp = {CF_SERVER, "halflifebsp", "0", "indicates the current map is hlbsp format (useful to know because of different bounding box sizes)"} |
client_t * | host_client |
cvar_t | host_framerate |
cvar_t | host_limitlocal = {CF_SERVER, "host_limitlocal", "0", "whether to apply rate limiting to the local player in a listen server (only useful for testing)"} |
cvar_t | host_timescale = {CF_CLIENT | CF_SERVER, "host_timescale", "1.0", "controls game speed, 0.5 is half speed, 2 is double speed"} |
cvar_t | nehx00 = {CF_SERVER, "nehx00", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx01 = {CF_SERVER, "nehx01", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx02 = {CF_SERVER, "nehx02", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx03 = {CF_SERVER, "nehx03", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx04 = {CF_SERVER, "nehx04", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx05 = {CF_SERVER, "nehx05", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx06 = {CF_SERVER, "nehx06", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx07 = {CF_SERVER, "nehx07", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx08 = {CF_SERVER, "nehx08", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx09 = {CF_SERVER, "nehx09", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx10 = {CF_SERVER, "nehx10", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx11 = {CF_SERVER, "nehx11", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx12 = {CF_SERVER, "nehx12", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx13 = {CF_SERVER, "nehx13", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx14 = {CF_SERVER, "nehx14", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx15 = {CF_SERVER, "nehx15", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx16 = {CF_SERVER, "nehx16", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx17 = {CF_SERVER, "nehx17", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx18 = {CF_SERVER, "nehx18", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | nehx19 = {CF_SERVER, "nehx19", "0", "nehahra data storage cvar (used in singleplayer)"} |
cvar_t | net_connecttimeout |
cvar_t | noexit = {CF_SERVER | CF_NOTIFY, "noexit","0", "kills anyone attempting to use an exit"} |
cvar_t | nomonsters = {CF_SERVER, "nomonsters", "0", "unused cvar in quake, can be used by mods"} |
cvar_t | pausable = {CF_SERVER, "pausable","1", "allow players to pause or not (otherwise, only the server admin can)"} |
cvar_t | pr_checkextension = {CF_SERVER | CF_READONLY, "pr_checkextension", "1", "indicates to QuakeC that the standard quakec extensions system is available (if 0, quakec should not attempt to use extensions)"} |
cvar_t | samelevel = {CF_SERVER | CF_NOTIFY, "samelevel","0", "repeats same level if level ends (due to timelimit or someone hitting an exit)"} |
cvar_t | saved1 = {CF_SERVER | CF_ARCHIVE, "saved1", "0", "unused cvar in quake that is saved to config.cfg on exit, can be used by mods"} |
cvar_t | saved2 = {CF_SERVER | CF_ARCHIVE, "saved2", "0", "unused cvar in quake that is saved to config.cfg on exit, can be used by mods"} |
cvar_t | saved3 = {CF_SERVER | CF_ARCHIVE, "saved3", "0", "unused cvar in quake that is saved to config.cfg on exit, can be used by mods"} |
cvar_t | saved4 = {CF_SERVER | CF_ARCHIVE, "saved4", "0", "unused cvar in quake that is saved to config.cfg on exit, can be used by mods"} |
cvar_t | savedgamecfg = {CF_SERVER | CF_ARCHIVE, "savedgamecfg", "0", "unused cvar in quake that is saved to config.cfg on exit, can be used by mods"} |
float | scr_centertime_off |
cvar_t | scratch1 = {CF_SERVER, "scratch1", "0", "unused cvar in quake, can be used by mods"} |
cvar_t | scratch2 = {CF_SERVER,"scratch2", "0", "unused cvar in quake, can be used by mods"} |
cvar_t | scratch3 = {CF_SERVER, "scratch3", "0", "unused cvar in quake, can be used by mods"} |
cvar_t | scratch4 = {CF_SERVER, "scratch4", "0", "unused cvar in quake, can be used by mods"} |
cvar_t | skill = {CF_SERVER, "skill","1", "difficulty level of game, affects monster layouts in levels, 0 = easy, 1 = normal, 2 = hard, 3 = nightmare (same layout as hard but monsters fire twice)"} |
static const char * | standardeffectnames [EFFECT_TOTAL] |
server_t | sv |
local server | |
cvar_t | sv_accelerate = {CF_SERVER, "sv_accelerate", "10", "rate at which a player accelerates to sv_maxspeed"} |
cvar_t | sv_aim = {CF_SERVER | CF_ARCHIVE, "sv_aim", "2", "maximum cosine angle for quake's vertical autoaim, a value above 1 completely disables the autoaim, quake used 0.93"} |
cvar_t | sv_airaccel_qw = {CF_SERVER, "sv_airaccel_qw", "1", "ratio of QW-style air control as opposed to simple acceleration; when < 0, the speed is clamped against the maximum allowed forward speed after the move"} |
cvar_t | sv_airaccel_qw_stretchfactor = {CF_SERVER, "sv_airaccel_qw_stretchfactor", "0", "when set, the maximum acceleration increase the player may get compared to forward-acceleration when strafejumping"} |
cvar_t | sv_airaccel_sideways_friction = {CF_SERVER, "sv_airaccel_sideways_friction", "", "anti-sideways movement stabilization (reduces speed gain when zigzagging); when < 0, only so much friction is applied that braking (by accelerating backwards) cannot be stronger"} |
cvar_t | sv_airaccelerate = {CF_SERVER, "sv_airaccelerate", "-1", "rate at which a player accelerates to sv_maxairspeed while in the air, if less than 0 the sv_accelerate variable is used instead"} |
cvar_t | sv_aircontrol = {CF_SERVER, "sv_aircontrol", "0", "CPMA-style air control"} |
cvar_t | sv_aircontrol_penalty = {CF_SERVER, "sv_aircontrol_penalty", "0", "deceleration while using CPMA-style air control"} |
cvar_t | sv_aircontrol_power = {CF_SERVER, "sv_aircontrol_power", "2", "CPMA-style air control exponent"} |
cvar_t | sv_airspeedlimit_nonqw = {CF_SERVER, "sv_airspeedlimit_nonqw", "0", "when set, this is a soft speed limit while in air when using airaccel_qw not equal to 1"} |
cvar_t | sv_airstopaccelerate = {CF_SERVER, "sv_airstopaccelerate", "0", "when set, replacement for sv_airaccelerate when moving backwards"} |
cvar_t | sv_airstrafeaccel_qw = {CF_SERVER, "sv_airstrafeaccel_qw", "0", "when set, replacement for sv_airaccel_qw when just strafing"} |
cvar_t | sv_airstrafeaccelerate = {CF_SERVER, "sv_airstrafeaccelerate", "0", "when set, replacement for sv_airaccelerate when just strafing"} |
cvar_t | sv_allowdownloads = {CF_SERVER, "sv_allowdownloads", "1", "whether to allow clients to download files from the server (does not affect http downloads)"} |
cvar_t | sv_allowdownloads_archive = {CF_SERVER, "sv_allowdownloads_archive", "0", "whether to allow downloads of archives (pak/pk3)"} |
cvar_t | sv_allowdownloads_config = {CF_SERVER, "sv_allowdownloads_config", "0", "whether to allow downloads of config files (cfg)"} |
cvar_t | sv_allowdownloads_dlcache = {CF_SERVER, "sv_allowdownloads_dlcache", "0", "whether to allow downloads of dlcache files (dlcache/)"} |
cvar_t | sv_allowdownloads_inarchive = {CF_SERVER, "sv_allowdownloads_inarchive", "0", "whether to allow downloads from archives (pak/pk3)"} |
cvar_t | sv_areadebug = {CF_SERVER, "sv_areadebug", "0", "disables physics culling for debugging purposes (only for development)"} |
cvar_t | sv_areagrid_link_SOLID_NOT = {CF_SERVER | CF_NOTIFY, "sv_areagrid_link_SOLID_NOT", "1", "set to 0 to prevent SOLID_NOT entities from being linked to the area grid, and unlink any that are already linked (in the code paths that would otherwise link them), for better performance"} |
cvar_t | sv_areagrid_mingridsize = {CF_SERVER | CF_NOTIFY, "sv_areagrid_mingridsize", "128", "minimum areagrid cell size, smaller values work better for lots of small objects, higher values for large objects"} |
cvar_t | sv_autodemo_perclient = {CF_SERVER | CF_ARCHIVE, "sv_autodemo_perclient", "0", "set to 1 to enable autorecorded per-client demos (they'll start to record at the beginning of a match); set it to 2 to also record client->server packets (for debugging)"} |
cvar_t | sv_autodemo_perclient_discardable = {CF_SERVER | CF_ARCHIVE, "sv_autodemo_perclient_discardable", "0", "Allow game code to decide whether a demo should be kept or discarded."} |
cvar_t | sv_autodemo_perclient_nameformat = {CF_SERVER | CF_ARCHIVE, "sv_autodemo_perclient_nameformat", "sv_autodemos/%Y-%m-%d_%H-%M", "The format of the sv_autodemo_perclient filename, followed by the map name, the client number and the IP address + port number, separated by underscores (the date is encoded using strftime escapes)" } |
cvar_t | sv_checkforpacketsduringsleep = {CF_SERVER, "sv_checkforpacketsduringsleep", "0", "uses select() function to wait between frames which can be interrupted by packets being received, instead of Sleep()/usleep()/SDL_Sleep() functions which do not check for packets"} |
cvar_t | sv_clmovement_enable = {CF_SERVER, "sv_clmovement_enable", "1", "whether to allow clients to use cl_movement prediction, which can cause choppy movement on the server which may annoy other players"} |
cvar_t | sv_clmovement_inputtimeout = {CF_SERVER, "sv_clmovement_inputtimeout", "0.1", "when a client does not send input for this many seconds (max 0.1), force them to move anyway (unlike QuakeWorld)"} |
cvar_t | sv_clmovement_minping = {CF_SERVER, "sv_clmovement_minping", "0", "if client ping is below this time in milliseconds, then their ability to use cl_movement prediction is disabled for a while (as they don't need it)"} |
cvar_t | sv_clmovement_minping_disabletime = {CF_SERVER, "sv_clmovement_minping_disabletime", "1000", "when client falls below minping, disable their prediction for this many milliseconds (should be at least 1000 or else their prediction may turn on/off frequently)"} |
cvar_t | sv_cullentities_nevercullbmodels = {CF_SERVER, "sv_cullentities_nevercullbmodels", "0", "if enabled the clients are always notified of moving doors and lifts and other submodels of world (warning: eats a lot of network bandwidth on some levels!)"} |
cvar_t | sv_cullentities_pvs = {CF_SERVER, "sv_cullentities_pvs", "1", "fast but loose culling of hidden entities"} |
cvar_t | sv_cullentities_stats = {CF_SERVER, "sv_cullentities_stats", "0", "displays stats on network entities culled by various methods for each client"} |
cvar_t | sv_cullentities_trace = {CF_SERVER, "sv_cullentities_trace", "0", "somewhat slow but very tight culling of hidden entities, minimizes network traffic and makes wallhack cheats useless"} |
cvar_t | sv_cullentities_trace_delay = {CF_SERVER, "sv_cullentities_trace_delay", "1", "number of seconds until the entity gets actually culled (also applies to portal camera eyes even if sv_cullentities_trace is 0)"} |
cvar_t | sv_cullentities_trace_delay_players = {CF_SERVER, "sv_cullentities_trace_delay_players", "0.2", "number of seconds until the entity gets actually culled if it is a player entity"} |
cvar_t | sv_cullentities_trace_enlarge = {CF_SERVER, "sv_cullentities_trace_enlarge", "0", "box enlargement for entity culling (also applies to portal camera eyes even if sv_cullentities_trace is 0)"} |
cvar_t | sv_cullentities_trace_entityocclusion = {CF_SERVER, "sv_cullentities_trace_entityocclusion", "0", "also check if doors and other bsp models are in the way"} |
cvar_t | sv_cullentities_trace_expand = {CF_SERVER, "sv_cullentities_trace_expand", "0", "box is expanded by this many units for entity culling (also applies to portal camera eyes even if sv_cullentities_trace is 0)"} |
cvar_t | sv_cullentities_trace_eyejitter = {CF_SERVER, "sv_cullentities_trace_eyejitter", "16", "jitter the eye by this much for each trace (also applies to portal camera eyes even if sv_cullentities_trace is 0)"} |
cvar_t | sv_cullentities_trace_prediction = {CF_SERVER, "sv_cullentities_trace_prediction", "1", "also trace from the predicted player position"} |
cvar_t | sv_cullentities_trace_prediction_time = {CF_SERVER, "sv_cullentities_trace_prediction_time", "0.2", "maximum ping time to predict in seconds"} |
cvar_t | sv_cullentities_trace_samples = {CF_SERVER, "sv_cullentities_trace_samples", "2", "number of samples to test for entity culling"} |
cvar_t | sv_cullentities_trace_samples_extra = {CF_SERVER, "sv_cullentities_trace_samples_extra", "2", "number of samples to test for entity culling when the entity affects its surroundings by e.g. dlight (also applies to portal camera eyes even if sv_cullentities_trace is 0)"} |
cvar_t | sv_cullentities_trace_samples_players = {CF_SERVER, "sv_cullentities_trace_samples_players", "8", "number of samples to test for entity culling when the entity is a player entity"} |
cvar_t | sv_cullentities_trace_spectators = {CF_SERVER, "sv_cullentities_trace_spectators", "0", "enables trace entity culling for clients that are spectating"} |
cvar_t | sv_debugmove = {CF_SERVER | CF_NOTIFY, "sv_debugmove", "0", "disables collision detection optimizations for debugging purposes"} |
cvar_t | sv_dedicated = {CF_SERVER | CF_READONLY, "sv_dedicated", "0", "for scripts and SVQC to detect when they're running on a dedicated server"} |
cvar_t | sv_disablenotify = {CF_SERVER, "sv_disablenotify", "0", "suppress broadcast prints when certain cvars are changed (CF_NOTIFY flag in engine code)"} |
cvar_t | sv_echobprint = {CF_SERVER | CF_ARCHIVE, "sv_echobprint", "1", "prints gamecode bprint() calls to server console"} |
cvar_t | sv_edgefriction = {CF_SERVER, "edgefriction", "1", "how much you slow down when nearing a ledge you might fall off, multiplier of sv_friction (Quake used 2, QuakeWorld used 1 due to a bug in physics code)"} |
cvar_t | sv_entpatch = {CF_SERVER, "sv_entpatch", "1", "enables loading of .ent files to override entities in the bsp (for example Threewave CTF server pack contains .ent patch files enabling play of CTF on id1 maps)"} |
cvar_t | sv_freezenonclients = {CF_SERVER | CF_NOTIFY, "sv_freezenonclients", "0", "freezes time, except for players, allowing you to walk around and take screenshots of explosions"} |
cvar_t | sv_friction = {CF_SERVER | CF_NOTIFY, "sv_friction","4", "how fast you slow down"} |
cvar_t | sv_gameplayfix_blowupfallenzombies = {CF_SERVER, "sv_gameplayfix_blowupfallenzombies", "1", "causes findradius to detect SOLID_NOT entities such as zombies and corpses on the floor, allowing splash damage to apply to them"} |
cvar_t | sv_gameplayfix_consistentplayerprethink = {CF_SERVER, "sv_gameplayfix_consistentplayerprethink", "0", "improves fairness in multiplayer by running all PlayerPreThink functions (which fire weapons) before performing physics, then running all PlayerPostThink functions"} |
cvar_t | sv_gameplayfix_delayprojectiles = {CF_SERVER, "sv_gameplayfix_delayprojectiles", "1", "causes entities to not move on the same frame they are spawned, meaning that projectiles wait until the next frame to perform their first move, giving proper interpolation and rocket trails, but making weapons harder to use at low framerates"} |
cvar_t | sv_gameplayfix_downtracesupportsongroundflag = {CF_SERVER, "sv_gameplayfix_downtracesupportsongroundflag", "1", "prevents very short moves from clearing onground (which may make the player stick to the floor at high netfps), fixes groundentity not being set when walking onto a mover with sv_gameplayfix_nogravityonground"} |
cvar_t | sv_gameplayfix_droptofloorstartsolid = {CF_SERVER, "sv_gameplayfix_droptofloorstartsolid", "1", "prevents items and monsters that start in a solid area from falling out of the level (makes droptofloor treat trace_startsolid as an acceptable outcome)"} |
cvar_t | sv_gameplayfix_droptofloorstartsolid_nudgetocorrect = {CF_SERVER, "sv_gameplayfix_droptofloorstartsolid_nudgetocorrect", "1", "tries to nudge stuck items and monsters out of walls before droptofloor is performed"} |
cvar_t | sv_gameplayfix_easierwaterjump = {CF_SERVER, "sv_gameplayfix_easierwaterjump", "1", "changes water jumping to make it easier to get out of water (exactly like in QuakeWorld)"} |
cvar_t | sv_gameplayfix_findradiusdistancetobox = {CF_SERVER, "sv_gameplayfix_findradiusdistancetobox", "1", "causes findradius to check the distance to the corner of a box rather than the center of the box, makes findradius detect bmodels such as very large doors that would otherwise be unaffected by splash damage"} |
cvar_t | sv_gameplayfix_fixedcheckwatertransition = {CF_SERVER, "sv_gameplayfix_fixedcheckwatertransition", "1", "fix two very stupid bugs in SV_CheckWaterTransition when watertype is CONTENTS_EMPTY (the bugs causes waterlevel to be 1 on first frame, -1 on second frame - the fix makes it 0 on both frames)"} |
cvar_t | sv_gameplayfix_gravityunaffectedbyticrate = {CF_SERVER, "sv_gameplayfix_gravityunaffectedbyticrate", "0", "fix some ticrate issues in physics."} |
cvar_t | sv_gameplayfix_grenadebouncedownslopes = {CF_SERVER, "sv_gameplayfix_grenadebouncedownslopes", "1", "prevents MOVETYPE_BOUNCE (grenades) from getting stuck when fired down a downward sloping surface"} |
cvar_t | sv_gameplayfix_impactbeforeonground = {CF_SERVER, "sv_gameplayfix_impactbeforeonground", "0", "enables a bug from old DP versions in which entity .touch functions are called before FL_ONGROUND is set when a collision is detected in SV_FlyMove() (used by MOVETYPE_WALK and MOVETYPE_STEP), Quake 1.5 and Combat+ mods require this, it breaks id1 fiends"} |
cvar_t | sv_gameplayfix_multiplethinksperframe = {CF_SERVER, "sv_gameplayfix_multiplethinksperframe", "1", "allows entities to think more often than the server framerate, primarily useful for very high fire rate weapons"} |
cvar_t | sv_gameplayfix_noairborncorpse = {CF_SERVER, "sv_gameplayfix_noairborncorpse", "1", "causes entities (corpses, items, etc) sitting ontop of moving entities (players) to fall when the moving entity (player) is no longer supporting them"} |
cvar_t | sv_gameplayfix_noairborncorpse_allowsuspendeditems = {CF_SERVER, "sv_gameplayfix_noairborncorpse_allowsuspendeditems", "1", "causes entities sitting ontop of objects that are instantaneously remove to float in midair (special hack to allow a common level design trick for floating items)"} |
cvar_t | sv_gameplayfix_nogravityonground = {CF_SERVER, "sv_gameplayfix_nogravityonground", "0", "turn off gravity when on ground (to get rid of sliding)"} |
cvar_t | sv_gameplayfix_nosquashentities = {CF_SERVER, "sv_gameplayfix_nosquashentities", "0", "Entity hitboxes will not be resized or disabled when they are crushed by movers, and will continue to be affected by movers."} |
cvar_t | sv_gameplayfix_nostepmoveonsteepslopes = {CF_SERVER, "sv_gameplayfix_nostepmoveonsteepslopes", "0", "crude fix which prevents MOVETYPE_STEP (not swimming or flying) to move on slopes whose angle is bigger than 45 degree"} |
cvar_t | sv_gameplayfix_nudgeoutofsolid = {CF_SERVER, "sv_gameplayfix_nudgeoutofsolid", "0", "attempts to fix physics errors where an object ended up in solid for some reason, smarter than sv_gameplayfix_unstick* except on Q1BSP with mod_q1bsp_polygoncollisions disabled (there it falls back to the unsticking method)"} |
cvar_t | sv_gameplayfix_nudgeoutofsolid_separation = {CF_SERVER, "sv_gameplayfix_nudgeoutofsolid_separation", "0.03125", "keep objects this distance apart to prevent collision issues on seams"} |
cvar_t | sv_gameplayfix_q1bsptracelinereportstexture = {CF_SERVER, "sv_gameplayfix_q1bsptracelinereportstexture", "1", "enables mods to get accurate trace_texture results on q1bsp by using a surface-hitting traceline implementation rather than the standard solidbsp method, q3bsp always reports texture accurately"} |
cvar_t | sv_gameplayfix_q2airaccelerate = {CF_SERVER, "sv_gameplayfix_q2airaccelerate", "0", "Quake2-style air acceleration"} |
cvar_t | sv_gameplayfix_setmodelrealbox = {CF_SERVER, "sv_gameplayfix_setmodelrealbox", "1", "fixes a bug in Quake that made setmodel always set the entity box to ('-16 -16 -16', '16 16 16') rather than properly checking the model box, breaks some poorly coded mods"} |
cvar_t | sv_gameplayfix_slidemoveprojectiles = {CF_SERVER, "sv_gameplayfix_slidemoveprojectiles", "1", "allows MOVETYPE_FLY/FLYMISSILE/TOSS/BOUNCE/BOUNCEMISSILE entities to finish their move in a frame even if they hit something, fixes 'gravity accumulation' bug for grenades on steep slopes"} |
cvar_t | sv_gameplayfix_stepdown = {CF_SERVER, "sv_gameplayfix_stepdown", "0", "attempts to step down stairs, not just up them (prevents the familiar thud..thud..thud.. when running down stairs and slopes)"} |
cvar_t | sv_gameplayfix_stepmultipletimes = {CF_SERVER, "sv_gameplayfix_stepmultipletimes", "0", "applies step-up onto a ledge more than once in a single frame, when running quickly up stairs"} |
cvar_t | sv_gameplayfix_swiminbmodels = {CF_SERVER, "sv_gameplayfix_swiminbmodels", "1", "causes pointcontents (used to determine if you are in a liquid) to check bmodel entities as well as the world model, so you can swim around in (possibly moving) water bmodel entities"} |
cvar_t | sv_gameplayfix_unstickentities = {CF_SERVER, "sv_gameplayfix_unstickentities", "0", "hack to check if entities are crossing world collision hull and try to move them to the right position. Quake didn't do this so maps shouldn't depend on it."} |
cvar_t | sv_gameplayfix_unstickplayers = {CF_SERVER, "sv_gameplayfix_unstickplayers", "1", "big hack to try and fix the rare case of MOVETYPE_WALK entities getting stuck in the world clipping hull. Quake did something similar."} |
cvar_t | sv_gameplayfix_upwardvelocityclearsongroundflag = {CF_SERVER, "sv_gameplayfix_upwardvelocityclearsongroundflag", "1", "prevents monsters, items, and most other objects from being stuck to the floor when pushed around by damage, and other situations in mods"} |
cvar_t | sv_gravity = {CF_SERVER | CF_NOTIFY, "sv_gravity","800", "how fast you fall (512 = roughly earth gravity)"} |
cvar_t | sv_idealpitchscale = {CF_SERVER, "sv_idealpitchscale","0.8", "how much to look up/down slopes and stairs when not using freelook"} |
cvar_t | sv_init_frame_count = {CF_SERVER, "sv_init_frame_count", "2", "number of frames to run to allow everything to settle before letting clients connect"} |
cvar_t | sv_jumpstep = {CF_SERVER | CF_NOTIFY, "sv_jumpstep", "0", "whether you can step up while jumping"} |
cvar_t | sv_jumpvelocity = {CF_SERVER, "sv_jumpvelocity", "270", "cvar that can be used by QuakeC code for jump velocity"} |
cvar_t | sv_lagreporting_always = {CF_SERVER, "sv_lagreporting_always", "0", "report lag even in singleplayer, listen, an empty dedicated server, or during intermission"} |
cvar_t | sv_lagreporting_strict = {CF_SERVER, "sv_lagreporting_strict", "0", "log any extra frames run to catch up after a holdup (only applies when sv_maxphysicsframesperserverframe > 1)"} |
cvar_t | sv_legacy_bbox_expand = {CF_SERVER, "sv_legacy_bbox_expand", "1", "before linking an entity to the area grid, decrease its mins and increase its maxs by '1 1 1', or '15 15 1' if it has flag FL_ITEM (this is the Quake/QuakeWorld behaviour); disable to make SVQC bboxes consistent with CSQC which never does this expansion"} |
cvar_t | sv_mapformat_is_quake2 = {CF_SERVER, "sv_mapformat_is_quake2", "0", "indicates the current map is q2bsp format (useful to know because of different entity behaviors, .frame on submodels and other things)"} |
cvar_t | sv_mapformat_is_quake3 = {CF_SERVER, "sv_mapformat_is_quake3", "0", "indicates the current map is q3bsp format (useful to know because of different entity behaviors)"} |
cvar_t | sv_maxairspeed = {CF_SERVER, "sv_maxairspeed", "30", "maximum speed a player can accelerate to when airborn (note that it is possible to completely stop by moving the opposite direction)"} |
cvar_t | sv_maxairstrafespeed = {CF_SERVER, "sv_maxairstrafespeed", "0", "when set, replacement for sv_maxairspeed when just strafing"} |
cvar_t | sv_maxphysicsframesperserverframe = {CF_SERVER, "sv_maxphysicsframesperserverframe","10", "maximum number of physics frames per server frame"} |
cvar_t | sv_maxrate = {CF_SERVER | CF_ARCHIVE | CF_NOTIFY, "sv_maxrate", "1000000", "upper limit on client rate cvar, should reflect your network connection quality"} |
cvar_t | sv_maxspeed = {CF_SERVER | CF_NOTIFY, "sv_maxspeed", "320", "maximum speed a player can accelerate to when on ground (can be exceeded by tricks)"} |
cvar_t | sv_maxvelocity = {CF_SERVER | CF_NOTIFY, "sv_maxvelocity","2000", "universal speed limit on all entities"} |
mempool_t * | sv_mempool = NULL |
cvar_t | sv_nostep = {CF_SERVER | CF_NOTIFY, "sv_nostep","0", "prevents MOVETYPE_STEP entities (monsters) from moving"} |
cvar_t | sv_onlycsqcnetworking = {CF_SERVER, "sv_onlycsqcnetworking", "0", "disables legacy entity networking code for higher performance (except on clients, which can still be legacy)"} |
cvar_t | sv_playerphysicsqc = {CF_SERVER | CF_NOTIFY, "sv_playerphysicsqc", "1", "enables QuakeC function to override player physics"} |
cvar_t | sv_progs = {CF_SERVER, "sv_progs", "progs.dat", "selects which quakec progs.dat file to run" } |
cvar_t | sv_protocolname = {CF_SERVER, "sv_protocolname", "DP7", "selects network protocol to host for (values include QUAKE, QUAKEDP, NEHAHRAMOVIE, DP1 and up)"} |
cvar_t | sv_qcstats = {CF_SERVER, "sv_qcstats", "0", "Disables engine sending of stats 220 and above, for use by certain games such as Xonotic, NOTE: it's strongly recommended that SVQC send correct STAT_MOVEVARS_TICRATE and STAT_MOVEVARS_TIMESCALE"} |
cvar_t | sv_random_seed = {CF_SERVER, "sv_random_seed", "", "random seed; when set, on every map start this random seed is used to initialize the random number generator. Don't touch it unless for benchmarking or debugging"} |
prvm_required_field_t | sv_reqfields [] |
prvm_required_field_t | sv_reqglobals [] |
cvar_t | sv_rollangle = {CF_CLIENT, "sv_rollangle", "2.0", "how much to tilt the view when strafing"} |
cvar_t | sv_rollspeed = {CF_CLIENT, "sv_rollspeed", "200", "how much strafing is necessary to tilt the view"} |
cvar_t | sv_sendentities_csqc_randomize_order = {CF_SERVER, "sv_sendentities_csqc_randomize_order", "1", "Randomize the order of sending CSQC entities (should behave better when packet size or bandwidth limits are exceeded)."} |
cvar_t | sv_sound_land = {CF_SERVER, "sv_sound_land", "demon/dland2.wav", "sound to play when MOVETYPE_STEP entity hits the ground at high speed (empty cvar disables the sound)"} |
cvar_t | sv_sound_watersplash = {CF_SERVER, "sv_sound_watersplash", "misc/h2ohit1.wav", "sound to play when MOVETYPE_FLY/TOSS/BOUNCE/STEP entity enters or leaves water (empty cvar disables the sound)"} |
cvar_t | sv_stepheight = {CF_SERVER | CF_NOTIFY, "sv_stepheight", "18", "how high you can step up (TW_SV_STEPCONTROL extension)"} |
cvar_t | sv_stopspeed = {CF_SERVER | CF_NOTIFY, "sv_stopspeed","100", "how fast you come to a complete stop"} |
cvar_t | sv_threaded = {CF_SERVER, "sv_threaded", "0", "enables a separate thread for server code, improving performance, especially when hosting a game while playing, EXPERIMENTAL, may be crashy"} |
cvar_t | sv_wallfriction = {CF_SERVER | CF_NOTIFY, "sv_wallfriction", "1", "how much you slow down when sliding along a wall"} |
cvar_t | sv_warsowbunny_accel = {CF_SERVER, "sv_warsowbunny_accel", "0.1585", "how fast you accelerate until after reaching sv_maxspeed (it gets harder as you near sv_warsowbunny_topspeed)"} |
cvar_t | sv_warsowbunny_airforwardaccel = {CF_SERVER, "sv_warsowbunny_airforwardaccel", "1.00001", "how fast you accelerate until you reach sv_maxspeed"} |
cvar_t | sv_warsowbunny_backtosideratio = {CF_SERVER, "sv_warsowbunny_backtosideratio", "0.8", "lower values make it easier to change direction without losing speed; the drawback is \"understeering\" in sharp turns"} |
cvar_t | sv_warsowbunny_topspeed = {CF_SERVER, "sv_warsowbunny_topspeed", "925", "soft speed limit (can get faster with rjs and on ramps)"} |
cvar_t | sv_warsowbunny_turnaccel = {CF_SERVER, "sv_warsowbunny_turnaccel", "0", "max sharpness of turns (also master switch for the sv_warsowbunny_* mode; set this to 9 to enable)"} |
cvar_t | sv_wateraccelerate = {CF_SERVER, "sv_wateraccelerate", "-1", "rate at which a player accelerates to sv_maxspeed while in water, if less than 0 the sv_accelerate variable is used instead"} |
cvar_t | sv_waterfriction = {CF_SERVER | CF_NOTIFY, "sv_waterfriction","-1", "how fast you slow down in water, if less than 0 the sv_friction variable is used instead"} |
cvar_t | sv_worldbasename = {CF_SERVER | CF_READONLY, "sv_worldbasename", "", "name of current worldmodel without maps/ prefix or extension"} |
cvar_t | sv_worldmessage = {CF_SERVER | CF_READONLY, "sv_worldmessage", "", "title of current level"} |
cvar_t | sv_worldname = {CF_SERVER | CF_READONLY, "sv_worldname", "", "name of current worldmodel"} |
cvar_t | sv_worldnamenoextension = {CF_SERVER | CF_READONLY, "sv_worldnamenoextension", "", "name of current worldmodel without extension"} |
cvar_t | sv_writepicture_quality = {CF_SERVER | CF_ARCHIVE, "sv_writepicture_quality", "10", "WritePicture quality offset (higher means better quality, but slower)"} |
server_static_t | svs |
persistant server info | |
cvar_t | sys_ticrate = {CF_SERVER | CF_ARCHIVE, "sys_ticrate","0.01388889", "how long a server frame is in seconds, 0.05 is 20fps server rate, 0.1 is 10fps (can not be set higher than 0.1), 0 runs as many server frames as possible (makes games against bots a little smoother, overwhelms network players), 1/72 matches QuakeWorld physics"} |
cvar_t | teamplay = {CF_SERVER | CF_NOTIFY, "teamplay","0", "teamplay mode, values depend on mod but typically 0 = no teams, 1 = no team damage no self damage, 2 = team damage and self damage, some mods support 3 = no team damage but can damage self"} |
cvar_t | temp1 = {CF_SERVER, "temp1","0", "general cvar for mods to use, in stock id1 this selects which death animation to use on players (0 = random death, other values select specific death scenes)"} |
cvar_t | timelimit = {CF_SERVER | CF_NOTIFY, "timelimit","0", "ends level at this time (in minutes)"} |
#define PRVM_DECLARE_clientfieldedict | ( | x | ) |
#define PRVM_DECLARE_clientfieldedict | ( | x | ) |
#define PRVM_DECLARE_clientfieldfloat | ( | x | ) |
#define PRVM_DECLARE_clientfieldfloat | ( | x | ) |
#define PRVM_DECLARE_clientfieldfunction | ( | x | ) |
#define PRVM_DECLARE_clientfieldfunction | ( | x | ) |
#define PRVM_DECLARE_clientfieldstring | ( | x | ) |
#define PRVM_DECLARE_clientfieldstring | ( | x | ) |
#define PRVM_DECLARE_clientfieldvector | ( | x | ) |
#define PRVM_DECLARE_clientfieldvector | ( | x | ) |
#define PRVM_DECLARE_clientfunction | ( | x | ) |
#define PRVM_DECLARE_clientfunction | ( | x | ) |
#define PRVM_DECLARE_clientglobaledict | ( | x | ) |
#define PRVM_DECLARE_clientglobaledict | ( | x | ) |
#define PRVM_DECLARE_clientglobalfloat | ( | x | ) |
#define PRVM_DECLARE_clientglobalfloat | ( | x | ) |
#define PRVM_DECLARE_clientglobalfunction | ( | x | ) |
#define PRVM_DECLARE_clientglobalfunction | ( | x | ) |
#define PRVM_DECLARE_clientglobalstring | ( | x | ) |
#define PRVM_DECLARE_clientglobalstring | ( | x | ) |
#define PRVM_DECLARE_clientglobalvector | ( | x | ) |
#define PRVM_DECLARE_clientglobalvector | ( | x | ) |
#define PRVM_DECLARE_field | ( | x | ) |
#define PRVM_DECLARE_field | ( | x | ) |
#define PRVM_DECLARE_function | ( | x | ) |
#define PRVM_DECLARE_function | ( | x | ) |
#define PRVM_DECLARE_global | ( | x | ) |
#define PRVM_DECLARE_global | ( | x | ) |
#define PRVM_DECLARE_menufieldedict | ( | x | ) |
#define PRVM_DECLARE_menufieldedict | ( | x | ) |
#define PRVM_DECLARE_menufieldfloat | ( | x | ) |
#define PRVM_DECLARE_menufieldfloat | ( | x | ) |
#define PRVM_DECLARE_menufieldfunction | ( | x | ) |
#define PRVM_DECLARE_menufieldfunction | ( | x | ) |
#define PRVM_DECLARE_menufieldstring | ( | x | ) |
#define PRVM_DECLARE_menufieldstring | ( | x | ) |
#define PRVM_DECLARE_menufieldvector | ( | x | ) |
#define PRVM_DECLARE_menufieldvector | ( | x | ) |
#define PRVM_DECLARE_menufunction | ( | x | ) |
#define PRVM_DECLARE_menufunction | ( | x | ) |
#define PRVM_DECLARE_menuglobaledict | ( | x | ) |
#define PRVM_DECLARE_menuglobaledict | ( | x | ) |
#define PRVM_DECLARE_menuglobalfloat | ( | x | ) |
#define PRVM_DECLARE_menuglobalfloat | ( | x | ) |
#define PRVM_DECLARE_menuglobalfunction | ( | x | ) |
#define PRVM_DECLARE_menuglobalfunction | ( | x | ) |
#define PRVM_DECLARE_menuglobalstring | ( | x | ) |
#define PRVM_DECLARE_menuglobalstring | ( | x | ) |
#define PRVM_DECLARE_menuglobalvector | ( | x | ) |
#define PRVM_DECLARE_menuglobalvector | ( | x | ) |
#define PRVM_DECLARE_serverfieldedict | ( | x | ) |
#define PRVM_DECLARE_serverfieldedict | ( | x | ) |
#define PRVM_DECLARE_serverfieldfloat | ( | x | ) |
#define PRVM_DECLARE_serverfieldfloat | ( | x | ) |
#define PRVM_DECLARE_serverfieldfunction | ( | x | ) |
#define PRVM_DECLARE_serverfieldfunction | ( | x | ) |
#define PRVM_DECLARE_serverfieldstring | ( | x | ) |
#define PRVM_DECLARE_serverfieldstring | ( | x | ) |
#define PRVM_DECLARE_serverfieldvector | ( | x | ) |
#define PRVM_DECLARE_serverfieldvector | ( | x | ) |
#define PRVM_DECLARE_serverfunction | ( | x | ) |
#define PRVM_DECLARE_serverfunction | ( | x | ) |
#define PRVM_DECLARE_serverglobaledict | ( | x | ) |
#define PRVM_DECLARE_serverglobalfloat | ( | x | ) |
#define PRVM_DECLARE_serverglobalfunction | ( | x | ) |
#define PRVM_DECLARE_serverglobalfunction | ( | x | ) |
#define PRVM_DECLARE_serverglobalstring | ( | x | ) |
#define PRVM_DECLARE_serverglobalvector | ( | x | ) |
#define SV_REQFIELDS (sizeof(sv_reqfields) / sizeof(prvm_required_field_t)) |
Definition at line 278 of file sv_main.c.
Referenced by SV_VM_Setup().
#define SV_REQGLOBALS (sizeof(sv_reqglobals) / sizeof(prvm_required_field_t)) |
Definition at line 357 of file sv_main.c.
Referenced by SV_VM_Setup().
|
static |
Definition at line 1191 of file sv_main.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), client_t::download_deflate, host_client, and i.
Referenced by SV_Download_f().
Definition at line 436 of file sv_main.c.
References Cvar_SetValueQuick(), and cvar_t::value.
Referenced by SV_Init().
|
static |
Definition at line 444 of file sv_main.c.
References sv, server_t::world, and World_PrintAreaStats().
Referenced by SV_Init().
|
static |
Definition at line 273 of file sv_main.c.
Referenced by SV_VM_Setup().
Definition at line 2504 of file sv_main.c.
References server_static_t::clients, host, host_client, host_isclient, i, cvar_t::integer, server_static_t::maxclients, client_t::netconnection, host_static_t::realtime, SV_DropClient(), svs, and netconn_t::timeout.
Referenced by SV_Frame(), and SV_ThreadFunc().
Definition at line 936 of file sv_main.c.
References client_t::active, netconn_t::address, sizebuf_t::allowoverflow, crypto_t::authenticated, client_t::begun, crypto_t::client_idfp, crypto_t::client_issigned, crypto_t::client_keyfp, server_static_t::clients, Con_DPrintf(), Con_Printf(), client_t::connecttime, netconn_t::crypto, crypto_keyfp_recommended_length, sizebuf_t::data, dp_strlcpy, client_t::edict, prvm_prog_t::ExecuteProgram, host, i, server_t::loadgame, sizebuf_t::maxsize, netconn_t::message, client_t::name, client_t::netconnection, NUM_SPAWN_PARMS, client_t::old_name, parm1, client_t::prespawned, PRVM_ED_ClearEdict(), PRVM_EDICT_NUM, PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, client_t::rate, host_static_t::realtime, self, crypto_t::server_idfp, crypto_t::server_issigned, crypto_t::server_keyfp, client_t::spawn_parms, client_t::spawned, sv, SV_SendServerinfo(), svs, SVVM_prog, server_t::time, time, client_t::unreliablemsg, client_t::unreliablemsg_data, and crypto_t::use_aes.
Referenced by NetConn_ServerParsePacket(), and VM_SV_spawnclient().
Definition at line 1628 of file sv_main.c.
References angles, defaultstate, entnum, frame, prvm_edict_t::free, i, int(), prvm_prog_t::max_edicts, server_static_t::maxclients, modelindex, MSG_WriteAngle(), MSG_WriteByte(), MSG_WriteCoord(), MSG_WriteShort(), origin, prvm_edict_t::priv, server_t::protocol, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PRVM_EDICT_NUM, PRVM_serveredictfloat, PRVM_serveredictvector, prvm_edict_t::server, server_t::signon, skin, sv, SV_ModelIndex(), svc_spawnbaseline, svc_spawnbaseline2, svs, SVVM_prog, and VectorCopy.
Referenced by SV_SpawnServer().
|
static |
Definition at line 1209 of file sv_main.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), Con_DPrintf(), server_static_t::csqc_progdata, server_static_t::csqc_progdata_deflated, server_t::csqc_progname, server_t::csqc_progsize, server_static_t::csqc_progsize_deflated, developer_extra, Download_CheckExtensions(), client_t::download_deflate, client_t::download_expectedposition, client_t::download_file, client_t::download_name, client_t::download_started, dp_strlcat, dp_strlcpy, FS_CheckNastyPath(), FS_Close(), FS_FileExists(), FS_FileExtension(), FS_FileFromData(), FS_FileSize(), FS_IsRegisteredQuakePack(), FS_OpenVirtualFile(), FS_WhichPack(), host_client, cvar_t::integer, MAX_QPATH, client_t::name, NULL, client_t::sendsignon, sv, sv_allowdownloads, sv_allowdownloads_archive, sv_allowdownloads_config, sv_allowdownloads_dlcache, sv_allowdownloads_inarchive, SV_ClientCommands(), SV_ClientPrintf(), and svs.
Referenced by SV_Init().
Definition at line 1018 of file sv_main.c.
References server_t::active, buf, client_t::clientconnectcalled, server_static_t::clients, client_t::colors, Con_DPrintf(), Con_Printf(), client_t::download_expectedposition, client_t::download_file, client_t::download_name, client_t::download_started, dpvsnprintf(), client_t::edict, client_t::entitydatabase, client_t::entitydatabase4, client_t::entitydatabase5, EntityFrame4_FreeDatabase(), EntityFrame5_FreeDatabase(), EntityFrame_FreeDatabase(), prvm_prog_t::ExecuteProgram, client_t::frags, FS_Close(), host_client, i, server_t::loadgame, server_static_t::maxclients, MSG_WriteByte(), MSG_WriteShort(), MSG_WriteString(), client_t::name, NetConn_Close(), NetConn_Heartbeat(), NetConn_SendUnreliableMessage(), client_t::netconnection, NULL, server_t::paused, server_t::protocol, PROTOCOL_DARKPLACES8, PRVM_ED_ClearEdict(), PRVM_EDICT_NUM, PRVM_EDICT_TO_PROG, PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, server_t::reliable_datagram, self, sv, SV_BroadcastPrintf(), SV_ClientPrintf(), SV_StopDemoRecording(), svc_disconnect, svc_updatecolors, svc_updatefrags, svc_updatename, svs, SVVM_prog, server_t::time, and time.
Referenced by SV_CheckTimeouts(), SV_Kick_f(), SV_ReadClientMessage(), SV_SendClientMessages(), SV_Shutdown(), Sys_Error(), and VM_SV_dropclient().
double SV_Frame | ( | double | time | ) |
Definition at line 2527 of file sv_main.c.
References server_t::active, ca_dedicated, server_static_t::clients, cls, CON_WARN, host_static_t::dirtytime, prvm_prog_t::ExecuteProgram, prvm_prog_t::fp, host_static_t::framecount, server_t::frametime, prvm_prog_t::globals, host, host_framerate, host_timescale, i, cvar_t::integer, server_static_t::maxclients, min, NetConn_Heartbeat(), NetConn_ServerFrame(), offset, OFS_PARM0, host_static_t::paused, server_t::paused, server_t::pausedstart, server_t::perf_acc_lost, server_t::perf_acc_offset, server_t::perf_acc_offset_max, server_t::perf_acc_offset_samples, server_t::perf_acc_offset_squared, server_t::perf_acc_realtime, server_t::perf_acc_sleeptime, server_t::perf_cpuload, server_t::perf_lost, server_t::perf_offset_avg, server_t::perf_offset_max, server_t::perf_offset_sdev, PRVM_serverfunction, PRVM_serverglobalfloat, R_TimeReport(), host_static_t::realtime, host_static_t::sleeptime, server_t::spawnframe, sqrt(), client_static_t::state, sv, SV_BroadcastPrintf(), SV_CheckTimeouts(), sv_lagreporting_always, sv_lagreporting_strict, sv_maxphysicsframesperserverframe, SV_Physics(), SV_SendClientMessages(), SV_TimingReport(), svs, SVVM_prog, Sys_DirtyTime(), sys_ticrate, server_static_t::threaded, server_t::time, time, and cvar_t::value.
Referenced by Host_Frame().
Definition at line 1607 of file sv_main.c.
References MAX_MODELS, modelindex, server_t::models, NULL, and sv.
Referenced by EntityState5_WriteUpdate(), SV_GetTagIndex(), SV_GetTagMatrix(), SV_LinkEdict(), SV_MarkWriteEntityStateToClient(), SV_PrepareEntityForSending(), SV_PushMove(), VM_SV_frameduration(), VM_SV_frameforname(), VM_SV_setmodel(), VM_SV_setmodelindex(), VM_SV_skel_build(), and VM_SV_skel_create().
model_t * SV_GetModelFromEdict | ( | prvm_edict_t * | ed | ) |
Definition at line 1612 of file sv_main.c.
References prvm_edict_t::free, int(), MAX_MODELS, modelindex, server_t::models, NULL, PRVM_serveredictfloat, sv, and SVVM_prog.
Referenced by getmodel(), SV_CanSeeBox(), SV_GetEntityLocalTagMatrix(), SV_GetExtendedTagInfo(), SV_GetPitchSign(), SV_PointSuperContents(), SV_PushMove(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), VM_SV_gettagindex(), VM_SV_gettaginfo(), and VM_SV_setattachment().
Definition at line 504 of file sv_main.c.
References CF_CLIENT, CF_SERVER_FROM_CLIENT, CF_SHARED, Cmd_AddCommand(), coop, csqc_progcrc, csqc_progname, csqc_progsize, csqc_usedemoprogs, cutscene, Cvar_Callback(), Cvar_RegisterCallback(), Cvar_RegisterVariable(), Cvar_RegisterVirtual(), deathmatch, fraglimit, gamecfg, halflifebsp, host_static_t::hook, host, host_limitlocal, host_timescale, Host_Timescale_c(), Mem_AllocPool, nehx00, nehx01, nehx02, nehx03, nehx04, nehx05, nehx06, nehx07, nehx08, nehx09, nehx10, nehx11, nehx12, nehx13, nehx14, nehx15, nehx16, nehx17, nehx18, nehx19, noexit, nomonsters, NULL, pausable, pr_checkextension, samelevel, saved1, saved2, saved3, saved4, savedgamecfg, scratch1, scratch2, scratch3, scratch4, skill, sv_accelerate, sv_aim, sv_airaccel_qw, sv_airaccel_qw_stretchfactor, sv_airaccel_sideways_friction, sv_airaccelerate, sv_aircontrol, sv_aircontrol_penalty, sv_aircontrol_power, sv_airspeedlimit_nonqw, sv_airstopaccelerate, sv_airstrafeaccel_qw, sv_airstrafeaccelerate, sv_allowdownloads, sv_allowdownloads_archive, sv_allowdownloads_config, sv_allowdownloads_dlcache, sv_allowdownloads_inarchive, sv_areadebug, sv_areagrid_link_SOLID_NOT, sv_areagrid_mingridsize, SV_AreaStats_f(), sv_autodemo_perclient, sv_autodemo_perclient_discardable, sv_autodemo_perclient_nameformat, sv_checkforpacketsduringsleep, sv_clmovement_enable, sv_clmovement_inputtimeout, sv_clmovement_minping, sv_clmovement_minping_disabletime, sv_cullentities_nevercullbmodels, sv_cullentities_pvs, sv_cullentities_stats, sv_cullentities_trace, sv_cullentities_trace_delay, sv_cullentities_trace_delay_players, sv_cullentities_trace_enlarge, sv_cullentities_trace_entityocclusion, sv_cullentities_trace_expand, sv_cullentities_trace_eyejitter, sv_cullentities_trace_prediction, sv_cullentities_trace_prediction_time, sv_cullentities_trace_samples, sv_cullentities_trace_samples_extra, sv_cullentities_trace_samples_players, sv_cullentities_trace_spectators, sv_debugmove, sv_dedicated, sv_disablenotify, SV_Download_f(), sv_echobprint, sv_edgefriction, sv_entpatch, sv_freezenonclients, sv_friction, sv_gameplayfix_blowupfallenzombies, sv_gameplayfix_consistentplayerprethink, sv_gameplayfix_delayprojectiles, sv_gameplayfix_downtracesupportsongroundflag, sv_gameplayfix_droptofloorstartsolid, sv_gameplayfix_droptofloorstartsolid_nudgetocorrect, sv_gameplayfix_easierwaterjump, sv_gameplayfix_findradiusdistancetobox, sv_gameplayfix_fixedcheckwatertransition, sv_gameplayfix_gravityunaffectedbyticrate, sv_gameplayfix_grenadebouncedownslopes, sv_gameplayfix_impactbeforeonground, sv_gameplayfix_multiplethinksperframe, sv_gameplayfix_noairborncorpse, sv_gameplayfix_noairborncorpse_allowsuspendeditems, sv_gameplayfix_nogravityonground, sv_gameplayfix_nosquashentities, sv_gameplayfix_nostepmoveonsteepslopes, sv_gameplayfix_nudgeoutofsolid, sv_gameplayfix_nudgeoutofsolid_separation, sv_gameplayfix_q1bsptracelinereportstexture, sv_gameplayfix_q2airaccelerate, sv_gameplayfix_setmodelrealbox, sv_gameplayfix_slidemoveprojectiles, sv_gameplayfix_stepdown, sv_gameplayfix_stepmultipletimes, sv_gameplayfix_swiminbmodels, sv_gameplayfix_unstickentities, sv_gameplayfix_unstickplayers, sv_gameplayfix_upwardvelocityclearsongroundflag, sv_gravity, sv_idealpitchscale, sv_init_frame_count, SV_InitOperatorCommands(), sv_jumpstep, sv_jumpvelocity, sv_lagreporting_always, sv_lagreporting_strict, sv_legacy_bbox_expand, sv_mapformat_is_quake2, sv_mapformat_is_quake3, sv_maxairspeed, sv_maxairstrafespeed, sv_maxphysicsframesperserverframe, sv_maxrate, sv_maxspeed, sv_maxvelocity, sv_mempool, sv_netport, sv_nostep, sv_onlycsqcnetworking, sv_playerphysicsqc, sv_progs, sv_protocolname, sv_qcstats, sv_random_seed, sv_rollangle, sv_rollspeed, SV_SaveEntFile_f(), sv_sendentities_csqc_randomize_order, SV_ServerOptions(), host_static_t::SV_Shutdown, SV_Shutdown(), sv_sound_land, sv_sound_watersplash, SV_StartDownload_f(), sv_stepheight, sv_stopspeed, sv_threaded, sv_wallfriction, sv_warsowbunny_accel, sv_warsowbunny_airforwardaccel, sv_warsowbunny_backtosideratio, sv_warsowbunny_topspeed, sv_warsowbunny_turnaccel, sv_wateraccelerate, sv_waterfriction, sv_worldbasename, sv_worldmessage, sv_worldname, sv_worldnamenoextension, sv_writepicture_quality, sys_ticrate, teamplay, temp1, and timelimit.
Referenced by Host_Init().
Definition at line 1783 of file sv_main.c.
References server_t::active, host_isclient, cvar_t::integer, server_static_t::maxclients, sv, and svs.
Referenced by SV_Savegame_f().
Definition at line 1411 of file sv_main.c.
References Con_Printf(), dp_strlcpy, i, MAX_MODELS, MAX_QPATH, Mod_FindName(), Mod_ForName(), server_t::model_precache, server_t::models, MSG_WriteByte(), MSG_WriteShort(), MSG_WriteString(), NULL, server_t::protocol, PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_DARKPLACES5, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, server_t::reliable_datagram, ss_loading, server_t::state, sv, svc_precache, svs, server_static_t::threaded, and server_t::worldname.
Referenced by SV_CreateBaseline(), SV_WriteClientdataToMessage(), VM_SV_effect(), VM_SV_precache_model(), and VM_SV_setmodel().
int SV_ParticleEffectIndex | ( | const char * | name | ) |
Definition at line 1522 of file sv_main.c.
References argv(), COM_ParseToken_Simple(), com_token, Con_Printf(), dp_strlcpy, dpsnprintf(), EFFECT_TOTAL, FS_LoadFile(), i, MAX_PARTICLEEFFECTNAME, MAX_QPATH, Mem_Free, name, server_t::particleeffectname, server_t::particleeffectnamesloaded, standardeffectnames, sv, tempmempool, and server_t::worldnamenoextension.
Referenced by VM_SV_particleeffectnum().
Definition at line 1712 of file sv_main.c.
References Con_DPrint(), Con_DPrintf(), CRC_Block(), server_t::csqc_progcrc, server_static_t::csqc_progdata, server_static_t::csqc_progdata_deflated, csqc_progname, server_t::csqc_progname, server_t::csqc_progsize, server_static_t::csqc_progsize_deflated, dp_strlcpy, FS_Deflate(), FS_LoadFile(), int(), Mem_Free, NULL, cvar_t::string, sv, sv_mempool, and svs.
Referenced by SV_VM_Setup().
|
static |
Definition at line 722 of file sv_main.c.
References server_t::active, Con_Print(), FS_WriteFile(), strlen(), sv, va(), server_t::worldmodel, and server_t::worldnamenoextension.
Referenced by SV_Init().
Definition at line 1761 of file sv_main.c.
References client_t::active, server_static_t::clients, client_t::edict, prvm_prog_t::ExecuteProgram, host_client, i, int(), server_static_t::maxclients, NUM_SPAWN_PARMS, parm1, PRVM_EDICT_TO_PROG, PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, self, server_static_t::serverflags, serverflags, client_t::spawn_parms, sv, svs, SVVM_prog, server_t::time, and time.
Referenced by SV_Changelevel_f().
Definition at line 749 of file sv_main.c.
References client_t::begun, buf, client_t::clientcamera, server_static_t::clients, client_t::cmd, Con_DPrintf(), coop, server_t::csqc_progcrc, server_static_t::csqc_progdata, server_t::csqc_progname, server_t::csqc_progsize, client_t::csqcentityframehistory, client_t::csqcentityframehistory_next, client_t::csqcentityscope, client_t::csqcentitysendflags, client_t::csqcnumedicts, Curl_SendRequirements(), sizebuf_t::data, deathmatch, dpsnprintf(), client_t::edict, prvm_prog_t::edicts, engineversion, client_t::entitydatabase, client_t::entitydatabase4, client_t::entitydatabase5, EntityFrame4_AllocDatabase(), EntityFrame4_FreeDatabase(), EntityFrame5_AllocDatabase(), EntityFrame5_FreeDatabase(), EntityFrame_AllocDatabase(), EntityFrame_FreeDatabase(), prvm_prog_t::filecrc, csqcentityframedb_t::framenum, GAME_COOP, GAME_DEATHMATCH, host, host_client, i, cvar_t::integer, client_t::latestframenum, LHNETADDRESS_ToString(), MakeDownloadPacket(), prvm_prog_t::max_edicts, MAX_MODELS, MAX_OSPATH, MAX_QPATH, MAX_SOUNDS, server_static_t::maxclients, sizebuf_t::maxsize, message, netconn_t::message, server_t::model_precache, client_t::movement_count, client_t::movement_highestsequence_seen, client_t::movesequence, MSG_WriteByte(), MSG_WriteLong(), MSG_WriteShort(), MSG_WriteString(), net_connecttimeout, NET_MAXMESSAGE, client_t::netconnection, NULL, csqcentityframedb_t::num, NUM_CSQCENTITYDB_FRAMES, netconn_t::peeraddress, client_t::ping, client_t::prespawned, server_t::protocol, PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, Protocol_NumberForEnum(), PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, PRVM_EDICT_NUM, PRVM_GetString(), PRVM_NUM_FOR_EDICT, PRVM_serveredictfloat, PRVM_serveredictstring, PRVM_serverglobalstring, host_static_t::realtime, client_t::sendsignon, server_t::sound_precache, sounds, client_t::spawned, client_t::stats, client_t::statsdeltabits, cvar_t::string, sv, sv_autodemo_perclient, sv_autodemo_perclient_nameformat, client_t::sv_demo_file, sv_mempool, SV_StartDemoRecording(), SV_StopDemoRecording(), SV_WriteDemoMessage(), svc_cdtrack, svc_print, svc_serverinfo, svc_setview, svc_signonnum, svc_stufftext, svs, SVVM_prog, Sys_TimeString(), SZ_Clear(), server_t::time, usercmd_t::time, netconn_t::timeout, va(), cvar_t::value, client_t::weaponmodel, client_t::weaponmodelindex, and server_t::worldbasename.
Referenced by NetConn_ServerParsePacket(), SV_ConnectClient(), and SV_SpawnServer().
Definition at line 449 of file sv_main.c.
References sys_t::argc, sys_t::argv, bound, ca_disconnected, cl_available, server_static_t::clients, cls, Con_Printf(), coop, Cvar_SetQuick(), Cvar_SetValueQuick(), deathmatch, GAME_BATTLEMECH, GAME_GOODVSBAD2, gamemode, i, cvar_t::integer, IS_NEXUIZ_DERIVED, MAX_SCOREBOARD, server_static_t::maxclients, server_static_t::maxclients_next, Mem_Alloc, client_static_t::state, sv_dedicated, sv_mempool, sv_public, svs, sys, and Sys_CheckParm().
Referenced by SV_Init().
Definition at line 2128 of file sv_main.c.
References client_t::active, server_t::active, server_static_t::clients, Con_DPrintf(), host_client, i, server_static_t::maxclients, NetConn_CloseServerPorts(), NetConn_Heartbeat(), sv, SV_DropClient(), SV_LockThreadMutex, SV_UnlockThreadMutex, SV_VM_Shutdown(), and svs.
Referenced by PRVM_Crash(), SV_Init(), SV_Map_f(), and SV_VM_Shutdown().
Definition at line 1474 of file sv_main.c.
References Con_Printf(), dp_strlcpy, i, MAX_QPATH, MAX_SOUNDS, MSG_WriteByte(), MSG_WriteShort(), MSG_WriteString(), server_t::protocol, PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_DARKPLACES5, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, server_t::reliable_datagram, server_t::sound_precache, ss_loading, server_t::state, sv, and svc_precache.
Referenced by SV_StartPointSound(), SV_StartSound(), VM_SV_ambientsound(), and VM_SV_precache_sound().
void SV_SpawnServer | ( | const char * | map | ) |
Definition at line 1811 of file sv_main.c.
References absmax, absmin, client_t::active, server_t::active, prvm_prog_t::allowworldwrites, angles, client_t::begun, model_t::brush, buffer, server_static_t::changelevel_issued, client_t::clientconnectcalled, server_static_t::clients, cls, Collision_Cache_Reset(), CON_ERROR, Con_Printf(), CON_WARN, coop, Curl_ClearRequirements(), Curl_RequireFile(), current_skill, sizebuf_t::cursize, Cvar_SetQuick(), Cvar_SetValueQuick(), sizebuf_t::data, server_t::datagram, server_t::datagram_buf, deathmatch, developer, dp_strlcpy, dpsnprintf(), client_t::edict, prvm_prog_t::edicts, prvm_prog_t::entityfields, prvm_prog_t::ExecuteProgram, prvm_edict_t::fields, prvm_edict_t::fp, host_static_t::framecount, server_t::frametime, prvm_edict_t::free, FS_FileExists(), FS_LoadFile(), FS_StripExtension(), halflifebsp, host, host_client, host_isclient, hostname, i, prvm_prog_t::inittime, int(), cvar_t::integer, model_brush_t::ishlbsp, model_brush_t::isq2bsp, model_brush_t::isq3bsp, mapname, MAX_MODELS, server_static_t::maxclients, maxs, world_t::maxs, sizebuf_t::maxsize, Mem_Free, message, netconn_t::message, mins, world_t::mins, Mod_ClearUsed(), Mod_ForName(), Mod_FreeQ3Shaders(), Mod_PurgeUnused(), model, server_t::model_precache, modelindex, server_t::models, movetype, MOVETYPE_PUSH, MSG_WriteByte(), MSG_WriteString(), NetConn_Heartbeat(), NetConn_OpenServerPorts(), client_t::netconnection, NULL, NUM_SPAWN_PARMS, parm1, server_t::paused, server_t::protocol, Protocol_EnumForName(), Protocol_Names(), PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, PROTOCOL_UNKNOWN, PRVM_ED_ClearEdict(), PRVM_ED_LoadFromFile(), PRVM_EDICT_NUM, PRVM_EDICT_TO_PROG, PRVM_GetString(), PRVM_serveredictfloat, PRVM_serveredictstring, PRVM_serveredictvector, PRVM_serverfunction, PRVM_serverglobaledict, PRVM_serverglobalfloat, PRVM_serverglobalstring, PRVM_SetEngineString(), host_static_t::realtime, server_t::reliable_datagram, server_t::reliable_datagram_buf, S_StopAllSounds(), SCR_BeginLoadingPlaque(), scr_centertime_off, self, server_static_t::serverflags, serverflags, client_static_t::signon, server_t::signon, server_t::signon_buf, skill, solid, SOLID_BSP, server_t::sound_precache, client_t::spawn_parms, server_t::spawnframe, ss_active, ss_loading, server_t::state, cvar_t::string, sv, SV_CreateBaseline(), sv_entpatch, sv_init_frame_count, sv_mapformat_is_quake2, sv_mapformat_is_quake3, SV_Physics(), sv_protocolname, sv_random_seed, SV_SendServerinfo(), SV_VM_Setup(), SV_VM_Shutdown(), sv_worldbasename, sv_worldmessage, sv_worldname, sv_worldnamenoextension, svc_stufftext, svs, SVVM_prog, Sys_MakeProcessMean(), Sys_MakeProcessNice(), tempmempool, server_t::time, time, model_t::TraceBox, model_t::used, va(), cvar_t::value, VectorClear, VectorCopy, server_t::world, World_SetSize(), World_Start(), server_t::worldbasename, server_t::worldmodel, server_t::worldname, and server_t::worldnamenoextension.
Referenced by SV_Changelevel_f(), SV_Loadgame_f(), SV_Map_f(), and SV_Restart_f().
|
static |
Definition at line 1160 of file sv_main.c.
References client_t::download_file, client_t::download_started, and host_client.
Referenced by SV_Init().
Definition at line 2850 of file sv_main.c.
References cvar_t::integer, NULL, sv_threaded, SV_ThreadFunc(), svs, server_static_t::thread, Thread_CreateMutex, Thread_CreateThread, Thread_HasThreads(), server_static_t::threaded, server_static_t::threadmutex, and server_static_t::threadstop.
Referenced by Host_Init().
Definition at line 2860 of file sv_main.c.
References svs, server_static_t::thread, Thread_DestroyMutex, Thread_WaitThread, server_static_t::threaded, server_static_t::threadmutex, and server_static_t::threadstop.
Referenced by Host_Shutdown().
Definition at line 2716 of file sv_main.c.
References server_t::active, client_t::begun, server_static_t::clients, Con_DPrintf(), developer_extra, prvm_prog_t::ExecuteProgram, prvm_prog_t::fp, server_t::frametime, prvm_prog_t::globals, host, host_client, host_framerate, host_timescale, i, cvar_t::integer, server_static_t::maxclients, min, NetConn_Heartbeat(), NetConn_ServerFrame(), client_t::netconnection, offset, OFS_PARM0, host_static_t::paused, server_t::paused, server_t::pausedstart, server_t::perf_acc_lost, server_t::perf_acc_offset, server_t::perf_acc_offset_max, server_t::perf_acc_offset_samples, server_t::perf_acc_offset_squared, server_t::perf_acc_realtime, server_t::perf_acc_sleeptime, server_t::perf_cpuload, server_t::perf_lost, server_t::perf_offset_avg, server_t::perf_offset_max, server_t::perf_offset_sdev, PRVM_serverfunction, PRVM_serverglobalfloat, sqrt(), sv, SV_CheckTimeouts(), SV_LockThreadMutex, SV_Physics(), SV_SendClientMessages(), SV_TimingReport(), SV_UnlockThreadMutex, svs, SVVM_prog, Sys_DirtyTime(), Sys_Sleep(), sys_ticrate, server_static_t::threadstop, server_t::time, time, and cvar_t::value.
Referenced by SV_StartThread().
const char * SV_TimingReport | ( | char * | buf, |
size_t | buflen ) |
for output in SV_Status_f
Definition at line 2521 of file sv_main.c.
References buf, server_t::perf_cpuload, server_t::perf_lost, server_t::perf_offset_avg, server_t::perf_offset_max, server_t::perf_offset_sdev, sv, and va().
Referenced by SV_Frame(), SV_Status_f(), and SV_ThreadFunc().
Definition at line 2314 of file sv_main.c.
References absmax, absmin, aiment, ammo_cells, ammo_nails, ammo_rockets, ammo_shells, angles, armortype, armorvalue, avelocity, prvm_prog_t::begin_increase_edicts, prvm_prog_t::builtins, button0, button1, button2, chain, classname, cmd_local, colormap, Con_DPrintf(), coop, prvm_prog_t::count_edicts, currentammo, deadflag, deathmatch, dmg_inflictor, dmg_save, dmg_take, prvm_prog_t::edictprivate_size, effects, prvm_prog_t::end_increase_edicts, enemy, prvm_prog_t::error_cmd, prvm_prog_t::ExecuteProgram, prvm_prog_t::extensionstring, fixangle, prvm_prog_t::flag, flags, force_retouch, found_secrets, frags, frame, frametime, prvm_prog_t::free_edict, goalentity, groundentity, health, Host_Error(), ideal_yaw, idealpitch, impulse, prvm_prog_t::init_cmd, prvm_prog_t::init_edict, items, killed_monsters, prvm_prog_t::limit_edicts, prvm_prog_t::load_edict, prvm_prog_t::loadintoworld, ltime, mapname, MAX_EDICTS, prvm_prog_t::max_edicts, max_health, server_static_t::maxclients, maxs, Mem_AllocPool, message, mins, model, modelindex, movedir, movetype, msg_entity, prvm_prog_t::name, netname, nextthink, noise, noise1, noise2, noise3, NULL, prvm_prog_t::numbuiltins, oldorigin, origin, other, owner, parm1, parm10, parm11, parm12, parm13, parm14, parm15, parm16, parm2, parm3, parm4, parm5, parm6, parm7, parm8, parm9, PROGHEADER_CRC, PROGHEADER_CRC_TENEBRAE, prvm_prog_t::progs_crc, prvm_prog_t::progs_mempool, server_t::protocol, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, PRVM_ED_FindFieldOffset_FromStruct, PRVM_ED_FindGlobalOffset_FromStruct, PRVM_OP_STATE, PRVM_Prog_Init(), PRVM_Prog_Load(), punchangle, prvm_prog_t::reserved_edicts, prvm_prog_t::reset_cmd, self, serverflags, size, skin, solid, sounds, spawnflags, cvar_t::string, sv, SV_CheckRequiredFuncs(), SV_Prepare_CSQC(), sv_progs, SV_REQFIELDS, sv_reqfields, SV_REQGLOBALS, sv_reqglobals, svs, SVVM_begin_increase_edicts(), SVVM_count_edicts(), SVVM_end_increase_edicts(), SVVM_ExecuteProgram(), SVVM_free_edict(), SVVM_init_cmd(), SVVM_init_edict(), SVVM_load_edict(), SVVM_prog, SVVM_reset_cmd(), takedamage, target, targetname, team, teamplay, teleport_time, time, total_monsters, total_secrets, trace_allsolid, trace_endpos, trace_ent, trace_fraction, trace_inopen, trace_inwater, trace_plane_dist, trace_plane_normal, trace_startsolid, v_angle, v_forward, v_right, v_up, velocity, view_ofs, VM_CustomStats_Clear(), vm_sv_builtins, vm_sv_extensions, vm_sv_numbuiltins, waterlevel, watertype, weapon, weaponframe, weaponmodel, world, and yaw_speed.
Referenced by SV_SpawnServer().
Definition at line 1788 of file sv_main.c.
References prvm_prog_t::ExecuteProgram, prvm_prog_t::loaded, PRVM_Prog_Reset(), PRVM_serverfunction, PRVM_serverglobalfloat, sv, SV_Shutdown(), SVVM_prog, server_t::time, and time.
Referenced by SV_Shutdown(), and SV_SpawnServer().
|
static |
Definition at line 2164 of file sv_main.c.
References sv, server_t::world, and World_UnlinkAll().
Referenced by SV_VM_Setup().
|
static |
Definition at line 2264 of file sv_main.c.
References Con_Printf(), prvm_edict_t::free, i, model, models, movetype, MOVETYPE_STEP, prvm_prog_t::num_edicts, PRVM_EDICT_NUM, PRVM_serveredictfloat, PRVM_serveredictstring, and solid.
Referenced by SV_VM_Setup().
|
static |
Definition at line 2170 of file sv_main.c.
References prvm_prog_t::edicts, prvm_edict_t::free, i, and SV_LinkEdict().
Referenced by SV_VM_Setup().
|
static |
Definition at line 2234 of file sv_main.c.
References angles, server_static_t::clients, colormap, server_t::csqcentityversion, frame, i, server_static_t::maxclients, model, modelindex, nextthink, origin, PRVM_NUM_FOR_EDICT, PRVM_serveredictfloat, PRVM_serveredictstring, PRVM_serveredictvector, skin, solid, sv, svs, takedamage, VectorClear, VM_RemoveEdictSkeleton(), server_t::world, World_Physics_RemoveFromEntity(), World_Physics_RemoveJointFromEntity(), and World_UnlinkEdict().
Referenced by SV_VM_Setup().
|
static |
Definition at line 2181 of file sv_main.c.
References clientcolors, server_static_t::clients, colormap, crypto_encryptmethod, crypto_idfp, crypto_idfp_signed, crypto_keyfp, crypto_mykeyfp, crypto_signmethod, LHNETADDRESS_ToString(), server_static_t::maxclients, netaddress, netname, NULL, playermodel, playerskin, prvm_edict_t::priv, PRVM_NUM_FOR_EDICT, PRVM_serveredictfloat, PRVM_serveredictstring, PRVM_SetEngineString(), prvm_edict_t::server, svs, and team.
Referenced by SV_VM_Setup().
|
static |
Definition at line 2292 of file sv_main.c.
References current_skill, deathmatch, GAME_TRANSFUSION, gamemode, cvar_t::integer, PRVM_serveredictfloat, SPAWNFLAG_NOT_DEATHMATCH, SPAWNFLAG_NOT_EASY, SPAWNFLAG_NOT_HARD, SPAWNFLAG_NOT_MEDIUM, and spawnflags.
Referenced by SV_VM_Setup().
cvar_t coop = {CF_SERVER, "coop","0", "coop mode, 0 = no coop, 1 = coop mode, multiple players playing through the singleplayer game (coop mode also shuts off deathmatch)"} |
Definition at line 43 of file sv_main.c.
Referenced by SV_Init(), SV_SendServerinfo(), SV_ServerOptions(), SV_SpawnServer(), and SV_VM_Setup().
cvar_t deathmatch = {CF_SERVER, "deathmatch","0", "deathmatch mode, values depend on mod but typically 0 = no deathmatch, 1 = normal deathmatch with respawning weapons, 2 = weapons stay (players can only pick up new weapons)"} |
Definition at line 44 of file sv_main.c.
Referenced by SV_Init(), SV_SendServerinfo(), SV_ServerOptions(), SV_SpawnServer(), SV_VM_Setup(), and SVVM_load_edict().
cvar_t fraglimit = {CF_SERVER | CF_NOTIFY, "fraglimit","0", "ends level if this many frags is reached by any player"} |
Definition at line 45 of file sv_main.c.
Referenced by M_GameOptions_Draw(), M_NetStart_Change(), SV_Init(), and SV_WriteClientdataToMessage().
cvar_t halflifebsp = {CF_SERVER, "halflifebsp", "0", "indicates the current map is hlbsp format (useful to know because of different bounding box sizes)"} |
Definition at line 215 of file sv_main.c.
Referenced by SV_Init(), and SV_SpawnServer().
client_t* host_client |
Definition at line 29 of file sv_main.c.
Referenced by Cmd_ExecuteString(), Download_CheckExtensions(), DropPunchAngle(), EntityFrame5_LostFrame(), EntityFrame5_WriteFrame(), NetConn_ServerParsePacket(), Protocol_UpdateClientStats(), Protocol_WriteStatsReliable(), RCon_Execute(), SV_Accelerate(), SV_AirAccelerate(), SV_AirMove(), SV_ApplyClientMove(), SV_Begin_f(), SV_CheckTimeouts(), SV_ClientCommands(), SV_ClientPrint(), SV_Color_f(), SV_Download_f(), SV_DropClient(), SV_Ent_Create_f(), SV_Ent_Remove_f(), SV_ExecuteClientMoves(), SV_Fly_f(), SV_FrameAck(), SV_FrameLost(), SV_Give_f(), SV_God_f(), SV_Kick_f(), SV_Kill_f(), SV_Name(), SV_Name_f(), SV_Noclip_f(), SV_Notarget_f(), SV_Pause_f(), SV_Physics(), SV_Physics_ClientEntity(), SV_Physics_ClientEntity_PostThink(), SV_Physics_ClientEntity_PreThink(), SV_Physics_ClientMove(), SV_Pings_f(), SV_Playermodel_f(), SV_PlayerPhysics(), SV_Playerskin_f(), SV_PModel_f(), SV_PreSpawn_f(), SV_Rate_BurstSize_f(), SV_Rate_f(), SV_ReadClientMessage(), SV_ReadClientMove(), SV_SaveSpawnparms(), SV_Say(), SV_SendClientDatagram(), SV_SendClientMessages(), SV_SendCvar_f(), SV_SendServerinfo(), SV_SetIdealPitch(), SV_Shutdown(), SV_Spawn_f(), SV_SpawnServer(), SV_StartDownload_f(), SV_Status_f(), SV_Tell_f(), SV_ThreadFunc(), SV_UpdateToReliableMessages(), SV_UserFriction(), SV_WaterJump(), SV_WaterMove(), SV_WriteClientdataToMessage(), SV_WriteEntitiesToClient(), Sys_Error(), VM_SV_clientcommand(), VM_SV_dropclient(), and VM_SV_stuffcmd().
|
extern |
Definition at line 44 of file host.c.
Referenced by Host_InitLocal(), SV_Frame(), and SV_ThreadFunc().
cvar_t host_limitlocal = {CF_SERVER, "host_limitlocal", "0", "whether to apply rate limiting to the local player in a listen server (only useful for testing)"} |
Definition at line 150 of file sv_main.c.
Referenced by SV_Init(), and SV_SendClientDatagram().
cvar_t host_timescale = {CF_CLIENT | CF_SERVER, "host_timescale", "1.0", "controls game speed, 0.5 is half speed, 2 is double speed"} |
Definition at line 53 of file sv_main.c.
Referenced by CL_Frame(), CL_UpdateMoveVars(), SV_Frame(), SV_Init(), SV_ThreadFunc(), and SV_WriteClientdataToMessage().
|
extern |
Definition at line 82 of file netconn.c.
Referenced by NetConn_Init(), NetConn_Open(), NetConn_ServerParsePacket(), and SV_SendServerinfo().
cvar_t pausable = {CF_SERVER, "pausable","1", "allow players to pause or not (otherwise, only the server admin can)"} |
Definition at line 49 of file sv_main.c.
Referenced by SV_Init(), and SV_Pause_f().
cvar_t pr_checkextension = {CF_SERVER | CF_READONLY, "pr_checkextension", "1", "indicates to QuakeC that the standard quakec extensions system is available (if 0, quakec should not attempt to use extensions)"} |
Definition at line 50 of file sv_main.c.
Referenced by SV_Init().
cvar_t saved1 = {CF_SERVER | CF_ARCHIVE, "saved1", "0", "unused cvar in quake that is saved to config.cfg on exit, can be used by mods"} |
Definition at line 178 of file sv_main.c.
Referenced by SV_Init().
cvar_t saved2 = {CF_SERVER | CF_ARCHIVE, "saved2", "0", "unused cvar in quake that is saved to config.cfg on exit, can be used by mods"} |
Definition at line 179 of file sv_main.c.
Referenced by SV_Init().
cvar_t saved3 = {CF_SERVER | CF_ARCHIVE, "saved3", "0", "unused cvar in quake that is saved to config.cfg on exit, can be used by mods"} |
Definition at line 180 of file sv_main.c.
Referenced by SV_Init().
cvar_t saved4 = {CF_SERVER | CF_ARCHIVE, "saved4", "0", "unused cvar in quake that is saved to config.cfg on exit, can be used by mods"} |
Definition at line 181 of file sv_main.c.
Referenced by SV_Init().
cvar_t savedgamecfg = {CF_SERVER | CF_ARCHIVE, "savedgamecfg", "0", "unused cvar in quake that is saved to config.cfg on exit, can be used by mods"} |
Definition at line 182 of file sv_main.c.
Referenced by SV_Init().
|
extern |
Definition at line 129 of file cl_screen.c.
Referenced by SCR_CenterPrint(), SCR_CheckDrawCenterString(), and SV_SpawnServer().
cvar_t skill = {CF_SERVER, "skill","1", "difficulty level of game, affects monster layouts in levels, 0 = easy, 1 = normal, 2 = hard, 3 = nightmare (same layout as hard but monsters fire twice)"} |
Definition at line 52 of file sv_main.c.
Referenced by M_GameOptions_Draw(), M_NetStart_Change(), SV_Init(), SV_Loadgame_f(), and SV_SpawnServer().
|
static |
Definition at line 232 of file sv_main.c.
Referenced by SV_ParticleEffectIndex().
server_t sv |
local server
Definition at line 223 of file sv_main.c.
Referenced by CL_BeginDownloads(), CL_KeepaliveMessage(), CL_ParseServerInfo(), CL_Startdemos_f(), Cvar_SetQuick_Internal(), DropPunchAngle(), droptofloor_bsp_failcond(), EntityFrame5_WriteFrame(), EntityFrameCSQC_WriteFrame(), EntityFrameQuake_WriteFrame(), EntityState5_WriteUpdate(), EntityState_WriteFields(), FS_GameDir_f(), Host_Frame(), Host_Init(), M_GameOptions_Key(), M_Main_Key(), M_Menu_Main_f(), M_Menu_Save_f(), M_SinglePlayer_Key(), M_Transfusion_Skill_Key(), ModList_Enable(), Net_Heartbeat_f(), NetConn_BuildStatusResponse(), NetConn_ClientFrame(), NetConn_Close(), NetConn_Heartbeat(), NetConn_IsLocalGame(), NetConn_ServerParsePacket(), NetConn_sv_netport_Callback(), PHYS_NudgeOutOfSolid(), PHYS_TestEntityPosition(), PrintStats(), Protocol_WriteStatsReliable(), PRVM_ED_CallPostspawnFunction(), PRVM_ED_CallPrespawnFunction(), PRVM_ED_CallSpawnFunction(), PRVM_GarbageCollection(), QW_CL_RequestNextDownload(), R_DrawDebugModel(), Sbar_ShowFPS(), SCR_DrawNetGraph(), SCR_SetUpToDrawConsole(), SV_Accelerate(), SV_AirAccelerate(), SV_AirMove(), SV_AreaStats_f(), SV_Begin_f(), SV_CanSeeBox(), SV_Changelevel_f(), SV_CheckContentsTransition(), SV_Color_f(), SV_ConnectClient(), SV_CreateBaseline(), SV_Download_f(), SV_DropClient(), SV_EntitiesInBox(), SV_ExecuteClientMoves(), SV_FlushBroadcastMessages(), SV_Frame(), SV_GetEntityLocalTagMatrix(), SV_GetModelByIndex(), SV_GetModelFromEdict(), SV_GetTagMatrix(), SV_Gravity(), SV_Impact(), SV_IsLocalServer(), SV_Kick_f(), SV_Kill_f(), SV_LinkEdict(), SV_LinkEdict_TouchAreaGrid_Call(), SV_Loadgame_f(), SV_Map_f(), SV_MarkWriteEntityStateToClient(), SV_MaxPlayers_f(), SV_ModelIndex(), SV_Name(), SV_ParticleEffectIndex(), SV_Pause_f(), SV_Physics(), SV_Physics_ClientEntity(), SV_Physics_ClientEntity_NoThink(), SV_Physics_ClientEntity_PostThink(), SV_Physics_ClientEntity_PreThink(), SV_Physics_ClientMove(), SV_Physics_Entity(), SV_Physics_Pusher(), SV_Physics_Step(), SV_Physics_Toss(), SV_Ping_f(), SV_Pings_f(), SV_PlayerPhysics(), SV_PointSuperContents(), SV_Prepare_CSQC(), SV_PrepareEntitiesForSending(), SV_PrepareEntityForSending(), SV_PreSpawn_f(), SV_PushMove(), SV_ReadClientMessage(), SV_ReadClientMove(), SV_Restart_f(), SV_RunThink(), SV_SaveEntFile_f(), SV_Savegame_f(), SV_Savegame_to(), SV_SaveSpawnparms(), SV_SendClientDatagram(), SV_SendClientMessages(), SV_SendCvar_f(), SV_SendServerinfo(), SV_Shutdown(), SV_SoundIndex(), SV_Spawn_f(), SV_SpawnServer(), SV_StartEffect(), SV_StartParticle(), SV_StartPointSound(), SV_StartSound(), SV_Status_f(), SV_ThreadFunc(), SV_TimingReport(), SV_TraceBox(), SV_TraceLine(), SV_TracePoint(), SV_UpdateToReliableMessages(), SV_UserFriction(), SV_Viewframe_f(), SV_Viewmodel_f(), SV_Viewnext_f(), SV_Viewprev_f(), SV_VM_ConsoleCommand(), SV_VM_Setup(), SV_VM_Shutdown(), SV_WalkMove(), SV_WaterJump(), SV_WaterMove(), SV_WriteClientdataToMessage(), SV_WriteEntitiesToClient(), SVVM_begin_increase_edicts(), SVVM_free_edict(), SVVM_reset_cmd(), Sys_Error(), VM_bprint(), VM_changelevel(), VM_isserver(), VM_M_WriteAngle(), VM_M_WriteCoord(), VM_M_WriteDest(), VM_sprint(), VM_SV_ambientsound(), VM_SV_checkclient(), VM_SV_checkpvs(), VM_SV_droptofloor(), VM_SV_getlight(), VM_SV_gettaginfo(), VM_SV_lightstyle(), VM_SV_makestatic(), VM_SV_modelnameforindex(), VM_SV_newcheckclient(), VM_SV_pointparticles(), VM_SV_setcolor(), VM_SV_setmodel(), VM_SV_setmodelindex(), VM_SV_setpause(), VM_SV_skel_build(), VM_SV_te_beam(), VM_SV_te_blood(), VM_SV_te_bloodshower(), VM_SV_te_customflash(), VM_SV_te_explosion(), VM_SV_te_explosion2(), VM_SV_te_explosionquad(), VM_SV_te_explosionrgb(), VM_SV_te_flamejet(), VM_SV_te_gunshot(), VM_SV_te_gunshotquad(), VM_SV_te_knightspike(), VM_SV_te_lavasplash(), VM_SV_te_lightning1(), VM_SV_te_lightning2(), VM_SV_te_lightning3(), VM_SV_te_particlecube(), VM_SV_te_particlerain(), VM_SV_te_particlesnow(), VM_SV_te_plasmaburn(), VM_SV_te_smallflash(), VM_SV_te_spark(), VM_SV_te_spike(), VM_SV_te_spikequad(), VM_SV_te_superspike(), VM_SV_te_superspikequad(), VM_SV_te_tarexplosion(), VM_SV_te_teleport(), VM_SV_te_wizspike(), VM_SV_trailparticles(), VM_SV_WriteAngle(), VM_SV_WriteCoord(), and WriteDest().
cvar_t sv_accelerate = {CF_SERVER, "sv_accelerate", "10", "rate at which a player accelerates to sv_maxspeed"} |
Definition at line 55 of file sv_main.c.
Referenced by SV_Accelerate(), SV_AirAccelerate(), SV_Init(), SV_WaterMove(), and SV_WriteClientdataToMessage().
cvar_t sv_aim = {CF_SERVER | CF_ARCHIVE, "sv_aim", "2", "maximum cosine angle for quake's vertical autoaim, a value above 1 completely disables the autoaim, quake used 0.93"} |
Definition at line 56 of file sv_main.c.
Referenced by SV_Init(), and VM_SV_aim().
cvar_t sv_airaccel_qw = {CF_SERVER, "sv_airaccel_qw", "1", "ratio of QW-style air control as opposed to simple acceleration; when < 0, the speed is clamped against the maximum allowed forward speed after the move"} |
Definition at line 57 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_airaccel_qw_stretchfactor = {CF_SERVER, "sv_airaccel_qw_stretchfactor", "0", "when set, the maximum acceleration increase the player may get compared to forward-acceleration when strafejumping"} |
Definition at line 58 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_airaccel_sideways_friction = {CF_SERVER, "sv_airaccel_sideways_friction", "", "anti-sideways movement stabilization (reduces speed gain when zigzagging); when < 0, only so much friction is applied that braking (by accelerating backwards) cannot be stronger"} |
Definition at line 59 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_airaccelerate = {CF_SERVER, "sv_airaccelerate", "-1", "rate at which a player accelerates to sv_maxairspeed while in the air, if less than 0 the sv_accelerate variable is used instead"} |
Definition at line 60 of file sv_main.c.
Referenced by SV_AirAccelerate(), SV_Init(), and SV_WriteClientdataToMessage().
Definition at line 66 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_aircontrol_penalty = {CF_SERVER, "sv_aircontrol_penalty", "0", "deceleration while using CPMA-style air control"} |
Definition at line 68 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_aircontrol_power = {CF_SERVER, "sv_aircontrol_power", "2", "CPMA-style air control exponent"} |
Definition at line 67 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_airspeedlimit_nonqw = {CF_SERVER, "sv_airspeedlimit_nonqw", "0", "when set, this is a soft speed limit while in air when using airaccel_qw not equal to 1"} |
Definition at line 62 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_airstopaccelerate = {CF_SERVER, "sv_airstopaccelerate", "0", "when set, replacement for sv_airaccelerate when moving backwards"} |
Definition at line 61 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_airstrafeaccel_qw = {CF_SERVER, "sv_airstrafeaccel_qw", "0", "when set, replacement for sv_airaccel_qw when just strafing"} |
Definition at line 65 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_airstrafeaccelerate = {CF_SERVER, "sv_airstrafeaccelerate", "0", "when set, replacement for sv_airaccelerate when just strafing"} |
Definition at line 63 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_allowdownloads = {CF_SERVER, "sv_allowdownloads", "1", "whether to allow clients to download files from the server (does not affect http downloads)"} |
Definition at line 69 of file sv_main.c.
Referenced by SV_Download_f(), and SV_Init().
cvar_t sv_allowdownloads_archive = {CF_SERVER, "sv_allowdownloads_archive", "0", "whether to allow downloads of archives (pak/pk3)"} |
Definition at line 70 of file sv_main.c.
Referenced by SV_Download_f(), and SV_Init().
cvar_t sv_allowdownloads_config = {CF_SERVER, "sv_allowdownloads_config", "0", "whether to allow downloads of config files (cfg)"} |
cvar_t sv_allowdownloads_dlcache = {CF_SERVER, "sv_allowdownloads_dlcache", "0", "whether to allow downloads of dlcache files (dlcache/)"} |
Definition at line 72 of file sv_main.c.
Referenced by SV_Download_f(), and SV_Init().
cvar_t sv_allowdownloads_inarchive = {CF_SERVER, "sv_allowdownloads_inarchive", "0", "whether to allow downloads from archives (pak/pk3)"} |
Definition at line 73 of file sv_main.c.
Referenced by SV_Download_f(), and SV_Init().
cvar_t sv_areadebug = {CF_SERVER, "sv_areadebug", "0", "disables physics culling for debugging purposes (only for development)"} |
Definition at line 164 of file sv_main.c.
Referenced by SV_EntitiesInBox(), and SV_Init().
cvar_t sv_areagrid_link_SOLID_NOT = {CF_SERVER | CF_NOTIFY, "sv_areagrid_link_SOLID_NOT", "1", "set to 0 to prevent SOLID_NOT entities from being linked to the area grid, and unlink any that are already linked (in the code paths that would otherwise link them), for better performance"} |
cvar_t sv_autodemo_perclient = {CF_SERVER | CF_ARCHIVE, "sv_autodemo_perclient", "0", "set to 1 to enable autorecorded per-client demos (they'll start to record at the beginning of a match); set it to 2 to also record client->server packets (for debugging)"} |
Definition at line 211 of file sv_main.c.
Referenced by SV_Init(), SV_ReadClientMessage(), and SV_SendServerinfo().
cvar_t sv_autodemo_perclient_discardable = {CF_SERVER | CF_ARCHIVE, "sv_autodemo_perclient_discardable", "0", "Allow game code to decide whether a demo should be kept or discarded."} |
Definition at line 213 of file sv_main.c.
Referenced by SV_Init(), and SV_StopDemoRecording().
cvar_t sv_autodemo_perclient_nameformat = {CF_SERVER | CF_ARCHIVE, "sv_autodemo_perclient_nameformat", "sv_autodemos/%Y-%m-%d_%H-%M", "The format of the sv_autodemo_perclient filename, followed by the map name, the client number and the IP address + port number, separated by underscores (the date is encoded using strftime escapes)" } |
Definition at line 212 of file sv_main.c.
Referenced by SV_Init(), and SV_SendServerinfo().
cvar_t sv_checkforpacketsduringsleep = {CF_SERVER, "sv_checkforpacketsduringsleep", "0", "uses select() function to wait between frames which can be interrupted by packets being received, instead of Sleep()/usleep()/SDL_Sleep() functions which do not check for packets"} |
Definition at line 76 of file sv_main.c.
Referenced by SV_Init(), and Sys_Sleep().
cvar_t sv_clmovement_enable = {CF_SERVER, "sv_clmovement_enable", "1", "whether to allow clients to use cl_movement prediction, which can cause choppy movement on the server which may annoy other players"} |
Definition at line 77 of file sv_main.c.
Referenced by SV_ExecuteClientMoves(), and SV_Init().
cvar_t sv_clmovement_inputtimeout = {CF_SERVER, "sv_clmovement_inputtimeout", "0.1", "when a client does not send input for this many seconds (max 0.1), force them to move anyway (unlike QuakeWorld)"} |
Definition at line 80 of file sv_main.c.
Referenced by SV_ExecuteClientMoves(), and SV_Init().
cvar_t sv_clmovement_minping = {CF_SERVER, "sv_clmovement_minping", "0", "if client ping is below this time in milliseconds, then their ability to use cl_movement prediction is disabled for a while (as they don't need it)"} |
Definition at line 78 of file sv_main.c.
Referenced by SV_ExecuteClientMoves(), and SV_Init().
cvar_t sv_clmovement_minping_disabletime = {CF_SERVER, "sv_clmovement_minping_disabletime", "1000", "when client falls below minping, disable their prediction for this many milliseconds (should be at least 1000 or else their prediction may turn on/off frequently)"} |
Definition at line 79 of file sv_main.c.
Referenced by SV_ExecuteClientMoves(), and SV_Init().
cvar_t sv_cullentities_nevercullbmodels = {CF_SERVER, "sv_cullentities_nevercullbmodels", "0", "if enabled the clients are always notified of moving doors and lifts and other submodels of world (warning: eats a lot of network bandwidth on some levels!)"} |
Definition at line 81 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_cullentities_pvs = {CF_SERVER, "sv_cullentities_pvs", "1", "fast but loose culling of hidden entities"} |
Definition at line 82 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_cullentities_stats = {CF_SERVER, "sv_cullentities_stats", "0", "displays stats on network entities culled by various methods for each client"} |
Definition at line 83 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteEntitiesToClient().
cvar_t sv_cullentities_trace = {CF_SERVER, "sv_cullentities_trace", "0", "somewhat slow but very tight culling of hidden entities, minimizes network traffic and makes wallhack cheats useless"} |
Definition at line 84 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_cullentities_trace_delay = {CF_SERVER, "sv_cullentities_trace_delay", "1", "number of seconds until the entity gets actually culled (also applies to portal camera eyes even if sv_cullentities_trace is 0)"} |
Definition at line 85 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_cullentities_trace_delay_players = {CF_SERVER, "sv_cullentities_trace_delay_players", "0.2", "number of seconds until the entity gets actually culled if it is a player entity"} |
Definition at line 86 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_cullentities_trace_enlarge = {CF_SERVER, "sv_cullentities_trace_enlarge", "0", "box enlargement for entity culling (also applies to portal camera eyes even if sv_cullentities_trace is 0)"} |
Definition at line 87 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_cullentities_trace_entityocclusion = {CF_SERVER, "sv_cullentities_trace_entityocclusion", "0", "also check if doors and other bsp models are in the way"} |
Definition at line 92 of file sv_main.c.
Referenced by SV_CanSeeBox(), and SV_Init().
cvar_t sv_cullentities_trace_expand = {CF_SERVER, "sv_cullentities_trace_expand", "0", "box is expanded by this many units for entity culling (also applies to portal camera eyes even if sv_cullentities_trace is 0)"} |
Definition at line 88 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_cullentities_trace_eyejitter = {CF_SERVER, "sv_cullentities_trace_eyejitter", "16", "jitter the eye by this much for each trace (also applies to portal camera eyes even if sv_cullentities_trace is 0)"} |
Definition at line 89 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_cullentities_trace_prediction = {CF_SERVER, "sv_cullentities_trace_prediction", "1", "also trace from the predicted player position"} |
Definition at line 90 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteEntitiesToClient().
cvar_t sv_cullentities_trace_prediction_time = {CF_SERVER, "sv_cullentities_trace_prediction_time", "0.2", "maximum ping time to predict in seconds"} |
Definition at line 91 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteEntitiesToClient().
cvar_t sv_cullentities_trace_samples = {CF_SERVER, "sv_cullentities_trace_samples", "2", "number of samples to test for entity culling"} |
Definition at line 93 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_cullentities_trace_samples_extra = {CF_SERVER, "sv_cullentities_trace_samples_extra", "2", "number of samples to test for entity culling when the entity affects its surroundings by e.g. dlight (also applies to portal camera eyes even if sv_cullentities_trace is 0)"} |
Definition at line 94 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_cullentities_trace_samples_players = {CF_SERVER, "sv_cullentities_trace_samples_players", "8", "number of samples to test for entity culling when the entity is a player entity"} |
Definition at line 95 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_cullentities_trace_spectators = {CF_SERVER, "sv_cullentities_trace_spectators", "0", "enables trace entity culling for clients that are spectating"} |
Definition at line 96 of file sv_main.c.
Referenced by SV_Init(), and SV_MarkWriteEntityStateToClient().
cvar_t sv_debugmove = {CF_SERVER | CF_NOTIFY, "sv_debugmove", "0", "disables collision detection optimizations for debugging purposes"} |
Definition at line 97 of file sv_main.c.
Referenced by CL_TraceBox(), CL_TraceLine(), CL_TracePoint(), SV_Init(), SV_TraceBox(), SV_TraceLine(), and SV_TracePoint().
cvar_t sv_dedicated = {CF_SERVER | CF_READONLY, "sv_dedicated", "0", "for scripts and SVQC to detect when they're running on a dedicated server"} |
Definition at line 98 of file sv_main.c.
Referenced by SV_Init(), and SV_ServerOptions().
cvar_t sv_disablenotify = {CF_SERVER, "sv_disablenotify", "0", "suppress broadcast prints when certain cvars are changed (CF_NOTIFY flag in engine code)"} |
Definition at line 42 of file sv_main.c.
Referenced by Cvar_SetQuick_Internal(), and SV_Init().
cvar_t sv_echobprint = {CF_SERVER | CF_ARCHIVE, "sv_echobprint", "1", "prints gamecode bprint() calls to server console"} |
Definition at line 99 of file sv_main.c.
Referenced by SV_BroadcastPrint(), and SV_Init().
cvar_t sv_edgefriction = {CF_SERVER, "edgefriction", "1", "how much you slow down when nearing a ledge you might fall off, multiplier of sv_friction (Quake used 2, QuakeWorld used 1 due to a bug in physics code)"} |
Definition at line 100 of file sv_main.c.
Referenced by SV_Init(), SV_UserFriction(), and SV_WriteClientdataToMessage().
cvar_t sv_entpatch = {CF_SERVER, "sv_entpatch", "1", "enables loading of .ent files to override entities in the bsp (for example Threewave CTF server pack contains .ent patch files enabling play of CTF on id1 maps)"} |
Definition at line 101 of file sv_main.c.
Referenced by SV_Init(), and SV_SpawnServer().
Definition at line 103 of file sv_main.c.
Referenced by SV_Init(), SV_UserFriction(), SV_WaterMove(), and SV_WriteClientdataToMessage().
cvar_t sv_gameplayfix_blowupfallenzombies = {CF_SERVER, "sv_gameplayfix_blowupfallenzombies", "1", "causes findradius to detect SOLID_NOT entities such as zombies and corpses on the floor, allowing splash damage to apply to them"} |
Definition at line 104 of file sv_main.c.
Referenced by SV_Init(), VM_CL_findradius(), and VM_SV_findradius().
cvar_t sv_gameplayfix_consistentplayerprethink = {CF_SERVER, "sv_gameplayfix_consistentplayerprethink", "0", "improves fairness in multiplayer by running all PlayerPreThink functions (which fire weapons) before performing physics, then running all PlayerPostThink functions"} |
Definition at line 105 of file sv_main.c.
Referenced by SV_Init(), and SV_Physics().
cvar_t sv_gameplayfix_delayprojectiles = {CF_SERVER, "sv_gameplayfix_delayprojectiles", "1", "causes entities to not move on the same frame they are spawned, meaning that projectiles wait until the next frame to perform their first move, giving proper interpolation and rocket trails, but making weapons harder to use at low framerates"} |
Definition at line 106 of file sv_main.c.
Referenced by SV_Init(), SV_Physics(), and SV_Physics_Entity().
cvar_t sv_gameplayfix_downtracesupportsongroundflag = {CF_SERVER, "sv_gameplayfix_downtracesupportsongroundflag", "1", "prevents very short moves from clearing onground (which may make the player stick to the floor at high netfps), fixes groundentity not being set when walking onto a mover with sv_gameplayfix_nogravityonground"} |
Definition at line 128 of file sv_main.c.
Referenced by SV_Init(), and SV_WalkMove().
cvar_t sv_gameplayfix_droptofloorstartsolid = {CF_SERVER, "sv_gameplayfix_droptofloorstartsolid", "1", "prevents items and monsters that start in a solid area from falling out of the level (makes droptofloor treat trace_startsolid as an acceptable outcome)"} |
Definition at line 107 of file sv_main.c.
Referenced by SV_Init(), and VM_SV_droptofloor().
cvar_t sv_gameplayfix_droptofloorstartsolid_nudgetocorrect = {CF_SERVER, "sv_gameplayfix_droptofloorstartsolid_nudgetocorrect", "1", "tries to nudge stuck items and monsters out of walls before droptofloor is performed"} |
Definition at line 108 of file sv_main.c.
Referenced by SV_Init(), and VM_SV_droptofloor().
cvar_t sv_gameplayfix_easierwaterjump = {CF_SERVER, "sv_gameplayfix_easierwaterjump", "1", "changes water jumping to make it easier to get out of water (exactly like in QuakeWorld)"} |
Definition at line 109 of file sv_main.c.
Referenced by SV_FlyMove(), and SV_Init().
cvar_t sv_gameplayfix_findradiusdistancetobox = {CF_SERVER, "sv_gameplayfix_findradiusdistancetobox", "1", "causes findradius to check the distance to the corner of a box rather than the center of the box, makes findradius detect bmodels such as very large doors that would otherwise be unaffected by splash damage"} |
Definition at line 110 of file sv_main.c.
Referenced by SV_Init(), VM_CL_findradius(), and VM_SV_findradius().
cvar_t sv_gameplayfix_fixedcheckwatertransition = {CF_SERVER, "sv_gameplayfix_fixedcheckwatertransition", "1", "fix two very stupid bugs in SV_CheckWaterTransition when watertype is CONTENTS_EMPTY (the bugs causes waterlevel to be 1 on first frame, -1 on second frame - the fix makes it 0 on both frames)"} |
Definition at line 132 of file sv_main.c.
Referenced by SV_CheckWaterTransition(), and SV_Init().
cvar_t sv_gameplayfix_gravityunaffectedbyticrate = {CF_SERVER, "sv_gameplayfix_gravityunaffectedbyticrate", "0", "fix some ticrate issues in physics."} |
Definition at line 111 of file sv_main.c.
Referenced by SV_FlyMove(), SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_gameplayfix_grenadebouncedownslopes = {CF_SERVER, "sv_gameplayfix_grenadebouncedownslopes", "1", "prevents MOVETYPE_BOUNCE (grenades) from getting stuck when fired down a downward sloping surface"} |
Definition at line 112 of file sv_main.c.
Referenced by SV_Init(), and SV_Physics_Toss().
cvar_t sv_gameplayfix_impactbeforeonground = {CF_SERVER, "sv_gameplayfix_impactbeforeonground", "0", "enables a bug from old DP versions in which entity .touch functions are called before FL_ONGROUND is set when a collision is detected in SV_FlyMove() (used by MOVETYPE_WALK and MOVETYPE_STEP), Quake 1.5 and Combat+ mods require this, it breaks id1 fiends"} |
Definition at line 113 of file sv_main.c.
Referenced by SV_FlyMove(), and SV_Init().
cvar_t sv_gameplayfix_multiplethinksperframe = {CF_SERVER, "sv_gameplayfix_multiplethinksperframe", "1", "allows entities to think more often than the server framerate, primarily useful for very high fire rate weapons"} |
Definition at line 114 of file sv_main.c.
Referenced by SV_Init(), and SV_RunThink().
cvar_t sv_gameplayfix_noairborncorpse = {CF_SERVER, "sv_gameplayfix_noairborncorpse", "1", "causes entities (corpses, items, etc) sitting ontop of moving entities (players) to fall when the moving entity (player) is no longer supporting them"} |
Definition at line 115 of file sv_main.c.
Referenced by SV_Init(), and SV_Physics_Toss().
cvar_t sv_gameplayfix_noairborncorpse_allowsuspendeditems = {CF_SERVER, "sv_gameplayfix_noairborncorpse_allowsuspendeditems", "1", "causes entities sitting ontop of objects that are instantaneously remove to float in midair (special hack to allow a common level design trick for floating items)"} |
Definition at line 116 of file sv_main.c.
Referenced by SV_Init(), and SV_Physics_Toss().
cvar_t sv_gameplayfix_nogravityonground = {CF_SERVER, "sv_gameplayfix_nogravityonground", "0", "turn off gravity when on ground (to get rid of sliding)"} |
Definition at line 120 of file sv_main.c.
Referenced by SV_FlyMove(), SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_gameplayfix_nosquashentities = {CF_SERVER, "sv_gameplayfix_nosquashentities", "0", "Entity hitboxes will not be resized or disabled when they are crushed by movers, and will continue to be affected by movers."} |
Definition at line 133 of file sv_main.c.
Referenced by SV_Init(), and SV_PushMove().
cvar_t sv_gameplayfix_nostepmoveonsteepslopes = {CF_SERVER, "sv_gameplayfix_nostepmoveonsteepslopes", "0", "crude fix which prevents MOVETYPE_STEP (not swimming or flying) to move on slopes whose angle is bigger than 45 degree"} |
Definition at line 125 of file sv_main.c.
Referenced by SV_Init(), and SV_movestep().
cvar_t sv_gameplayfix_nudgeoutofsolid = {CF_SERVER, "sv_gameplayfix_nudgeoutofsolid", "0", "attempts to fix physics errors where an object ended up in solid for some reason, smarter than sv_gameplayfix_unstick* except on Q1BSP with mod_q1bsp_polygoncollisions disabled (there it falls back to the unsticking method)"} |
Definition at line 117 of file sv_main.c.
Referenced by SV_Init(), and SV_UnstickEntity().
cvar_t sv_gameplayfix_nudgeoutofsolid_separation = {CF_SERVER, "sv_gameplayfix_nudgeoutofsolid_separation", "0.03125", "keep objects this distance apart to prevent collision issues on seams"} |
Definition at line 118 of file sv_main.c.
Referenced by PHYS_NudgeOutOfSolid(), SV_Init(), and SV_UnstickEntity().
cvar_t sv_gameplayfix_q1bsptracelinereportstexture = {CF_SERVER, "sv_gameplayfix_q1bsptracelinereportstexture", "1", "enables mods to get accurate trace_texture results on q1bsp by using a surface-hitting traceline implementation rather than the standard solidbsp method, q3bsp always reports texture accurately"} |
Definition at line 129 of file sv_main.c.
Referenced by Mod_Q1BSP_TraceLine(), and SV_Init().
cvar_t sv_gameplayfix_q2airaccelerate = {CF_SERVER, "sv_gameplayfix_q2airaccelerate", "0", "Quake2-style air acceleration"} |
Definition at line 119 of file sv_main.c.
Referenced by SV_AirAccelerate(), SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_gameplayfix_setmodelrealbox = {CF_SERVER, "sv_gameplayfix_setmodelrealbox", "1", "fixes a bug in Quake that made setmodel always set the entity box to ('-16 -16 -16', '16 16 16') rather than properly checking the model box, breaks some poorly coded mods"} |
Definition at line 121 of file sv_main.c.
Referenced by SV_Init(), VM_SV_setmodel(), and VM_SV_setmodelindex().
cvar_t sv_gameplayfix_slidemoveprojectiles = {CF_SERVER, "sv_gameplayfix_slidemoveprojectiles", "1", "allows MOVETYPE_FLY/FLYMISSILE/TOSS/BOUNCE/BOUNCEMISSILE entities to finish their move in a frame even if they hit something, fixes 'gravity accumulation' bug for grenades on steep slopes"} |
Definition at line 122 of file sv_main.c.
Referenced by SV_Init(), and SV_Physics_Toss().
cvar_t sv_gameplayfix_stepdown = {CF_SERVER, "sv_gameplayfix_stepdown", "0", "attempts to step down stairs, not just up them (prevents the familiar thud..thud..thud.. when running down stairs and slopes)"} |
Definition at line 123 of file sv_main.c.
Referenced by SV_Init(), and SV_WalkMove().
cvar_t sv_gameplayfix_stepmultipletimes = {CF_SERVER, "sv_gameplayfix_stepmultipletimes", "0", "applies step-up onto a ledge more than once in a single frame, when running quickly up stairs"} |
Definition at line 124 of file sv_main.c.
Referenced by SV_Init(), and SV_WalkMove().
cvar_t sv_gameplayfix_swiminbmodels = {CF_SERVER, "sv_gameplayfix_swiminbmodels", "1", "causes pointcontents (used to determine if you are in a liquid) to check bmodel entities as well as the world model, so you can swim around in (possibly moving) water bmodel entities"} |
Definition at line 126 of file sv_main.c.
Referenced by SV_Init(), and SV_PointSuperContents().
cvar_t sv_gameplayfix_unstickentities = {CF_SERVER, "sv_gameplayfix_unstickentities", "0", "hack to check if entities are crossing world collision hull and try to move them to the right position. Quake didn't do this so maps shouldn't depend on it."} |
Definition at line 131 of file sv_main.c.
Referenced by SV_Init(), and SV_UnstickEntity().
cvar_t sv_gameplayfix_unstickplayers = {CF_SERVER, "sv_gameplayfix_unstickplayers", "1", "big hack to try and fix the rare case of MOVETYPE_WALK entities getting stuck in the world clipping hull. Quake did something similar."} |
Definition at line 130 of file sv_main.c.
Referenced by SV_Init(), and SV_UnstickEntity().
cvar_t sv_gameplayfix_upwardvelocityclearsongroundflag = {CF_SERVER, "sv_gameplayfix_upwardvelocityclearsongroundflag", "1", "prevents monsters, items, and most other objects from being stuck to the floor when pushed around by damage, and other situations in mods"} |
Definition at line 127 of file sv_main.c.
Referenced by SV_Init(), SV_Physics_Step(), and SV_Physics_Toss().
cvar_t sv_gravity = {CF_SERVER | CF_NOTIFY, "sv_gravity","800", "how fast you fall (512 = roughly earth gravity)"} |
Definition at line 134 of file sv_main.c.
Referenced by CL_UpdateMoveVars(), SV_Gravity(), SV_Init(), SV_Physics(), SV_Physics_Step(), SV_Physics_Toss(), SV_Trace_Toss(), and SV_WriteClientdataToMessage().
cvar_t sv_idealpitchscale = {CF_SERVER, "sv_idealpitchscale","0.8", "how much to look up/down slopes and stairs when not using freelook"} |
Definition at line 136 of file sv_main.c.
Referenced by SV_Init(), and SV_SetIdealPitch().
cvar_t sv_init_frame_count = {CF_SERVER, "sv_init_frame_count", "2", "number of frames to run to allow everything to settle before letting clients connect"} |
Definition at line 135 of file sv_main.c.
Referenced by SV_Init(), and SV_SpawnServer().
cvar_t sv_jumpvelocity = {CF_SERVER, "sv_jumpvelocity", "270", "cvar that can be used by QuakeC code for jump velocity"} |
Definition at line 138 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_lagreporting_always = {CF_SERVER, "sv_lagreporting_always", "0", "report lag even in singleplayer, listen, an empty dedicated server, or during intermission"} |
Definition at line 168 of file sv_main.c.
Referenced by SV_Frame(), and SV_Init().
cvar_t sv_lagreporting_strict = {CF_SERVER, "sv_lagreporting_strict", "0", "log any extra frames run to catch up after a holdup (only applies when sv_maxphysicsframesperserverframe > 1)"} |
Definition at line 169 of file sv_main.c.
Referenced by SV_Frame(), and SV_Init().
cvar_t sv_legacy_bbox_expand = {CF_SERVER, "sv_legacy_bbox_expand", "1", "before linking an entity to the area grid, decrease its mins and increase its maxs by '1 1 1', or '15 15 1' if it has flag FL_ITEM (this is the Quake/QuakeWorld behaviour); disable to make SVQC bboxes consistent with CSQC which never does this expansion"} |
Definition at line 139 of file sv_main.c.
Referenced by SV_Init(), and SV_LinkEdict().
cvar_t sv_mapformat_is_quake2 = {CF_SERVER, "sv_mapformat_is_quake2", "0", "indicates the current map is q2bsp format (useful to know because of different entity behaviors, .frame on submodels and other things)"} |
Definition at line 216 of file sv_main.c.
Referenced by SV_Init(), and SV_SpawnServer().
cvar_t sv_mapformat_is_quake3 = {CF_SERVER, "sv_mapformat_is_quake3", "0", "indicates the current map is q3bsp format (useful to know because of different entity behaviors)"} |
Definition at line 217 of file sv_main.c.
Referenced by SV_Init(), and SV_SpawnServer().
cvar_t sv_maxairspeed = {CF_SERVER, "sv_maxairspeed", "30", "maximum speed a player can accelerate to when airborn (note that it is possible to completely stop by moving the opposite direction)"} |
Definition at line 140 of file sv_main.c.
Referenced by SV_AirAccelerate(), SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_maxairstrafespeed = {CF_SERVER, "sv_maxairstrafespeed", "0", "when set, replacement for sv_maxairspeed when just strafing"} |
Definition at line 64 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_maxphysicsframesperserverframe = {CF_SERVER, "sv_maxphysicsframesperserverframe","10", "maximum number of physics frames per server frame"} |
Definition at line 167 of file sv_main.c.
Referenced by SV_Frame(), and SV_Init().
cvar_t sv_maxrate = {CF_SERVER | CF_ARCHIVE | CF_NOTIFY, "sv_maxrate", "1000000", "upper limit on client rate cvar, should reflect your network connection quality"} |
Definition at line 141 of file sv_main.c.
Referenced by M_GameOptions_Draw(), M_NetStart_Change(), SV_Init(), and SV_SendClientDatagram().
cvar_t sv_maxspeed = {CF_SERVER | CF_NOTIFY, "sv_maxspeed", "320", "maximum speed a player can accelerate to when on ground (can be exceeded by tricks)"} |
Definition at line 142 of file sv_main.c.
Referenced by SV_AirMove(), SV_Init(), SV_WaterMove(), and SV_WriteClientdataToMessage().
Definition at line 226 of file sv_main.c.
Referenced by EntityFrame5_ExpandEdicts(), SV_Init(), SV_Map_f(), SV_Prepare_CSQC(), SV_SendServerinfo(), SV_ServerOptions(), SV_WriteEntitiesToClient(), VM_SV_checkpvs(), and VM_SV_newcheckclient().
cvar_t sv_nostep = {CF_SERVER | CF_NOTIFY, "sv_nostep","0", "prevents MOVETYPE_STEP entities (monsters) from moving"} |
cvar_t sv_onlycsqcnetworking = {CF_SERVER, "sv_onlycsqcnetworking", "0", "disables legacy entity networking code for higher performance (except on clients, which can still be legacy)"} |
Definition at line 163 of file sv_main.c.
Referenced by SV_Init(), and SV_PrepareEntityForSending().
cvar_t sv_progs = {CF_SERVER, "sv_progs", "progs.dat", "selects which quakec progs.dat file to run" } |
cvar_t sv_protocolname = {CF_SERVER, "sv_protocolname", "DP7", "selects network protocol to host for (values include QUAKE, QUAKEDP, NEHAHRAMOVIE, DP1 and up)"} |
Definition at line 147 of file sv_main.c.
Referenced by SV_Init(), and SV_SpawnServer().
cvar_t sv_qcstats = {CF_SERVER, "sv_qcstats", "0", "Disables engine sending of stats 220 and above, for use by certain games such as Xonotic, NOTE: it's strongly recommended that SVQC send correct STAT_MOVEVARS_TICRATE and STAT_MOVEVARS_TIMESCALE"} |
Definition at line 148 of file sv_main.c.
Referenced by SV_Init(), SV_WriteClientdataToMessage(), and VM_SV_AddStat().
cvar_t sv_random_seed = {CF_SERVER, "sv_random_seed", "", "random seed; when set, on every map start this random seed is used to initialize the random number generator. Don't touch it unless for benchmarking or debugging"} |
Definition at line 149 of file sv_main.c.
Referenced by Host_Frame(), SV_Init(), and SV_SpawnServer().
prvm_required_field_t sv_reqfields[] |
Definition at line 280 of file sv_main.c.
Referenced by SV_VM_Setup().
prvm_required_field_t sv_reqglobals[] |
Definition at line 359 of file sv_main.c.
Referenced by SV_VM_Setup().
cvar_t sv_rollspeed = {CF_CLIENT, "sv_rollspeed", "200", "how much strafing is necessary to tilt the view"} |
cvar_t sv_sendentities_csqc_randomize_order = {CF_SERVER, "sv_sendentities_csqc_randomize_order", "1", "Randomize the order of sending CSQC entities (should behave better when packet size or bandwidth limits are exceeded)."} |
Definition at line 221 of file sv_main.c.
Referenced by EntityFrameCSQC_WriteFrame(), and SV_Init().
cvar_t sv_sound_land = {CF_SERVER, "sv_sound_land", "demon/dland2.wav", "sound to play when MOVETYPE_STEP entity hits the ground at high speed (empty cvar disables the sound)"} |
Definition at line 151 of file sv_main.c.
Referenced by SV_Init(), and SV_Physics_Step().
cvar_t sv_sound_watersplash = {CF_SERVER, "sv_sound_watersplash", "misc/h2ohit1.wav", "sound to play when MOVETYPE_FLY/TOSS/BOUNCE/STEP entity enters or leaves water (empty cvar disables the sound)"} |
Definition at line 152 of file sv_main.c.
Referenced by SV_CheckWaterTransition(), and SV_Init().
cvar_t sv_stepheight = {CF_SERVER | CF_NOTIFY, "sv_stepheight", "18", "how high you can step up (TW_SV_STEPCONTROL extension)"} |
Definition at line 153 of file sv_main.c.
Referenced by CL_CheckBottom(), CL_movestep(), SV_CheckBottom(), SV_Init(), SV_movestep(), SV_WalkMove(), SV_WriteClientdataToMessage(), and VM_CL_checkbottom().
cvar_t sv_stopspeed = {CF_SERVER | CF_NOTIFY, "sv_stopspeed","100", "how fast you come to a complete stop"} |
Definition at line 154 of file sv_main.c.
Referenced by SV_Init(), SV_UserFriction(), and SV_WriteClientdataToMessage().
cvar_t sv_threaded = {CF_SERVER, "sv_threaded", "0", "enables a separate thread for server code, improving performance, especially when hosting a game while playing, EXPERIMENTAL, may be crashy"} |
Definition at line 170 of file sv_main.c.
Referenced by SV_Init(), and SV_StartThread().
cvar_t sv_warsowbunny_accel = {CF_SERVER, "sv_warsowbunny_accel", "0.1585", "how fast you accelerate until after reaching sv_maxspeed (it gets harder as you near sv_warsowbunny_topspeed)"} |
Definition at line 159 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_warsowbunny_airforwardaccel = {CF_SERVER, "sv_warsowbunny_airforwardaccel", "1.00001", "how fast you accelerate until you reach sv_maxspeed"} |
Definition at line 158 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_warsowbunny_backtosideratio = {CF_SERVER, "sv_warsowbunny_backtosideratio", "0.8", "lower values make it easier to change direction without losing speed; the drawback is \"understeering\" in sharp turns"} |
Definition at line 162 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_warsowbunny_topspeed = {CF_SERVER, "sv_warsowbunny_topspeed", "925", "soft speed limit (can get faster with rjs and on ramps)"} |
Definition at line 160 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_warsowbunny_turnaccel = {CF_SERVER, "sv_warsowbunny_turnaccel", "0", "max sharpness of turns (also master switch for the sv_warsowbunny_* mode; set this to 9 to enable)"} |
Definition at line 161 of file sv_main.c.
Referenced by SV_Init(), and SV_WriteClientdataToMessage().
cvar_t sv_wateraccelerate = {CF_SERVER, "sv_wateraccelerate", "-1", "rate at which a player accelerates to sv_maxspeed while in water, if less than 0 the sv_accelerate variable is used instead"} |
Definition at line 156 of file sv_main.c.
Referenced by SV_Init(), SV_WaterMove(), and SV_WriteClientdataToMessage().
cvar_t sv_waterfriction = {CF_SERVER | CF_NOTIFY, "sv_waterfriction","-1", "how fast you slow down in water, if less than 0 the sv_friction variable is used instead"} |
Definition at line 157 of file sv_main.c.
Referenced by SV_Init(), SV_WaterMove(), and SV_WriteClientdataToMessage().
cvar_t sv_worldbasename = {CF_SERVER | CF_READONLY, "sv_worldbasename", "", "name of current worldmodel without maps/ prefix or extension"} |
Definition at line 40 of file sv_main.c.
Referenced by SV_Init(), and SV_SpawnServer().
cvar_t sv_worldmessage = {CF_SERVER | CF_READONLY, "sv_worldmessage", "", "title of current level"} |
cvar_t sv_worldname = {CF_SERVER | CF_READONLY, "sv_worldname", "", "name of current worldmodel"} |
cvar_t sv_worldnamenoextension = {CF_SERVER | CF_READONLY, "sv_worldnamenoextension", "", "name of current worldmodel without extension"} |
Definition at line 39 of file sv_main.c.
Referenced by SV_Init(), and SV_SpawnServer().
cvar_t sv_writepicture_quality = {CF_SERVER | CF_ARCHIVE, "sv_writepicture_quality", "10", "WritePicture quality offset (higher means better quality, but slower)"} |
Definition at line 219 of file sv_main.c.
Referenced by JPEG_SaveImage_to_Buffer(), and SV_Init().
server_static_t svs |
persistant server info
Definition at line 224 of file sv_main.c.
Referenced by Cvar_SetQuick_Internal(), EntityFrameCSQC_WriteFrame(), EntityState5_Priority(), EntityState5_WriteUpdate(), Host_Frame(), Host_Shutdown(), M_Menu_GameOptions_f(), NetConn_BuildStatusResponse(), NetConn_Heartbeat(), NetConn_ServerParsePacket(), SCR_DrawNetGraph(), SV_Begin_f(), SV_BroadcastPrint(), SV_CheckTimeouts(), SV_Color_f(), SV_ConnectClient(), SV_CreateBaseline(), SV_DisableCheats_c(), SV_Download_f(), SV_DropClient(), SV_Ent_Remove_f(), SV_FlushBroadcastMessages(), SV_Frame(), SV_IsLocalServer(), SV_Kick_f(), SV_Loadgame_f(), SV_Map_f(), SV_MarkWriteEntityStateToClient(), SV_MaxPlayers_f(), SV_ModelIndex(), SV_Name_f(), SV_Physics(), SV_Ping_f(), SV_Pings_f(), SV_Prepare_CSQC(), SV_PrepareEntityForSending(), SV_Savegame_f(), SV_Savegame_to(), SV_SaveSpawnparms(), SV_Say(), SV_SendClientMessages(), SV_SendCvar_f(), SV_SendServerinfo(), SV_ServerOptions(), SV_Shutdown(), SV_Spawn_f(), SV_SpawnServer(), SV_StartThread(), SV_Status_f(), SV_StopThread(), SV_Tell_f(), SV_ThreadFunc(), SV_UnstickEntity(), SV_UpdateToReliableMessages(), SV_VM_Setup(), SV_WriteEntitiesToClient(), SVVM_free_edict(), SVVM_init_edict(), Sys_Error(), VM_changelevel(), VM_clientcount(), VM_M_WriteDest(), VM_sprint(), VM_SV_centerprint(), VM_SV_clientcommand(), VM_SV_clienttype(), VM_SV_dropclient(), VM_SV_lightstyle(), VM_SV_newcheckclient(), VM_SV_serverkey(), VM_SV_setcolor(), VM_SV_setspawnparms(), VM_SV_spawnclient(), VM_SV_sprint(), VM_SV_stuffcmd(), and WriteDest().
cvar_t sys_ticrate = {CF_SERVER | CF_ARCHIVE, "sys_ticrate","0.01388889", "how long a server frame is in seconds, 0.05 is 20fps server rate, 0.1 is 10fps (can not be set higher than 0.1), 0 runs as many server frames as possible (makes games against bots a little smoother, overwhelms network players), 1/72 matches QuakeWorld physics"} |
Definition at line 166 of file sv_main.c.
Referenced by SV_ExecuteClientMoves(), SV_Frame(), SV_Init(), SV_SendClientDatagram(), SV_ThreadFunc(), and SV_WriteClientdataToMessage().
cvar_t teamplay = {CF_SERVER | CF_NOTIFY, "teamplay","0", "teamplay mode, values depend on mod but typically 0 = no teams, 1 = no team damage no self damage, 2 = team damage and self damage, some mods support 3 = no team damage but can damage self"} |
Definition at line 173 of file sv_main.c.
Referenced by M_GameOptions_Draw(), M_NetStart_Change(), SV_Init(), and SV_WriteClientdataToMessage().