85 void SetBool(
string cvarName,
bool setValue);
90 void SetFloat(
string cvarName,
float setValue);
142 void SetBool(
string serverKey,
bool setValue);
183 bool GetBool(entity clientEnt,
string userKey);
195 void SetString(entity clientEnt,
string userKey,
string setValue);
201 void SetInteger(entity clientEnt,
string userKey,
int setValue);
207 void SetBool(entity clientEnt,
string userKey,
bool setValue);
213 void SetFloat(entity clientEnt,
string userKey,
float setValue);
219 void SetVector(entity clientEnt,
string userKey, vector setValue);
294 void SetUp(
int teamID,
string teamTitle, vector teamColor,
bool openTeam);
417 void AddKey(
decl declHandle,
string keyName,
string setValue);
436 static void empty(
void)
438 print(
"Called unimplemented shared API call.\n");
442 float func = externvalue( 0, funcName);
445 return ((__variant)func);
string ClassForIndex(int teamID, int classIndex)
Returns the class type of a given team + index.
bool GetBool(string cvarName)
Returns the boolean value of a console variable.
string InventoryType(string weaponDef)
string GetString(decl declHandle, string keyName)
Returns the string value of a key from a decl.
float FireTime(string weaponDef)
void SetUp(int teamID, string teamTitle, vector teamColor, bool openTeam)
Sets up a team for the current session.
string Type(string weaponDef)
string NameForNum(int)
Returns the name of the specified ammo type.
vector GetVector(decl declHandle, string keyName)
Returns the vector value of a decl key.
int GetInteger(decl declHandle, string keyName)
Returns the integer value of a decl key.
void _shared_main(void)
Definition: api.h:452
decl New(void)
Returns the name of a new decl in which you can store key/value pairs in.
void SetString(entity clientEnt, string userKey, string setValue)
Sets the specified user info-key to a set string value.
float GetFloat(string cvarName)
Returns the floating-point value of a console variable.
void SetVector(string serverKey, vector setValue)
Sets the specified server info-key to a set vector.
int StartAmmo(string weaponDef)
void SetVector(string cvarName, vector setValue)
Sets the specified console variable to a set vector.
weaponInfo_t weaponInfo
Definition: api.h:264
void AddKey(decl declHandle, string keyName, string setValue)
Adds/updates a named key within a decl with a new string value.
bool IsSemiAuto(string weaponDef)
userinfoAPI_t userinfo
Definition: api.h:222
void SetSpawnPoint(int teamID, string spawnPointEntityClassname)
Sets up a team spawn point for the current session.
precacheAPI_t precache
Definition: api.h:370
float GetFloat(decl declHandle, string keyName)
Returns the floating-point value of a decl key.
string GetString(string defName, string keyName)
Returns the string value of a EntityDef key.
int NumForName(string)
Returns the ammo id of a given name of ammo.
int MaxAmmo(string weaponDef)
vector GetVector(string defName, string keyName)
Returns the vector value of a EntityDef key.
int TotalClasses(int teamID)
Returns the maximum number of classes this team can select.
float GetFloat(string defName, string keyName)
Returns the floating-point value of a EntityDef key.
int MaxForNum(int)
Returns the max ammo given name of ammo.
void AddClass(int teamID, string classType)
Sets up a team class for the current session.
float GetFloat(entity clientEnt, string userKey)
Returns the floating-point value of a user info-key.
string GetString(string cvarName)
Returns the string value of a console variable.
string GetString(entity clientEnt, string userKey)
Returns the string value of a user info-key.
__variant linkToSharedProgs(string funcName)
Definition: api.h:434
void SetBool(string serverKey, bool setValue)
Sets the specified server info-key to a set boolean value.
vector GetVector(entity clientEnt, string userKey)
Returns the vector value of a user info-key.
float GetFloat(string serverKey)
Returns the floating-point value of a server info-key.
void SetBool(entity clientEnt, string userKey, bool setValue)
Sets the specified user info-key to a set boolean value.
bool IsClipOnly(string weaponDef)
bool GetBool(string serverKey)
Returns the boolean value of a server info-key.
declAPI_t declManager
Definition: api.h:431
bool GetBool(string defName, string keyName)
Returns the boolean value of a EntityDef key.
void SetString(string serverKey, string setValue)
Sets the specified server info-key to a set string value.
cvarAPI_t cvars
Definition: api.h:98
void SetString(string cvarName, string setValue)
Sets the specified console variable to a set string value.
string decl
Definition: api.h:372
void SetBool(string cvarName, bool setValue)
Sets the specified console variable to a set boolean value.
int GetInteger(string serverKey)
Returns the integer value of a server info-key.
void Delete(decl declHandle)
Removes a named decl from the game.
void SetFloat(entity clientEnt, string userKey, float setValue)
Sets the specified user info-key to a set floating-point value.
int BestAutoJoinTeam(void)
void SetFloat(string cvarName, float setValue)
Sets the specified console variable to a set floating-point value.
int GetInteger(entity clientEnt, string userKey)
Returns the integer value of a user info-key.
bool GetBool(entity clientEnt, string userKey)
Returns the boolean value of a user info-key.
vector GetVector(string serverKey)
Returns the vector value of a server info-key.
string Class(string weaponDef)
bool IsDetonationTimed(string weaponDef)
string GetString(string serverKey)
Returns the string value of a server info-key.
void SetInteger(entity clientEnt, string userKey, int setValue)
Sets the specified user info-key to a set integer value.
int GetInteger(string defName, string keyName)
Returns the integer value of a EntityDef key.
entityDefAPI_t entityDef
Definition: api.h:363
void SetInteger(string serverKey, int setValue)
Sets the specified server info-key to a set integer value.
int MaxForName(string)
Returns the max ammo given name of ammo.
vector GetVector(string cvarName)
Returns the vector value of a console variable.
void SetInteger(string cvarName, int setValue)
Sets the specified console variable to a set integer value.
void SetFloat(string serverKey, float setValue)
Sets the specified server info-key to a set floating-point value.
void SetVector(entity clientEnt, string userKey, vector setValue)
Sets the specified user info-key to a set vector.
int GetInteger(string cvarName)
Returns the integer value of a console variable.
void RemoveKey(decl declHandle, string keyName)
Removes a named key from a decl entirely.
int ClipSize(string weaponDef)
teamAPI_t teams
Definition: api.h:325
bool GetBool(decl declHandle, string keyName)
Returns the boolean value of a decl key.
serverinfoAPI_t serverinfo
Definition: api.h:155
ammoAPI_t ammo
Definition: api.h:40