From 75193e9ee9c008ed00ba60036c79f57bb53f9b24 Mon Sep 17 00:00:00 2001 From: Ruben Gonzalez Date: Wed, 12 Sep 2018 10:13:39 -0400 Subject: [PATCH] Add new weapons to CSWeaponID enum. (#869) --- extensions/cstrike/util_cstrike.cpp | 2 +- plugins/include/cstrike.inc | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/cstrike/util_cstrike.cpp b/extensions/cstrike/util_cstrike.cpp index 134d88fc..ae2932ec 100644 --- a/extensions/cstrike/util_cstrike.cpp +++ b/extensions/cstrike/util_cstrike.cpp @@ -336,7 +336,7 @@ SMCSWeapon GetWeaponIdFromDefIdx(uint16_t iDefIdx) SMCSWeapon_AUG, SMCSWeapon_AWP, SMCSWeapon_FAMAS, SMCSWeapon_G3SG1, SMCSWeapon_NONE, SMCSWeapon_GALILAR, SMCSWeapon_M249, SMCSWeapon_NONE, SMCSWeapon_M4A1, SMCSWeapon_MAC10, SMCSWeapon_NONE, SMCSWeapon_P90, - SMCSWeapon_NONE, SMCSWeapon_NONE, SMCSWeapon_NONE, SMCSWeapon_NONE, + SMCSWeapon_NONE, SMCSWeapon_NONE, SMCSWeapon_NONE, SMCSWeapon_MP5NAVY, SMCSWeapon_UMP45, SMCSWeapon_XM1014, SMCSWeapon_BIZON, SMCSWeapon_MAG7, SMCSWeapon_NEGEV, SMCSWeapon_SAWEDOFF, SMCSWeapon_TEC9, SMCSWeapon_TASER, SMCSWeapon_HKP2000, SMCSWeapon_MP7, SMCSWeapon_MP9, SMCSWeapon_NOVA, diff --git a/plugins/include/cstrike.inc b/plugins/include/cstrike.inc index 49e0aec0..940f6b7f 100644 --- a/plugins/include/cstrike.inc +++ b/plugins/include/cstrike.inc @@ -152,6 +152,10 @@ enum CSWeaponID CSWeapon_KNIFE_SURVIVAL_BOWIE = 514, CSWeapon_KNIFE_BUTTERFLY = 515, CSWeapon_KNIFE_PUSH = 516, + CSWeapon_KNIFE_URSUS = 519, + CSWeapon_KNIFE_GYPSY_JACKKNIFE = 520, + CSWeapon_KNIFE_STILETTO = 522, + CSWeapon_KNIFE_WIDOWMAKER = 523, CSWeapon_MAX_WEAPONS //THIS MUST BE LAST, EASY WAY TO CREATE LOOPS. When looping, do CS_IsValidWeaponID(i), to check. };