forked from packetflinger/q2admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathg_spawn.h
More file actions
36 lines (31 loc) · 1.01 KB
/
Copy pathg_spawn.h
File metadata and controls
36 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* Q2Admin
* Spawn related stuff
*/
#pragma once
#define SPAWNFILE "q2a_spawn.cfg"
#define SPAWNCMD "[sv] !spawncmd [SW/EX/RE] \"command\"\n"
#define SPAWNDELCMD "[sv] !spawndel spawnnum\n"
#define SPAWN_MAXCMDS 50
#define SPAWN_SW 0
#define SPAWN_EX 1
#define SPAWN_RE 2
typedef struct {
char *spawncmd;
byte type;
bool onelevelflag;
re_t r;
} spawncmd_t;
bool checkDisabledEntities(char *classname);
bool checkforspawncmd(char *cp, int spawncmd);
void displayNextSpawn(edict_t *ent, int client, long floodcmd);
void freeOneLevelSpawnLists(void);
void freeSpawnLists(void);
void linkentity_internal(edict_t *ent);
void listspawnsRun(int startarg, edict_t *ent, int client);
bool ReadSpawnFile(char *spawnname, bool onelevelflag);
void readSpawnLists(void);
void reloadSpawnFileRun(int startarg, edict_t *ent, int client);
void spawncmdRun(int startarg, edict_t *ent, int client);
void spawnDelRun(int startarg, edict_t *ent, int client);
void unlinkentity_internal(edict_t *ent);