27 #include "../client/client.h"
28 #include "../client/cl_shared.h"
29 #include "../client/cl_lua.h"
30 #include "../client/renderer/r_state.h"
31 #include "../client/ui/ui_main.h"
32 #include "../common/routing.h"
33 #include "../server/server.h"
34 #include "../server/sv_rma.h"
66 #define FOOTSTEPS_FULL 0
81 const int skipCount = 20;
82 const int badMapCountMax = 25;
83 const int mapCountMax = 150;
84 const int texCountMax = 30;
94 if (filterId && !
Q_streq(filterId, md->
id))
98 if (mapCount <= skipCount)
105 seed = (
unsigned int) time(
nullptr);
110 Com_Printf(
"testMapDefsFootSteps: Mapdef %s (seed %u)\n", md->
id, seed);
118 if (mapCount >= skipCount + 4) {
119 const pos3_t center = {148, 128, 0};
120 mBox.
set(center, center);
139 from[2] += (floor + 2) *
QUANT;
149 for (
int i = 0;
i < texCountMax; ++
i) {
150 if (!texNames[
i][0]) {
158 if (count > texCountMax) {
165 if (!texNames[0][0]) {
169 for (
int i = 0;
i < texCountMax; ++
i) {
170 if (texNames[
i][0]) {
171 Com_Printf(
"In map %s, asm %s: No sound for: %s\n", md->
mapTheme, asmName, texNames[i]);
178 if (done || mapCount >= mapCountMax || badMapCount >= badMapCountMax)
void set(const pos3_t mini, const pos3_t maxi)
#define VectorCopy(src, dest)
void expandXY(const int byVal)
expand the box in four directions, but clip them to the maximum boundaries
void * LIST_GetByIdx(linkedList_t *list, int index)
Get an entry of a linked list by its index in the list.
memPool_t * sv_genericPool
void SV_Map(bool day, const char *levelstring, const char *assembly, bool verbose=true)
Change the server to a new map, taking all connected clients along with it.
void Com_ParseScripts(bool onlyServer)
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
void Com_Printf(const char *const fmt,...)
gltexunit_t texunits[MAX_GL_TEXUNITS]
cvar_t * masterserver_url
memPool_t * cl_genericPool
serverInstanceGame_t * sv
void Q_strncpyz(char *dest, const char *src, size_t destsize)
Safe strncpy that ensures a trailing zero.
gltexunit_t * active_texunit
cvar_t * Cvar_Get(const char *var_name, const char *var_value, int flags, const char *desc)
Init or return a cvar.
void CL_InitLua(void)
Initializes the ui-lua interfacing environment.
signed char getFloor(const actorSizeEnum_t actorSize, const pos3_t pos) const
#define PosToVec(p, v)
Pos boundary size is +/- 128 - to get into the positive area we add the possible max negative value a...
#define Mem_CreatePool(name)
void clipToMaxBoundaries()
bool TEST_ExistsProperty(const char *name)
long TEST_GetLongProperty(const char *name)
memPool_t * com_networkPool
const char * TEST_GetStringProperty(const char *name)
const char * SV_GetFootstepSound(const char *texture)
Query the footstep sound for the given surface texture.
memPool_t * vid_imagePool
trace_t SV_Trace(const Line &traceLine, const AABB &box, const edict_t *passedict, int contentmask)
Moves the given mins/maxs volume through the world from start to end.
#define MapDef_Foreach(var)
void SV_ShutdownGameProgs(void)
Called when either the entire server is being killed, or it is changing to a different game directory...
cvar_t * sv_dumpmapassembly