Nuclide
Software Development Kit for id Technology
|
Shared multiprogs API. More...
Shared multiprogs API.
APIs used by both client and server progs.
Classes | |
struct | ammoAPI_t |
struct | cvarAPI_t |
struct | serverinfoAPI_t |
struct | userinfoAPI_t |
struct | weaponInfo_t |
struct | teamAPI_t |
struct | entityDefAPI_t |
struct | precacheAPI_t |
struct | declAPI_t |
Functions | |
string | ammoAPI_t::NameForNum (int) |
Returns the name of the specified ammo type. More... | |
int | ammoAPI_t::NumForName (string) |
Returns the ammo id of a given name of ammo. More... | |
int | ammoAPI_t::MaxForName (string) |
Returns the max ammo given name of ammo. More... | |
int | ammoAPI_t::MaxForNum (int) |
Returns the max ammo given name of ammo. More... | |
string | cvarAPI_t::GetString (string cvarName) |
Returns the string value of a console variable. More... | |
int | cvarAPI_t::GetInteger (string cvarName) |
Returns the integer value of a console variable. More... | |
float | cvarAPI_t::GetFloat (string cvarName) |
Returns the floating-point value of a console variable. More... | |
bool | cvarAPI_t::GetBool (string cvarName) |
Returns the boolean value of a console variable. More... | |
vector | cvarAPI_t::GetVector (string cvarName) |
Returns the vector value of a console variable. More... | |
void | cvarAPI_t::SetString (string cvarName, string setValue) |
Sets the specified console variable to a set string value. More... | |
void | cvarAPI_t::SetInteger (string cvarName, int setValue) |
Sets the specified console variable to a set integer value. More... | |
void | cvarAPI_t::SetBool (string cvarName, bool setValue) |
Sets the specified console variable to a set boolean value. More... | |
void | cvarAPI_t::SetFloat (string cvarName, float setValue) |
Sets the specified console variable to a set floating-point value. More... | |
void | cvarAPI_t::SetVector (string cvarName, vector setValue) |
Sets the specified console variable to a set vector. More... | |
string | serverinfoAPI_t::GetString (string serverKey) |
Returns the string value of a server info-key. More... | |
int | serverinfoAPI_t::GetInteger (string serverKey) |
Returns the integer value of a server info-key. More... | |
float | serverinfoAPI_t::GetFloat (string serverKey) |
Returns the floating-point value of a server info-key. More... | |
bool | serverinfoAPI_t::GetBool (string serverKey) |
Returns the boolean value of a server info-key. More... | |
vector | serverinfoAPI_t::GetVector (string serverKey) |
Returns the vector value of a server info-key. More... | |
void | serverinfoAPI_t::SetString (string serverKey, string setValue) |
Sets the specified server info-key to a set string value. More... | |
void | serverinfoAPI_t::SetInteger (string serverKey, int setValue) |
Sets the specified server info-key to a set integer value. More... | |
void | serverinfoAPI_t::SetBool (string serverKey, bool setValue) |
Sets the specified server info-key to a set boolean value. More... | |
void | serverinfoAPI_t::SetFloat (string serverKey, float setValue) |
Sets the specified server info-key to a set floating-point value. More... | |
void | serverinfoAPI_t::SetVector (string serverKey, vector setValue) |
Sets the specified server info-key to a set vector. More... | |
string | userinfoAPI_t::GetString (entity clientEnt, string userKey) |
Returns the string value of a user info-key. More... | |
int | userinfoAPI_t::GetInteger (entity clientEnt, string userKey) |
Returns the integer value of a user info-key. More... | |
float | userinfoAPI_t::GetFloat (entity clientEnt, string userKey) |
Returns the floating-point value of a user info-key. More... | |
bool | userinfoAPI_t::GetBool (entity clientEnt, string userKey) |
Returns the boolean value of a user info-key. More... | |
vector | userinfoAPI_t::GetVector (entity clientEnt, string userKey) |
Returns the vector value of a user info-key. More... | |
void | userinfoAPI_t::SetString (entity clientEnt, string userKey, string setValue) |
Sets the specified user info-key to a set string value. More... | |
void | userinfoAPI_t::SetInteger (entity clientEnt, string userKey, int setValue) |
Sets the specified user info-key to a set integer value. More... | |
void | userinfoAPI_t::SetBool (entity clientEnt, string userKey, bool setValue) |
Sets the specified user info-key to a set boolean value. More... | |
void | userinfoAPI_t::SetFloat (entity clientEnt, string userKey, float setValue) |
Sets the specified user info-key to a set floating-point value. More... | |
void | userinfoAPI_t::SetVector (entity clientEnt, string userKey, vector setValue) |
Sets the specified user info-key to a set vector. More... | |
string | weaponInfo_t::Type (string weaponDef) |
int | weaponInfo_t::StartAmmo (string weaponDef) |
int | weaponInfo_t::MaxAmmo (string weaponDef) |
bool | weaponInfo_t::IsSemiAuto (string weaponDef) |
string | weaponInfo_t::InventoryType (string weaponDef) |
float | weaponInfo_t::FireTime (string weaponDef) |
int | weaponInfo_t::ClipSize (string weaponDef) |
string | weaponInfo_t::Class (string weaponDef) |
bool | weaponInfo_t::IsClipOnly (string weaponDef) |
bool | weaponInfo_t::IsDetonationTimed (string weaponDef) |
int | teamAPI_t::BestAutoJoinTeam (void) |
int | teamAPI_t::TeamCount (void) |
int | teamAPI_t::OpenTeamCount (void) |
vector | teamAPI_t::Color (int) |
string | teamAPI_t::Name (int) |
int | teamAPI_t::Score (int) |
string | teamAPI_t::SpawnPoint (int) |
int | teamAPI_t::NumPlayers (int) |
int | teamAPI_t::NumAlivePlayers (int) |
int | teamAPI_t::NumDeadPlayers (int) |
int | teamAPI_t::TotalDeaths (int) |
int | teamAPI_t::TotalFrags (int) |
bool | teamAPI_t::Valid (int) |
void | teamAPI_t::AddScore (int, int) |
void | teamAPI_t::SetScore (int, int) |
entity | teamAPI_t::RandomPlayer (int) |
void | teamAPI_t::SetUp (int teamID, string teamTitle, vector teamColor, bool openTeam) |
Sets up a team for the current session. More... | |
void | teamAPI_t::AddClass (int teamID, string classType) |
Sets up a team class for the current session. More... | |
int | teamAPI_t::TotalClasses (int teamID) |
Returns the maximum number of classes this team can select. More... | |
string | teamAPI_t::ClassForIndex (int teamID, int classIndex) |
Returns the class type of a given team + index. More... | |
void | teamAPI_t::SetSpawnPoint (int teamID, string spawnPointEntityClassname) |
Sets up a team spawn point for the current session. More... | |
string | entityDefAPI_t::GetString (string defName, string keyName) |
Returns the string value of a EntityDef key. More... | |
int | entityDefAPI_t::GetInteger (string defName, string keyName) |
Returns the integer value of a EntityDef key. More... | |
float | entityDefAPI_t::GetFloat (string defName, string keyName) |
Returns the floating-point value of a EntityDef key. More... | |
bool | entityDefAPI_t::GetBool (string defName, string keyName) |
Returns the boolean value of a EntityDef key. More... | |
vector | entityDefAPI_t::GetVector (string defName, string keyName) |
Returns the vector value of a EntityDef key. More... | |
float | precacheAPI_t::Model (string) |
float | precacheAPI_t::Sound (string) |
decl | declAPI_t::New (void) |
Returns the name of a new decl in which you can store key/value pairs in. More... | |
string | declAPI_t::GetString (decl declHandle, string keyName) |
Returns the string value of a key from a decl. More... | |
int | declAPI_t::GetInteger (decl declHandle, string keyName) |
Returns the integer value of a decl key. More... | |
float | declAPI_t::GetFloat (decl declHandle, string keyName) |
Returns the floating-point value of a decl key. More... | |
bool | declAPI_t::GetBool (decl declHandle, string keyName) |
Returns the boolean value of a decl key. More... | |
vector | declAPI_t::GetVector (decl declHandle, string keyName) |
Returns the vector value of a decl key. More... | |
void | declAPI_t::AddKey (decl declHandle, string keyName, string setValue) |
Adds/updates a named key within a decl with a new string value. More... | |
void | declAPI_t::RemoveKey (decl declHandle, string keyName) |
Removes a named key from a decl entirely. More... | |
void | declAPI_t::Delete (decl declHandle) |
Removes a named decl from the game. More... | |
__variant | linkToSharedProgs (string funcName) |
void | _shared_main (void) |
Typedefs | |
typedef string | decl |
void _shared_main | ( | void | ) |
void teamAPI_t::AddClass | ( | int | teamID, |
string | classType | ||
) |
Sets up a team class for the current session.
Making them available to choose in the team selection menu. You can have different classes per teams also.
teamID | specifies which team slot to occupy. |
classType | specifies the name of the player class. Used as an identifer in rules and menus. |
void declAPI_t::AddKey | ( | decl | declHandle, |
string | keyName, | ||
string | setValue | ||
) |
Adds/updates a named key within a decl with a new string value.
declHandle | is the decl reference to update. |
keyName | specifies the key to set. |
setValue | specifies the value we'll set the key to. |
void teamAPI_t::AddScore | ( | int | , |
int | |||
) |
int teamAPI_t::BestAutoJoinTeam | ( | void | ) |
string weaponInfo_t::Class | ( | string | weaponDef | ) |
weaponDef | the name of the entityDef that defines the weapon. |
string teamAPI_t::ClassForIndex | ( | int | teamID, |
int | classIndex | ||
) |
Returns the class type of a given team + index.
teamID | specifies which team slot to query for class types. |
classIndex | specifies the index of the class to query. Use teams.TotalClasses() for the range. |
int weaponInfo_t::ClipSize | ( | string | weaponDef | ) |
weaponDef | the name of the entityDef that defines the weapon. |
vector teamAPI_t::Color | ( | int | ) |
void declAPI_t::Delete | ( | decl | declHandle | ) |
Removes a named decl from the game.
declHandle | specifies the decl to delete. |
float weaponInfo_t::FireTime | ( | string | weaponDef | ) |
weaponDef | the name of the entityDef that defines the weapon. |
bool declAPI_t::GetBool | ( | decl | declHandle, |
string | keyName | ||
) |
Returns the boolean value of a decl key.
declHandle | is the decl reference to update. |
keyName | specifies the name of the key to query within the decl. |
bool userinfoAPI_t::GetBool | ( | entity | clientEnt, |
string | userKey | ||
) |
Returns the boolean value of a user info-key.
clientEnt | specifies which user to query. |
userKey | specifies the user info-key to query. |
bool cvarAPI_t::GetBool | ( | string | cvarName | ) |
Returns the boolean value of a console variable.
cvarName | specifies the console variable key to query. |
bool entityDefAPI_t::GetBool | ( | string | defName, |
string | keyName | ||
) |
Returns the boolean value of a EntityDef key.
defName | specifies the EntityDef name in question |
keyName | specifies the EntityDef key to query. |
bool serverinfoAPI_t::GetBool | ( | string | serverKey | ) |
Returns the boolean value of a server info-key.
serverKey | specifies the server info-key to query. |
float declAPI_t::GetFloat | ( | decl | declHandle, |
string | keyName | ||
) |
Returns the floating-point value of a decl key.
declHandle | is the decl reference to update. |
keyName | specifies the name of the key to query within the decl. |
float userinfoAPI_t::GetFloat | ( | entity | clientEnt, |
string | userKey | ||
) |
Returns the floating-point value of a user info-key.
clientEnt | specifies which user to query. |
userKey | specifies the user info-key to query. |
float cvarAPI_t::GetFloat | ( | string | cvarName | ) |
Returns the floating-point value of a console variable.
cvarName | specifies the console variable key to query. |
float entityDefAPI_t::GetFloat | ( | string | defName, |
string | keyName | ||
) |
Returns the floating-point value of a EntityDef key.
defName | specifies the EntityDef name in question |
keyName | specifies the EntityDef key to query. |
float serverinfoAPI_t::GetFloat | ( | string | serverKey | ) |
Returns the floating-point value of a server info-key.
serverKey | specifies the server info-key to query. |
int declAPI_t::GetInteger | ( | decl | declHandle, |
string | keyName | ||
) |
Returns the integer value of a decl key.
declHandle | is the decl reference to update. |
keyName | specifies the name of the key to query within the decl. |
int userinfoAPI_t::GetInteger | ( | entity | clientEnt, |
string | userKey | ||
) |
Returns the integer value of a user info-key.
clientEnt | specifies which user to query. |
userKey | specifies the user info-key to query. |
int cvarAPI_t::GetInteger | ( | string | cvarName | ) |
Returns the integer value of a console variable.
cvarName | specifies the console variable key to query. |
int entityDefAPI_t::GetInteger | ( | string | defName, |
string | keyName | ||
) |
Returns the integer value of a EntityDef key.
defName | specifies the EntityDef name in question |
keyName | specifies the EntityDef key to query. |
int serverinfoAPI_t::GetInteger | ( | string | serverKey | ) |
Returns the integer value of a server info-key.
serverKey | specifies the server info-key to query. |
string declAPI_t::GetString | ( | decl | declHandle, |
string | keyName | ||
) |
Returns the string value of a key from a decl.
declHandle | is the decl reference to update. |
keyName | specifies the name of the key to query within the decl. |
string userinfoAPI_t::GetString | ( | entity | clientEnt, |
string | userKey | ||
) |
Returns the string value of a user info-key.
clientEnt | specifies which user to query. |
userKey | specifies the user info-key to query. |
string cvarAPI_t::GetString | ( | string | cvarName | ) |
Returns the string value of a console variable.
cvarName | specifies the console variable key to query. |
string entityDefAPI_t::GetString | ( | string | defName, |
string | keyName | ||
) |
Returns the string value of a EntityDef key.
defName | specifies the EntityDef name in question |
keyName | specifies the EntityDef key to query. |
string serverinfoAPI_t::GetString | ( | string | serverKey | ) |
Returns the string value of a server info-key.
serverKey | specifies the server info-key to query. |
vector declAPI_t::GetVector | ( | decl | declHandle, |
string | keyName | ||
) |
Returns the vector value of a decl key.
declHandle | is the decl reference to update. |
keyName | specifies the name of the key to query within the decl. |
vector userinfoAPI_t::GetVector | ( | entity | clientEnt, |
string | userKey | ||
) |
Returns the vector value of a user info-key.
clientEnt | specifies which user to query. |
userKey | specifies the user info-key to query. |
vector cvarAPI_t::GetVector | ( | string | cvarName | ) |
Returns the vector value of a console variable.
cvarName | specifies the console variable key to query. |
vector entityDefAPI_t::GetVector | ( | string | defName, |
string | keyName | ||
) |
Returns the vector value of a EntityDef key.
defName | specifies the EntityDef name in question |
keyName | specifies the EntityDef key to query. |
vector serverinfoAPI_t::GetVector | ( | string | serverKey | ) |
Returns the vector value of a server info-key.
serverKey | specifies the server info-key to query. |
string weaponInfo_t::InventoryType | ( | string | weaponDef | ) |
weaponDef | the name of the entityDef that defines the weapon. |
bool weaponInfo_t::IsClipOnly | ( | string | weaponDef | ) |
weaponDef | the name of the entityDef that defines the weapon. |
bool weaponInfo_t::IsDetonationTimed | ( | string | weaponDef | ) |
weaponDef | the name of the entityDef that defines the weapon. |
bool weaponInfo_t::IsSemiAuto | ( | string | weaponDef | ) |
weaponDef | the name of the entityDef that defines the weapon. |
__variant linkToSharedProgs | ( | string | funcName | ) |
int weaponInfo_t::MaxAmmo | ( | string | weaponDef | ) |
weaponDef | the name of the entityDef that defines the weapon. |
int ammoAPI_t::MaxForName | ( | string | ) |
Returns the max ammo given name of ammo.
Returns 0 when invalid.
int ammoAPI_t::MaxForNum | ( | int | ) |
Returns the max ammo given name of ammo.
Returns 0 when invalid.
float precacheAPI_t::Model | ( | string | ) |
string teamAPI_t::Name | ( | int | ) |
string ammoAPI_t::NameForNum | ( | int | ) |
Returns the name of the specified ammo type.
Returns NULL when invalid.
decl declAPI_t::New | ( | void | ) |
Returns the name of a new decl in which you can store key/value pairs in.
int teamAPI_t::NumAlivePlayers | ( | int | ) |
int teamAPI_t::NumDeadPlayers | ( | int | ) |
int ammoAPI_t::NumForName | ( | string | ) |
Returns the ammo id of a given name of ammo.
Return -1 when invalid.
int teamAPI_t::NumPlayers | ( | int | ) |
int teamAPI_t::OpenTeamCount | ( | void | ) |
entity teamAPI_t::RandomPlayer | ( | int | ) |
void declAPI_t::RemoveKey | ( | decl | declHandle, |
string | keyName | ||
) |
Removes a named key from a decl entirely.
declHandle | is the decl reference to update. |
keyName | specifies the key to remove. |
int teamAPI_t::Score | ( | int | ) |
void userinfoAPI_t::SetBool | ( | entity | clientEnt, |
string | userKey, | ||
bool | setValue | ||
) |
Sets the specified user info-key to a set boolean value.
clientEnt | specifies which user to query. |
userKey | specifies the user info-key to set. |
setValue | specifies the value of said key. |
void cvarAPI_t::SetBool | ( | string | cvarName, |
bool | setValue | ||
) |
Sets the specified console variable to a set boolean value.
cvarName | specifies the console variable to set. |
setValue | specifies the value of said key. |
void serverinfoAPI_t::SetBool | ( | string | serverKey, |
bool | setValue | ||
) |
Sets the specified server info-key to a set boolean value.
serverKey | specifies the server info-key to set. |
setValue | specifies the value of said key. |
void userinfoAPI_t::SetFloat | ( | entity | clientEnt, |
string | userKey, | ||
float | setValue | ||
) |
Sets the specified user info-key to a set floating-point value.
clientEnt | specifies which user to query. |
userKey | specifies the user info-key to set. |
setValue | specifies the value of said key. |
void cvarAPI_t::SetFloat | ( | string | cvarName, |
float | setValue | ||
) |
Sets the specified console variable to a set floating-point value.
cvarName | specifies the console variable to set. |
setValue | specifies the value of said key. |
void serverinfoAPI_t::SetFloat | ( | string | serverKey, |
float | setValue | ||
) |
Sets the specified server info-key to a set floating-point value.
serverKey | specifies the server info-key to set. |
setValue | specifies the value of said key. |
void userinfoAPI_t::SetInteger | ( | entity | clientEnt, |
string | userKey, | ||
int | setValue | ||
) |
Sets the specified user info-key to a set integer value.
clientEnt | specifies which user to query. |
userKey | specifies the user info-key to set. |
setValue | specifies the value of said key. |
void cvarAPI_t::SetInteger | ( | string | cvarName, |
int | setValue | ||
) |
Sets the specified console variable to a set integer value.
cvarName | specifies the console variable to set. |
setValue | specifies the value of said key. |
void serverinfoAPI_t::SetInteger | ( | string | serverKey, |
int | setValue | ||
) |
Sets the specified server info-key to a set integer value.
serverKey | specifies the server info-key to set. |
setValue | specifies the value of said key. |
void teamAPI_t::SetScore | ( | int | , |
int | |||
) |
void teamAPI_t::SetSpawnPoint | ( | int | teamID, |
string | spawnPointEntityClassname | ||
) |
Sets up a team spawn point for the current session.
Using this function you can override the default team spawn, such as info_player_deathmatch type entities - and reroute spawns for a specific team to a different class.
teamID | specifies which team slot to occupy. |
spawnPointEntityClassname | specifies the classname of this team's spawn point. |
void userinfoAPI_t::SetString | ( | entity | clientEnt, |
string | userKey, | ||
string | setValue | ||
) |
Sets the specified user info-key to a set string value.
clientEnt | specifies which user to query. |
userKey | specifies the user info-key to set. |
setValue | specifies the value of said key. |
void cvarAPI_t::SetString | ( | string | cvarName, |
string | setValue | ||
) |
Sets the specified console variable to a set string value.
cvarName | specifies the console variable to set. |
setValue | specifies the value of said key. |
void serverinfoAPI_t::SetString | ( | string | serverKey, |
string | setValue | ||
) |
Sets the specified server info-key to a set string value.
serverKey | specifies the server info-key to set. |
setValue | specifies the value of said key. |
void teamAPI_t::SetUp | ( | int | teamID, |
string | teamTitle, | ||
vector | teamColor, | ||
bool | openTeam | ||
) |
Sets up a team for the current session.
Will flush the team specific scores.
teamID | specifies which team slot to occupy. |
teamTitle | specifies the title of the team. |
teamColor | specifies the color of the team (e.g. [0, 255, 0] for green). |
openTeam | specifies whether players can join the team manually. |
void userinfoAPI_t::SetVector | ( | entity | clientEnt, |
string | userKey, | ||
vector | setValue | ||
) |
Sets the specified user info-key to a set vector.
clientEnt | specifies which user to query. |
userKey | specifies the user info-key to set. |
setValue | specifies the value of said key. |
void cvarAPI_t::SetVector | ( | string | cvarName, |
vector | setValue | ||
) |
Sets the specified console variable to a set vector.
cvarName | specifies the console variable to set. |
setValue | specifies the value of said key. |
void serverinfoAPI_t::SetVector | ( | string | serverKey, |
vector | setValue | ||
) |
Sets the specified server info-key to a set vector.
serverKey | specifies the server info-key to set. |
setValue | specifies the value of said key. |
float precacheAPI_t::Sound | ( | string | ) |
string teamAPI_t::SpawnPoint | ( | int | ) |
int weaponInfo_t::StartAmmo | ( | string | weaponDef | ) |
weaponDef | the name of the entityDef that defines the weapon. |
int teamAPI_t::TeamCount | ( | void | ) |
int teamAPI_t::TotalClasses | ( | int | teamID | ) |
Returns the maximum number of classes this team can select.
teamID | specifies which team slot to query for class types. |
int teamAPI_t::TotalDeaths | ( | int | ) |
int teamAPI_t::TotalFrags | ( | int | ) |
string weaponInfo_t::Type | ( | string | weaponDef | ) |
weaponDef | the name of the entityDef that defines the weapon. |
bool teamAPI_t::Valid | ( | int | ) |
typedef string decl |
ammoAPI_t ammo |
cvarAPI_t cvars |
declAPI_t declManager |
entityDefAPI_t entityDef |
precacheAPI_t precache |
serverinfoAPI_t serverinfo |
teamAPI_t teams |
userinfoAPI_t userinfo |
weaponInfo_t weaponInfo |