TSX
Content:
Notes
The Specialists module (TSX) was developed by SidLuke, originally ported from his earlier AMX Mod module. It has two main portions, generic The Specialists natives and a The Specialists statistical package. TSX contains the following constants: Powerup Constants
#define TSPWUP_RANDOM			0
#define TSPWUP_SLOWMO			1
#define TSPWUP_INFAMMO			2
#define TSPWUP_KUNGFU			4
#define TSPWUP_SLOWPAUSE			8
#define TSPWUP_DFIRERATE			16
#define TSPWUP_GRENADE			32
#define TSPWUP_HEALTH			64
#define TSPWUP_ARMOR			128
#define TSPWUP_SUPERJUMP			256

Item Constants
#define TSITEM_KUNGFU			1<<0
#define TSITEM_SUPERJUMP			1<<1

Kill Flag Constants
#define TSKF_STUNTKILL			1<<0
#define TSKF_SLIDINGKILL			1<<1
#define TSKF_DOUBLEKILL			1<<2
#define TSKF_ISSPEC			1<<3 // is specialist
#define TSKF_KILLEDSPEC			1<<4 // killed specialist

Weapon Mode Constants
#define TSA_SILENCER			1
#define TSA_LASERSIGHT			2
#define TSA_FLASHLIGHT			4
#define TSA_SCOPE				8

Weapon Constants
#define TSMAX_WEAPONS 44	// 37 + throwing knife + breakable + 5 custom weapon slots
enum {
  TSW_GLOCK18 = 1,
  TSW_UNK1,
  TSW_UZI,
  TSW_M3,
  TSW_M4A1,
  TSW_MP5SD,
  TSW_MP5K,
  TSW_ABERETTAS,
  TSW_MK23,
  TSW_AMK23,
  TSW_USAS,
  TSW_DEAGLE,
  TSW_AK47,
  TSW_57,
  TSW_AUG,
  TSW_AUZI,
  TSW_TMP,
  TSW_M82A1,
  TSW_MP7,
  TSW_SPAS,
  TSW_GCOLTS,
  TSW_GLOCK20,
  TSW_UMP,
  TSW_M61GRENADE,
  TSW_CKNIFE,
  TSW_MOSSBERG,
  TSW_M16A4,
  TSW_MK1,
  TSW_C4,
  TSW_A57,
  TSW_RBULL,
  TSW_M60E3,
  TSW_SAWED_OFF,
  TSW_KATANA,
  TSW_SKNIFE,
  TSW_KUNG_FU,
  TSW_TKNIFE,
}

Functions
get_stats - Gets overall stats.
get_statsnum - Returns number of all entries in stats.
get_user_astats - Gets stats with which user have been killed/hurt.
get_user_rstats - Gets round stats of player.
get_user_stats - Gets overall stats.
get_user_vstats - Gets stats with which user have killed/hurt his victim.
get_user_wlstats - Gets life (from spawn to spawn) stats from given weapon index.
get_user_wrstats - Gets round stats from given weapon index.
get_user_wstats - Gets stats from given weapon index.
reset_user_wstats - Resets life, weapon, victims and attackers user stats.
ts_createpwup - Creates a powerup entity and returns its index.
ts_getkillingstreak - Returns player's killing streak.
ts_getusercash - Returns player's cash.
ts_getuseritems - Returns player's items.
ts_getuserkillflags - Returns player's kill flags.
ts_getuserlastfrag - Returns player's last frag.
ts_getuserpwup - Returns a user's powerup and amount.
ts_getuserspace - Returns a user's space.
ts_getuserwpn - Gets info about the user's current weapon.
ts_givepwup - Gives a user powerup created with ts_createpwup.
ts_giveweapon - Gives player a weapon.
ts_setpdata - Adjusts private data offset.
ts_wpnlogtoid - Gets the id of a logged weapon name.
ts_wpnlogtoname - Converts a weapon's logname to normal name.