void GameLibrary_Activate(int)
Activate the specified game.
Definition: CustomGameLibrary.qc:746
__variant GameLibrary_GetInfo(gameInfo_t)
Retrieves fields for the currently running game.
Definition: CustomGameLibrary.qc:796
gameInfo_t
Options for querying Game Library entry information using GameLibrary_GetInfo()
Definition: CustomGameLibrary.h:57
void GameLibrary_DebugList(void)
Prints debug info about the currently cached games to the console.
Definition: CustomGameLibrary.qc:887
__variant GameLibrary_GetGameInfo(int, gameInfo_t)
Retrieves fields for a given game.
Definition: CustomGameLibrary.qc:802
float GameLibrary_InstallProgress(void)
Returns a 0-100% value of game install progress, tracking across multiple packages.
Definition: CustomGameLibrary.qc:653
bool GameLibrary_IsInstalling(void)
Returns true/false depending on if a Game installation is in progress.
Definition: CustomGameLibrary.qc:647
gi_type
Definition: CustomGameLibrary.h:114
void GameLibrary_InitCustom(void)
Called when you want to initialize custom games/mods.
Definition: CustomGameLibrary.qc:458
int GameLibrary_GetCurrentGame(void)
Return the ID for the currently active game.
Definition: CustomGameLibrary.qc:784
void GameLibrary_Install(int)
Install the specified game.
Definition: CustomGameLibrary.qc:724
void GameLibrary_Init(void)
Called when initializing the current game.
Definition: CustomGameLibrary.qc:595
int GameLibrary_GetGameCount(void)
Returns the total amount of games currently available.
Definition: CustomGameLibrary.qc:790
void GameLibrary_Deactivate(void)
Deactivate the currently running mod.
Definition: CustomGameLibrary.qc:774
@ GAMEINFO_AUTHOR
(string) Name of the author.
Definition: CustomGameLibrary.h:78
@ GAMEINFO_STARTMAP
(string) The command for starting a new game.
Definition: CustomGameLibrary.h:71
@ GAMEINFO_INTROVIDEO
(string) File name of the intro video to play.
Definition: CustomGameLibrary.h:76
@ GAMEINFO_TRAININGMAP
(string) The command for starting the training.
Definition: CustomGameLibrary.h:72
@ GAMEINFO_NOPLAYERMODELS
(bool) If the game allows player model selection.
Definition: CustomGameLibrary.h:69
@ GAMEINFO_MINVERSION
(string) The minimum base game version.
Definition: CustomGameLibrary.h:73
@ GAMEINFO_NOSPRAYS
(bool) If the game allows custom spray logos.
Definition: CustomGameLibrary.h:70
@ GAMEINFO_WEBSITE
(string) The game its official website.
Definition: CustomGameLibrary.h:62
@ GAMEINFO_FALLBACKDIR
(string) The directory to be loaded before the game directory.
Definition: CustomGameLibrary.h:60
@ GAMEINFO_TITLE
(string) The title of the game in the main menu.
Definition: CustomGameLibrary.h:65
@ GAMEINFO_NAME
(string) The name of the game.
Definition: CustomGameLibrary.h:58
@ GAMEINFO_GAMEDIR
(string) The game directory name.
Definition: CustomGameLibrary.h:59
@ GAMEINFO_INSTALLED
(bool) Whether the game is installed.
Definition: CustomGameLibrary.h:81
@ GAMEINFO_PACKAGELIST
(string) List of packages, separated by white-space.
Definition: CustomGameLibrary.h:80
@ GAMEINFO_NOHIMODELS
(bool) If the game allows for alternative, often higher quality models.
Definition: CustomGameLibrary.h:68
@ GAMEINFO_CHATROOM
(string) The chatroom for this game.
Definition: CustomGameLibrary.h:74
@ GAMEINFO_VERSION
(string) Version number string.
Definition: CustomGameLibrary.h:63
@ GAMEINFO_SIZE
(int) The size of the game, in bytes.
Definition: CustomGameLibrary.h:64
@ GAMEINFO_READMEFILE
(string) File name of the readme documentation.
Definition: CustomGameLibrary.h:75
@ GAMEINFO_TYPE
(string) The game type.
Definition: CustomGameLibrary.h:67
@ GAMEINFO_AUTHORSITE
(string) The author their website.
Definition: CustomGameLibrary.h:79
@ GAMEINFO_MENUMAP
(string) Name of the map to be used as a background.
Definition: CustomGameLibrary.h:77
@ GAMEINFO_SUBTITLE
(string) The sub-title of the game in the main menu.
Definition: CustomGameLibrary.h:66
@ GAMEINFO_BASEDIR
(string) The first game directory to be loaded.
Definition: CustomGameLibrary.h:61
@ GAMEINFO_MANIFEST
Game info was read from a manifest within the path.
Definition: CustomGameLibrary.h:116
@ GAMEINFO_PACKAGE
Definition: CustomGameLibrary.h:119
@ GAMEINFO_GITXT
Game info stems from a Source Engine style gameinfo.txt file.
Definition: CustomGameLibrary.h:117
@ GAMEINFO_LIBLIST
Game info stems from a GoldSrc style liblist.gam file.
Definition: CustomGameLibrary.h:118
@ GAMEINFO_NONE
No gameinfo available.
Definition: CustomGameLibrary.h:115
Data holding Game Library entries.
Definition: CustomGameLibrary.h:124
string subtitle
Definition: CustomGameLibrary.h:127
string type
Definition: CustomGameLibrary.h:137
string title
Definition: CustomGameLibrary.h:126
string gamedir
Definition: CustomGameLibrary.h:128
gi_type info_type
Definition: CustomGameLibrary.h:154
int svonly
Definition: CustomGameLibrary.h:135
string game
Definition: CustomGameLibrary.h:125
int nomodels
Definition: CustomGameLibrary.h:143
string menumap
Definition: CustomGameLibrary.h:152
string introvideo
Definition: CustomGameLibrary.h:153
int nohimodels
Definition: CustomGameLibrary.h:142
string readme
Definition: CustomGameLibrary.h:133
string pkgname
Definition: CustomGameLibrary.h:139
string version
Definition: CustomGameLibrary.h:132
int nosprays
Definition: CustomGameLibrary.h:144
string mpentity
Definition: CustomGameLibrary.h:146
string chatroom
Definition: CustomGameLibrary.h:151
int pkgid
Definition: CustomGameLibrary.h:141
string base_dir
Definition: CustomGameLibrary.h:129
int size
Definition: CustomGameLibrary.h:134
string minversion
Definition: CustomGameLibrary.h:138
string pkgfile
Definition: CustomGameLibrary.h:140
string url_dl
Definition: CustomGameLibrary.h:131
string startmap
Definition: CustomGameLibrary.h:148
string trainingmap
Definition: CustomGameLibrary.h:149
string gamedll
Definition: CustomGameLibrary.h:147
int installed
Definition: CustomGameLibrary.h:145
int cldll
Definition: CustomGameLibrary.h:136
string fallback_dir
Definition: CustomGameLibrary.h:150
string url_info
Definition: CustomGameLibrary.h:130