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;
89 ASSERT_TRUE(
csi.numMDs > 0);
94 if (filterId && !
Q_streq(filterId, md->
id))
105 seed = (
unsigned int) time(
nullptr);
110 Com_Printf(
"testMapDefsFootSteps: Mapdef %s (seed %u)\n", md->
id, seed);
119 const pos3_t center = {148, 128, 0};
120 mBox.
set(center, center);
130 const int floor =
sv->mapData.routing.getFloor(1, x, y, z);
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]) {
178 if (done ||
mapCount >= mapCountMax || badMapCount >= badMapCountMax)
void CL_InitLua(void)
Initializes the ui-lua interfacing environment.
memPool_t * vid_imagePool
memPool_t * cl_genericPool
Share stuff between the different cgame implementations.
void set(const pos3_t mini, const pos3_t maxi)
void clipToMaxBoundaries()
void expandXY(const int byVal)
expand the box in four directions, but clip them to the maximum boundaries
Primary header for client.
void Com_Printf(const char *const fmt,...)
memPool_t * com_networkPool
cvar_t * masterserver_url
cvar_t * Cvar_Get(const char *var_name, const char *var_value, int flags, const char *desc)
Init or return a cvar.
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
void * LIST_GetByIdx(linkedList_t *list, int index)
Get an entry of a linked list by its index in the list.
#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)
#define MapDef_Foreach(var)
grid pathfinding and routing
void Com_ParseScripts(bool onlyServer)
Main server include file.
memPool_t * sv_genericPool
const char * SV_GetFootstepSound(const char *texture)
Query the footstep sound for the given surface texture.
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.
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 SV_ShutdownGameProgs(void)
Called when either the entire server is being killed, or it is changing to a different game directory...
serverInstanceGame_t * sv
cvar_t * sv_dumpmapassembly
void Q_strncpyz(char *dest, const char *src, size_t destsize)
Safe strncpy that ensures a trailing zero.
bool TEST_ExistsProperty(const char *name)
const char * TEST_GetStringProperty(const char *name)
long TEST_GetLongProperty(const char *name)
#define VectorCopy(src, dest)