88 void SetBool(
string cvarName,
bool setValue);
93 void SetFloat(
string cvarName,
float setValue);
145 void SetBool(
string serverKey,
bool setValue);
186 bool GetBool(entity clientEnt,
string userKey);
198 void SetString(entity clientEnt,
string userKey,
string setValue);
204 void SetInteger(entity clientEnt,
string userKey,
int setValue);
210 void SetBool(entity clientEnt,
string userKey,
bool setValue);
216 void SetFloat(entity clientEnt,
string userKey,
float setValue);
222 void SetVector(entity clientEnt,
string userKey, vector setValue);
297 void SetUp(
int teamID,
string teamTitle, vector teamColor,
bool openTeam);
379 float Play(
string soundDef,
float level = 75,
float pitch = 100,
float volume = 100,
float channel = CHAN_AUTO);
429 void AddKey(
decl declHandle,
string keyName,
string setValue);
447linkToSharedProgs(
string funcName)
449 static void empty(
void)
451 print(
"Called unimplemented shared API call.\n");
455 float func = externvalue( 0, funcName);
458 return ((__variant)func);
473 cvars.
SetBool = linkToSharedProgs(
"SHPF_cvars_SetBool");
479 cvars.
GetBool = linkToSharedProgs(
"SHPF_cvars_GetBool");
517 teams.
Color = linkToSharedProgs(
"SHPF_teams_Color");
518 teams.
Name = linkToSharedProgs(
"SHPF_teams_Name");
519 teams.
Score = linkToSharedProgs(
"SHPF_teams_Score");
526 teams.
Valid = linkToSharedProgs(
"SHPF_teams_Valid");
532 teams.
SetUp = linkToSharedProgs(
"SHPF_teams_SetUp");
weaponInfo_t weaponInfo
Definition: api.h:267
userinfoAPI_t userinfo
Definition: api.h:225
precacheAPI_t precache
Definition: api.h:373
soundAPI_t soundKit
Definition: api.h:381
declAPI_t declManager
Definition: api.h:443
cvarAPI_t cvars
Definition: api.h:101
string decl
Definition: api.h:384
entityDefAPI_t entityDef
Definition: api.h:366
teamAPI_t teams
Definition: api.h:328
serverinfoAPI_t serverinfo
Definition: api.h:158
ammoAPI_t ammo
Definition: api.h:43
string NameForNum(int)
Returns the name of the specified ammo type.
int NumForName(string)
Returns the ammo id of a given name of ammo.
int MaxForNum(int)
Returns the max ammo given name of ammo.
int MaxForName(string)
Returns the max ammo given name of ammo.
float GetBool(string cvarName)
Returns the boolean value of a console variable.
float GetFloat(string cvarName)
Returns the floating-point value of a console variable.
void SetVector(string cvarName, vector setValue)
Sets the specified console variable to a set vector.
string GetString(string cvarName)
Returns the string value of a console variable.
void SetString(string cvarName, string setValue)
Sets the specified console variable to a set string value.
void SetFloat(string cvarName, float setValue)
Sets the specified console variable to a set floating-point value.
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 SetBool(string cvarName, float setValue)
Sets the specified console variable to a set boolean value.
int GetInteger(string cvarName)
Returns the integer value of a console variable.
string GetString(decl declHandle, string keyName)
Returns the string value of a key from a decl.
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.
decl New(void)
Returns the name of a new decl in which you can store key/value pairs in.
float GetBool(decl declHandle, string keyName)
Returns the boolean value of a decl key.
void AddKey(decl declHandle, string keyName, string setValue)
Adds/updates a named key within a decl with a new string value.
float GetFloat(decl declHandle, string keyName)
Returns the floating-point value of a decl key.
void Delete(decl declHandle)
Removes a named decl from the game.
void RemoveKey(decl declHandle, string keyName)
Removes a named key from a decl entirely.
string GetString(string defName, string keyName)
Returns the string value of a EntityDef key.
vector GetVector(string defName, string keyName)
Returns the vector value of a EntityDef key.
float GetFloat(string defName, string keyName)
Returns the floating-point value of a EntityDef key.
float GetBool(string defName, string keyName)
Returns the boolean value of a EntityDef key.
int GetInteger(string defName, string keyName)
Returns the integer value of a EntityDef key.
void SetBool(string serverKey, float setValue)
Sets the specified server info-key to a set boolean value.
void SetVector(string serverKey, vector setValue)
Sets the specified server info-key to a set vector.
float GetBool(string serverKey)
Returns the boolean value of a server info-key.
float GetFloat(string serverKey)
Returns the floating-point value of a server info-key.
void SetString(string serverKey, string setValue)
Sets the specified server info-key to a set string value.
int GetInteger(string serverKey)
Returns the integer value of a server info-key.
vector GetVector(string serverKey)
Returns the vector value of a server info-key.
string GetString(string serverKey)
Returns the string value of a server info-key.
void SetInteger(string serverKey, int setValue)
Sets the specified server info-key to a set integer value.
void SetFloat(string serverKey, float setValue)
Sets the specified server info-key to a set floating-point value.
float Play(string soundDef, float level=75, float pitch=100, float volume=100, float channel=CHAN_AUTO)
string ClassForIndex(int teamID, int classIndex)
Returns the class type of a given team + index.
void SetUp(int teamID, string teamTitle, vector teamColor, float openTeam)
Sets up a team for the current session.
void SetSpawnPoint(int teamID, string spawnPointEntityClassname)
Sets up a team spawn point for the current session.
int TotalClasses(int teamID)
Returns the maximum number of classes this team can select.
void AddClass(int teamID, string classType)
Sets up a team class for the current session.
int BestAutoJoinTeam(void)
float GetBool(entity clientEnt, string userKey)
Returns the boolean value of a user info-key.
void SetString(entity clientEnt, string userKey, string setValue)
Sets the specified user info-key to a set string value.
void SetBool(entity clientEnt, string userKey, float setValue)
Sets the specified user info-key to a set boolean value.
float GetFloat(entity clientEnt, string userKey)
Returns the floating-point value of a user info-key.
string GetString(entity clientEnt, string userKey)
Returns the string value of a user info-key.
vector GetVector(entity clientEnt, string userKey)
Returns the vector value of a user info-key.
void SetFloat(entity clientEnt, string userKey, float setValue)
Sets the specified user info-key to a set floating-point value.
int GetInteger(entity clientEnt, string userKey)
Returns the integer value of a user info-key.
void SetInteger(entity clientEnt, string userKey, int setValue)
Sets the specified user info-key to a set integer value.
void SetVector(entity clientEnt, string userKey, vector setValue)
Sets the specified user info-key to a set vector.
string InventoryType(string weaponDef)
float FireTime(string weaponDef)
string Type(string weaponDef)
float IsSemiAuto(string weaponDef)
int StartAmmo(string weaponDef)
float IsClipOnly(string weaponDef)
int MaxAmmo(string weaponDef)
float IsDetonationTimed(string weaponDef)
string Class(string weaponDef)
int ClipSize(string weaponDef)