cs:go weapon list of all the weapon names in the game?

General discussion for off-topic subjects.
Tuck
Global Moderator
Posts: 205
Joined: Sat Jul 14, 2012 9:35 pm
Location: Copenhagen

cs:go weapon list of all the weapon names in the game?

Postby Tuck » Mon Aug 13, 2012 9:30 am

Does anyone know where to get a complete list of the correct names etc ?
-Tuck
User avatar
Monday
Administrator
Posts: 98
Joined: Thu Jul 12, 2012 4:15 am

Postby Monday » Mon Aug 13, 2012 10:03 am

  • weapon_knife
  • weapon_knifegg
  • weapon_incgrenade
  • weapon_c4
  • weapon_p228
  • weapon_glock
  • weapon_scout
  • weapon_xm1014
  • weapon_mac10
  • weapon_aug
  • weapon_elite
  • weapon_fiveseven
  • weapon_ump45
  • weapon_sg550
  • weapon_galil
  • weapon_galilar
  • weapon_famas
  • weapon_usp
  • weapon_awp
  • weapon_mp5navy
  • weapon_m249
  • weapon_m3
  • weapon_m4a1
  • weapon_tmp
  • weapon_g3sg1
  • weapon_deagle
  • weapon_sg552
  • weapon_ak47
  • weapon_p90
  • weapon_bizon
  • weapon_mag7
  • weapon_negev
  • weapon_sawedoff
  • weapon_tec9
  • weapon_taser
  • weapon_hkp2000
  • weapon_mp7
  • weapon_mp9
  • weapon_nova
  • weapon_p250
  • weapon_scar17
  • weapon_scar20
  • weapon_sg556
  • weapon_ssg08
  • weapon_flashbang
  • weapon_smokegrenade
  • weapon_hegrenade
  • weapon_molotov
  • weapon_decoy

Someone please correct me if i am wrong.
Tuck
Global Moderator
Posts: 205
Joined: Sat Jul 14, 2012 9:35 pm
Location: Copenhagen

Postby Tuck » Mon Aug 13, 2012 11:44 am

http://csgoreplays.com/csgo-weapons

i found this but idk if the weapon string achieved from code is the same as the names >_>
-Tuck
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Mon Aug 13, 2012 2:14 pm

For future notice, the way to get a list of all entity types that you can have in a Source-engine game, type "dumpentityfactories" into the console and it will print them out. Not all of the entities are actually available, though, it would require testing to verify an entity can be used from that list. For instance, while weapon_mp5navy might be listed as a weapon, it doesn't actually exist in the game. I think it is just a remnant left over from CS:S. There are a couple other weapons, as well, that do not actually exist, but I cannot remember which ones off the top of my head.

Monday, you are missing weapon_knife, weapon_knifegg, weapon_c4, and weapon_incgrenade.

Satoon
User avatar
Monday
Administrator
Posts: 98
Joined: Thu Jul 12, 2012 4:15 am

Postby Monday » Mon Aug 13, 2012 3:13 pm

thanks, i updated my list
Tuck
Global Moderator
Posts: 205
Joined: Sat Jul 14, 2012 9:35 pm
Location: Copenhagen

Postby Tuck » Wed Aug 15, 2012 9:03 am

I did a quick check up in player_hurt and player_death

weapon names are not with "weapon_" first anymore apperently
-Tuck
Tuck
Global Moderator
Posts: 205
Joined: Sat Jul 14, 2012 9:35 pm
Location: Copenhagen

Postby Tuck » Wed Aug 15, 2012 9:31 am

but for some reason the IPlayerInfo returns weapons with weapon_ first !?
-Tuck
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Wed Aug 15, 2012 10:56 am

That isn't an issue and has nothing to do with Source Python. You might have noticed this behavior when using item_pickup with EventScripts. Some things contain the complete class name and other things only the partial class name.
Tuck
Global Moderator
Posts: 205
Joined: Sat Jul 14, 2012 9:35 pm
Location: Copenhagen

Postby Tuck » Wed Aug 15, 2012 11:23 am

Pistols
  • Glock-18 == glock
  • P250 == p250
  • Five-SeveN == fiveseven
  • Desert Eagle == deagle
  • Dual Berettas == elite
  • P2000 == hkp2000
  • Tec-9 == tec9

Heavy
  • Nova == nova
  • XM1014 == xm1014
  • Sawed-Off == sawedoff
  • M249 == m249
  • Negev == negev
  • Mag-7 == mag7

SMGs
  • MP9 == mp9
  • MP7 == mp7
  • Ump-45 == ump45
  • P90 == p90
  • PP-Bizon == bizon
  • Mac-10 == mac10

Rifles
  • Galil AR == galilar
  • AK-47 == ak47
  • SSG 08 (Sniper Rifle) == ssg08
  • SG 553 == sg556 (I don't know if the csgo dev team made a typo but i double checked)
  • AWP (Sniper Rifle) == awp
  • G3SG1 (Sniper Rifle) == g3sg1
  • Famas == famas
  • M4A4 == m4a1 (I don't know if the csgo dev team made a typo but i double checked)
  • AUG == aug
  • Scar-20 (Sniper Rifle) == scar20

Misc
  • Knife == knife
  • Zeus x27 == taser
  • Molotov Cocktail == inferno (was only able to log this weapon name)
  • Incendiary Grenade == inferno (was only able to log this weapon name)
  • High Explosive Grenade == hegrenade

If anyone knows how to damage with these items bellow, please let me know how :)
weapon_flashbang
weapon_smokegrenade
weapon_molotov
weapon_decoy
weapon_knifegg
weapon_incgrenade
weapon_c4
-Tuck
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Wed Aug 15, 2012 2:31 pm

Weapon names never did start with weapon_ in player_hurt or player_death (or item_pickup, as Ayuto mentioned). Smoke grenade projectiles (cannot remember if the new weapons do this or not, but flashbang doesn't, and hegrenades projectiles cannot "hurt" players) shows as smokegrenade_projectile in player_death and/or player_hurt (cannot remember if both or just one).

Satoon
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Wed Aug 15, 2012 3:36 pm

Having just tested to verify, weapon_knifegg shows as knifegg in both events. That weapon is the knife you get on the last level in Arsenal: ArmsRace.

I do not believe weapon_c4 can ever cause player_hurt or player_death.

The flashbang, smokegrenade and decoy cannot cause damage either. They can, however, cause damage when they are projectiles. The following are the projectiles:
  • decoy_projectile
  • flashbang_projectile
  • hegrenade_projectile (does not cause any damage, so player_hurt/player_death will not fire)
  • molotov_projectile (not sure if it causes damage, will have to test further)
  • smokegrenade_projectile
Unfortunately, there is not incgrenade_projectile, but there will be other ways to find if the molotov_projectile was actually an incgrenade. I will need to retest the projectiles once we are further along in development to verify.

weapon_molotov and weapon_incgrenade both show as "inferno" in player_hurt and player_death.

Satoon
Tuck
Global Moderator
Posts: 205
Joined: Sat Jul 14, 2012 9:35 pm
Location: Copenhagen

Postby Tuck » Wed Aug 15, 2012 3:45 pm

how did you trigger weapon_knifegg ? does the last 2 chars "gg" mean gungame ? or :/
-Tuck
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Wed Aug 15, 2012 3:55 pm

I updated my previous post, probably after you already read it. Yes, knifegg is the golden knife that you get on the last level of Arsenal: ArmsRace (GunGame DeathMatch).

Satoon

Return to “Whatever”

Who is online

Users browsing this forum: No registered users and 16 guests