Category:Counter-Strike: Global Offensive Weapons: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added CS:GO Category. Tweaked tables a bit.)
(Added section Giving Weapons for now. Maybe there is a better place to put such information.)
Line 1: Line 1:
This listing is for weapons featured in {{game name|name=Counter-Strike: Global Offensive}}.
This listing is for weapons featured in {{game name|name=Counter-Strike: Global Offensive}}.
=== Giving Weapons ===
To give yourself a weapon, you can use the [[cheat]] command <code>[[give]] <entityname></code>, which should spawn a specified weapon inside the executing [[player]], for example <code>give weapon_awp</code>. Knives and Danger Zone melees might instantly be removed by the game when they would spawn; To overcome this, one can use the command sequence <code>give <entityname>; ent_fire <entityname> addoutput "classname weapon_knifegg"</code> (in one line!) so that the entity "becomes" an entity that is not removed by the game in the same tick. Note that some weapons have a different classname after being given, e.g. <code>give weapon_axe; ent_fire weapon_melee addoutput "classname weapon_knifegg"</code>.
Map driven item giving can be done with [[game_player_equip]]. For [[VScript]], this entity can be [[CS:GO VScript Examples#Equip players|created, used and removed]].


=== Buy Menu ===
=== Buy Menu ===

Revision as of 09:11, 21 March 2022

This listing is for weapons featured in Template:Game name.

Giving Weapons

To give yourself a weapon, you can use the cheat command give <entityname>, which should spawn a specified weapon inside the executing player, for example give weapon_awp. Knives and Danger Zone melees might instantly be removed by the game when they would spawn; To overcome this, one can use the command sequence give <entityname>; ent_fire <entityname> addoutput "classname weapon_knifegg" (in one line!) so that the entity "becomes" an entity that is not removed by the game in the same tick. Note that some weapons have a different classname after being given, e.g. give weapon_axe; ent_fire weapon_melee addoutput "classname weapon_knifegg".

Map driven item giving can be done with game_player_equip. For VScript, this entity can be created, used and removed.

Buy Menu

Pistol SMG Heavy Rifle Equipment Grenade

Other

Knives Miscellaneous CS:GO Danger Zone Danger Zone CS:GO Danger Zone Melee CS:GO Co-op Strike Co-op Strike

Pages in category "Counter-Strike: Global Offensive Weapons"

The following 9 pages are in this category, out of 9 total.