Skip to content

Improved WeaponClass, WeaponID, WeaponType, and WeaponSlot for CS:GO/CS:S. #478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 65 additions & 55 deletions addons/source-python/data/source-python/weapons/constants/csgo/WeaponID.ini
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,68 +1,72 @@
# ../data/source-python/weapons/constants/csgo/WeaponID.ini

P228 = 1
GLOCK = 2
SCOUT = 3
HEGRENADE = 4
XM1014 = 5
C4 = 6
MAC10 = 7
DEAGLE = 1
ELITE = 2
FIVESEVEN = 3
GLOCK = 4
#P228 = 5
#USP = 6
AK47 = 7
AUG = 8
SMOKEGRENADE = 9
ELITE = 10
FIVESEVEN = 11
UMP45 = 12
SG550 = 13
GALIL = 14
FAMAS = 15
USP = 16
AWP = 17
MP5NAVY = 18
M249 = 19
M3 = 20
M4A1 = 21
TMP = 22
G3SG1 = 23
FLASHBANG = 24
DEAGLE = 25
SG552 = 26
AK47 = 27
KNIFE = 28
P90 = 29
SHIELD = 30
KEVLAR = 31
ASSAULTSUIT = 32
NIGHTVISION = 33
GALILAR = 34
BIZON = 35
MAG7 = 36
NEGEV = 37
SAWEDOFF = 38
TEC9 = 39
TASER = 40
HKP2K = 41
MP7 = 42
MP9 = 43
NOVA = 44
P250 = 45
SCAR17 = 46
SCAR20 = 47
SG556 = 48
SSG08 = 49
KNIFEGG = 50
MOLOTOV = 51
DECOY = 52
INCENDIARY = 53
DEFUSER = 54
HEAVYASSAULTSUIT = 55
AWP = 9
FAMAS = 10
G3SG1 = 11
#GALIL = 12
GALILAR = 13
M249 = 14
#M3 = 15
M4A1 = 16
MAC10 = 17
#MP5NAVY = 18
P90 = 19
ZONE_REPULSOR = 20
#SCOUT = 20
#SG550 = 21
#SG552 = 22
MP5SD = 23
#TMP = 23
UMP45 = 24
XM1014 = 25
BIZON = 26
MAG7 = 27
NEGEV = 28
SAWEDOFF = 29
TEC9 = 30
TASER = 31
HKP2000 = 32
MP7 = 33
MP9 = 34
NOVA = 35
P250 = 36
SHIELD = 37
#SCAR17 = 37
SCAR20 = 38
SG556 = 39
SSG08 = 40
KNIFEGG = 41
KNIFE = 42
FLASHBANG = 43
HEGRENADE = 44
SMOKEGRENADE = 45
MOLOTOV = 46
DECOY = 47
INCGRENADE = 48
C4 = 49
KEVLAR = 50
ASSAULTSUIT = 51
HEAVYASSAULTSUIT = 52
NVGS = 54
NVG = 54
NIGHTVISION = 54
DEFUSER = 55
CUTTERS = 56
HEALTHSHOT = 57
KNIFE_T = 59
M4A1_SILENCER = 60
USP_SILENCER = 61
CZ75A = 63
REVOLVER = 64
TAGGRENADE = 68
TAGRENADE = 68
FISTS = 69
BREACHCHARGE = 70
TABLET = 72
Expand All @@ -75,8 +79,10 @@ FIREBOMB = 81
DIVERSION = 82
FRAG_GRENADE = 83
SNOWBALL = 84
BUMPMINE = 85
# Knives from cases.
BAYONET = 500
KNIFE_CSS = 503
KNIFE_FLIP = 505
KNIFE_GUT = 506
KNIFE_KARAMBIT = 507
Expand All @@ -86,7 +92,11 @@ KNIFE_FALCHION = 512
KNIFE_SURVIVAL_BOWIE = 514
KNIFE_BUTTERFLY = 515
KNIFE_PUSH = 516
KNIFE_CORD = 517
KNIFE_CANIS = 518
KNIFE_URSUS = 519
KNIFE_GYPSY_JACKKNIFE = 520
KNIFE_OUTDOOR = 521
KNIFE_STILETTO = 522
KNIFE_WIDOWMAKER = 523
KNIFE_SKELETON = 525
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ../data/source-python/weapons/constants/csgo/WeaponSlot.ini

PRIMARY = 0
SECONDARY = 1
KNIFE = 2
GRENADE = 3
C4 = 4
SHIELD = 11
TABLET = 12
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# ../data/source-python/weapons/constants/csgo/WeaponType.ini

KNIFE = 0
PISTOL = 1
SMG = 2
SUBMACHINEGUN = 2
RIFLE = 3
SHOTGUN = 4
SNIPERRIFLE = 5
SNIPER = 5
MACHINEGUN = 6
MG = 6
C4 = 7
EXPLOSIVE = 7
TASER = 8
GRENADE = 9
EQUIPMENT = 10
STACKABLEITEM = 11
FISTS = 12
BREACHCHARGE = 13
BUMPMINE = 14
TABLET = 15
MELEE = 16
SHIELD = 17
ZONEREPULSOR = 18
UNKNOWN = 19
2 changes: 2 additions & 0 deletions addons/source-python/data/source-python/weapons/constants/orangebox/cstrike/WeaponID.ini
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ P90 = 29
SHIELD = 30
KEVLAR = 31
ASSAULTSUIT = 32
NVGS = 33
NVG = 33
NIGHTVISION = 33
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
KNIFE = 0
PISTOL = 1
SMG = 2
SUBMACHINEGUN = 2
RIFLE = 3
SHOTGUN = 4
SNIPERRIFLE = 5
SNIPER = 5
MACHINEGUN = 6
MG = 6
C4 = 7
EXPLOSIVE = 7
GRENADE = 8
UNKNOWN = 9
Loading