From 23b045093898f17980517c508449067cda54efce Mon Sep 17 00:00:00 2001 From: Arkshine Date: Sun, 26 Jul 2015 18:26:12 +0200 Subject: [PATCH] Cstrike: Add cs_get_weapon_class() stock (weapon id -> class id) Note: this has been modified a bit later in cs_is_valid_itemid() commit. --- modules/cstrike/cstrike/CstrikeDatas.h | 22 +++++++++- plugins/include/amxconst.inc | 13 +++++- plugins/include/cstrike.inc | 60 ++++++++++++++++++++++---- plugins/include/cstrike_const.inc | 13 ++++++ 4 files changed, 98 insertions(+), 10 deletions(-) diff --git a/modules/cstrike/cstrike/CstrikeDatas.h b/modules/cstrike/cstrike/CstrikeDatas.h index a6777fb6..eabf8083 100644 --- a/modules/cstrike/cstrike/CstrikeDatas.h +++ b/modules/cstrike/cstrike/CstrikeDatas.h @@ -56,7 +56,16 @@ #define CSI_SECAMMO 37 // Custom #define CSI_MAX_COUNT 38 -#define BITS_PISTOLS (1<