Permalink
Browse files

Added new weapons to CSGO data. (#268)

* Added new weapons to CSGO data.

* Added slot values for healthshot and tablet.
  • Loading branch information...
vinci6k authored and Ayuto committed Dec 30, 2018
1 parent f711ebe commit 434ef35ccc11a679b4181a1942bd241795f15b92
@@ -1,4 +1,4 @@
# ../data/source-python/weapons/constants/orangebox/cstrike/WeaponID.ini
# ../data/source-python/weapons/constants/csgo/WeaponID.ini

P228 = 1
GLOCK = 2
@@ -54,3 +54,39 @@ MOLOTOV = 51
DECOY = 52
INCENDIARY = 53
DEFUSER = 54
HEAVYASSAULTSUIT = 55
CUTTERS = 56
HEALTHSHOT = 57
KNIFE_T = 59
M4A1_SILENCER = 60
USP_SILENCER = 61
CZ75A = 63
REVOLVER = 64
TAGGRENADE = 68
FISTS = 69
BREACHCHARGE = 70
TABLET = 72
MELEE = 74
AXE = 75
HAMMER = 76
SPANNER = 78
KNIFE_GHOST = 80
FIREBOMB = 81
DIVERSION = 82
FRAG_GRENADE = 83
SNOWBALL = 84
# Knives from cases.
BAYONET = 500
KNIFE_FLIP = 505
KNIFE_GUT = 506
KNIFE_KARAMBIT = 507
KNIFE_M9_BAYONET = 508
KNIFE_TACTICAL = 509
KNIFE_FALCHION = 512
KNIFE_SURVIVAL_BOWIE = 514
KNIFE_BUTTERFLY = 515
KNIFE_PUSH = 516
KNIFE_URSUS = 519
KNIFE_GYPSY_JACKKNIFE = 520
KNIFE_STILETTO = 522
KNIFE_WIDOWMAKER = 523
@@ -18,11 +18,13 @@
# molotov_projectile:
# can also be incgrenade
# Use CMolotovProjectile.m_bIsIncGrenade to determine which
breachcharge_projectile = "breachcharge"
decoy_projectile = "decoy"
flashbang_projectile = "flashbang"
hegrenade_projectile = "hegrenade"
molotov_projectile = "molotov"
smokegrenade_projectile = "smokegrenade"
snowball_projectile = "snowball"
tagrenade_projectile = "tagrenade"


@@ -83,7 +85,7 @@
maxammo = 90
ammoprop = 2
clip = 30
cost = 3300
cost = 3150
item_definition_index = 8
tags = "all,primary,rifle"

@@ -129,7 +131,7 @@
maxammo = 90
ammoprop = 3
clip = 30
cost = 3000
cost = 2750
item_definition_index = 39
tags = "all,primary,rifle"

@@ -240,7 +242,7 @@
maxammo = 300
ammoprop = 5
clip = 150
cost = 5700
cost = 1700
item_definition_index = 28
tags = "all,primary,machinegun"

@@ -316,7 +318,7 @@
maxammo = 8
ammoprop = 1
clip = 8
cost = 850
cost = 600
item_definition_index = 64
parent_class = "weapon_deagle"
tags = "all,secondary,pistol"
@@ -343,6 +345,23 @@
# =========================================================================
# MELEE WEAPONS
# =========================================================================
[[axe]]
slot = 2
item_definition_index = 75
parent_class = "weapon_melee"
tags = "all,melee"

[[fists]]
slot = 2
item_definition_index = 69
tags = "all,melee"

[[hammer]]
slot = 2
item_definition_index = 76
parent_class = "weapon_melee"
tags = "all,melee"

[[knife]]
slot = 2
item_definition_index = 42
@@ -372,12 +391,23 @@
parent_class = "weapon_knife"
tags = "all,knife,melee,earned"

[[knife_ghost]]
slot = 2
item_definition_index = 80
tags = "all,knife,melee"

[[knife_gut]]
slot = 2
item_definition_index = 506
parent_class = "weapon_knife"
tags = "all,knife,melee,earned"

[[knife_gypsy_jackknife]]
slot = 2
item_definition_index = 520
parent_class = "weapon_knife"
tags = "all,knife,melee,earned"

[[knife_karambit]]
slot = 2
item_definition_index = 507
@@ -396,6 +426,12 @@
parent_class = "weapon_knife"
tags = "all,knife,melee,earned"

[[knife_stiletto]]
slot = 2
item_definition_index = 522
parent_class = "weapon_knife"
tags = "all,knife,melee,earned"

[[knife_survival_bowie]]
slot = 2
item_definition_index = 514
@@ -414,19 +450,42 @@
parent_class = "weapon_knife"
tags = "all,knife,melee,earned"

[[knife_ursus]]
slot = 2
item_definition_index = 519
parent_class = "weapon_knife"
tags = "all,knife,melee,earned"

[[knife_widowmaker]]
slot = 2
item_definition_index = 523
parent_class = "weapon_knife"
tags = "all,knife,melee,earned"

[[knifegg]]
slot = 2
tags = "all,knife,melee"

[[melee]]
slot = 2
tags = "all,melee"

[[spanner]]
slot = 2
item_definition_index = 78
parent_class = "weapon_melee"
tags = "all,melee"

[[taser]]
slot = 2
maxammo = 1
ammoprop = 19
clip = 1
cost = 400
cost = 200
item_definition_index = 31
tags = "all,melee"


# =========================================================================
# PROJECTILE WEAPONS
# =========================================================================
@@ -438,6 +497,22 @@
item_definition_index = 47
tags = "all,grenade"

[[diversion]]
slot = 3
maxammo = "ammo_grenade_limit_default"
ammoprop = 18
item_definition_index = 82
parent_class = "weapon_decoy"
tags = "all,grenade"

[[firebomb]]
slot = 3
maxammo = "ammo_grenade_limit_default"
ammoprop = 17
item_definition_index = 81
parent_class = "weapon_molotov"
tags = "all,grenade,incendiary"

[[flashbang]]
slot = 3
maxammo = "ammo_grenade_limit_flashbang"
@@ -446,6 +521,14 @@
item_definition_index = 43
tags = "all,grenade"

[[frag_grenade]]
slot = 3
maxammo = "ammo_grenade_limit_default"
ammoprop = 14
item_definition_index = 83
parent_class = "weapon_hegrenade"
tags = "all,grenade,explosive"

[[hegrenade]]
slot = 3
maxammo = "ammo_grenade_limit_default"
@@ -478,22 +561,43 @@
item_definition_index = 45
tags = "all,grenade"

[[snowball]]
slot = 3
maxammo = "ammo_grenade_limit_snowballs"
ammoprop = 24
item_definition_index = 84
tags = "all,grenade"

[[tagrenade]]
slot = 3
maxammo = "ammo_grenade_limit_default"
ammoprop = 22
tags = "all,grenade,tool,coop"


# =========================================================================
# TOOLS
# =========================================================================
[[breachcharge]]
slot = 4
maxammo = "ammo_grenade_limit_breachcharge"
ammoprop = 23
item_definition_index = 70
tags = "all,grenade,tool,explosive"

[[c4]]
slot = 4
item_definition_index = 49
tags = "all,objective"

[[healthshot]]
slot = 4
slot = 11
item_definition_index = 57
maxammo = "ammo_item_limit_healthshot"
ammoprop = 21
tags = "all,tool,coop"

[[tablet]]
slot = 12
item_definition_index = 72
tags = "all,tool"

0 comments on commit 434ef35

Please sign in to comment.