Quake II RTX doxygen
1.0 dev
|
|
Go to the documentation of this file.
78 void SpawnEntities(
const char *mapname,
const char *entities,
const char *spawnpoint);
86 void WriteGame(
const char *filename, qboolean autosave);
99 gi.dprintf(
"==== ShutdownGame ====\n");
116 gi.dprintf(
"==== InitGame ====\n");
118 gun_x =
gi.cvar(
"gun_x",
"0", 0);
119 gun_y =
gi.cvar(
"gun_y",
"0", 0);
120 gun_z =
gi.cvar(
"gun_z",
"0", 0);
134 sv_cheats =
gi.cvar(
"cheats",
"0", CVAR_SERVERINFO | CVAR_LATCH);
135 gi.cvar(
"gamename",
GAMEVERSION , CVAR_SERVERINFO | CVAR_LATCH);
136 gi.cvar(
"gamedate", __DATE__ , CVAR_SERVERINFO | CVAR_LATCH);
138 maxclients =
gi.cvar(
"maxclients",
"4", CVAR_SERVERINFO | CVAR_LATCH);
141 coop =
gi.cvar(
"coop",
"0", CVAR_LATCH);
142 skill =
gi.cvar(
"skill",
"1", CVAR_LATCH);
146 dmflags =
gi.cvar(
"dmflags",
"0", CVAR_SERVERINFO);
147 fraglimit =
gi.cvar(
"fraglimit",
"0", CVAR_SERVERINFO);
148 timelimit =
gi.cvar(
"timelimit",
"0", CVAR_SERVERINFO);
149 password =
gi.cvar(
"password",
"", CVAR_USERINFO);
151 needpass =
gi.cvar(
"needpass",
"0", CVAR_SERVERINFO);
158 bob_up =
gi.cvar(
"bob_up",
"0.005", 0);
214 globals.apiversion = GAME_API_VERSION;
235 globals.edict_size =
sizeof(edict_t);
240 #ifndef GAME_HARD_LINKED
245 char text[MAX_STRING_CHARS];
247 if (type == PRINT_DEVELOPER) {
251 va_start(argptr, fmt);
255 gi.dprintf(
"%s", text);
261 char text[MAX_STRING_CHARS];
263 va_start(argptr, fmt);
267 gi.error(
"%s", text);
288 if (!ent->inuse || !ent->client)
307 ent->classname =
"target_changelevel";
324 static const char *seps =
" ,\n\r";
327 if ((
int)
dmflags->value & DF_SAME_LEVEL) {
340 t = strtok(NULL, seps);
353 t = strtok(NULL, seps);
361 ent =
G_Find(NULL,
FOFS(classname),
"target_changelevel");
394 gi.cvar_set(
"needpass",
va(
"%d", need));
416 gi.bprintf(PRINT_HIGH,
"Timelimit hit.\n");
429 gi.bprintf(PRINT_HIGH,
"Fraglimit hit.\n");
450 gi.AddCommandString(command);
461 if (ent->health > ent->client->pers.max_health)
462 ent->health = ent->client->pers.max_health;
497 for (i = 0 ; i <
globals.num_edicts ; i++, ent++) {
503 VectorCopy(ent->s.origin, ent->s.old_origin);
506 if ((ent->groundentity) && (ent->groundentity->linkcount != ent->groundentity_linkcount)) {
507 ent->groundentity = NULL;
508 if (!(ent->flags & (
FL_SWIM |
FL_FLY)) && (ent->svflags & SVF_MONSTER)) {
513 if (i > 0 && i <= maxclients->value) {
void RunEntity(edict_t *ent)
void ClientBeginServerFrame(edict_t *ent)
void ReadLevel(const char *filename)
void G_RunEntity(edict_t *ent)
size_t Q_snprintf(char *dest, size_t size, const char *fmt,...)
void ClientThink(edict_t *ent, usercmd_t *cmd)
void ClientUserinfoChanged(edict_t *ent, char *userinfo)
qboolean ClientConnect(edict_t *ent, char *userinfo)
q_exported game_export_t * GetGameAPI(game_import_t *import)
void ClientBegin(edict_t *ent)
void ClientEndServerFrames(void)
edict_t * G_Find(edict_t *from, int fieldofs, char *match)
size_t Q_vsnprintf(char *dest, size_t size, const char *fmt, va_list argptr)
void ReadGame(const char *filename)
void BeginIntermission(edict_t *targ)
void ClientDisconnect(edict_t *ent)
void Com_Error(error_type_t type, const char *fmt,...)
char * va(const char *format,...)
void WriteGame(const char *filename, qboolean autosave)
void Com_LPrintf(print_type_t type, const char *fmt,...)
void M_CheckGround(edict_t *ent)
edict_t * CreateTargetChangeLevel(char *map)
void ClientEndServerFrame(edict_t *ent)
void ClientCommand(edict_t *ent)
cvar_t * spectator_password
void WriteLevel(const char *filename)
void SpawnEntities(const char *mapname, const char *entities, const char *spawnpoint)
void AI_SetSightClient(void)