Skip to content

Commit 14eaa09

Browse files
committed
Add new weapons to CSWeaponID enum. (#869)
1 parent 98be188 commit 14eaa09

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

extensions/cstrike/util_cstrike.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ SMCSWeapon GetWeaponIdFromDefIdx(uint16_t iDefIdx)
336336
SMCSWeapon_AUG, SMCSWeapon_AWP, SMCSWeapon_FAMAS, SMCSWeapon_G3SG1,
337337
SMCSWeapon_NONE, SMCSWeapon_GALILAR, SMCSWeapon_M249, SMCSWeapon_NONE,
338338
SMCSWeapon_M4A1, SMCSWeapon_MAC10, SMCSWeapon_NONE, SMCSWeapon_P90,
339-
SMCSWeapon_NONE, SMCSWeapon_NONE, SMCSWeapon_NONE, SMCSWeapon_NONE,
339+
SMCSWeapon_NONE, SMCSWeapon_NONE, SMCSWeapon_NONE, SMCSWeapon_MP5NAVY,
340340
SMCSWeapon_UMP45, SMCSWeapon_XM1014, SMCSWeapon_BIZON, SMCSWeapon_MAG7,
341341
SMCSWeapon_NEGEV, SMCSWeapon_SAWEDOFF, SMCSWeapon_TEC9, SMCSWeapon_TASER,
342342
SMCSWeapon_HKP2000, SMCSWeapon_MP7, SMCSWeapon_MP9, SMCSWeapon_NOVA,

plugins/include/cstrike.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ enum CSWeaponID
152152
CSWeapon_KNIFE_SURVIVAL_BOWIE = 514,
153153
CSWeapon_KNIFE_BUTTERFLY = 515,
154154
CSWeapon_KNIFE_PUSH = 516,
155+
CSWeapon_KNIFE_URSUS = 519,
156+
CSWeapon_KNIFE_GYPSY_JACKKNIFE = 520,
157+
CSWeapon_KNIFE_STILETTO = 522,
158+
CSWeapon_KNIFE_WIDOWMAKER = 523,
155159
CSWeapon_MAX_WEAPONS //THIS MUST BE LAST, EASY WAY TO CREATE LOOPS. When looping, do CS_IsValidWeaponID(i), to check.
156160
};
157161

0 commit comments

Comments
 (0)