setstats
View Cart
Category Tutorial TopicsLevel DesignUnreal Engine 4UDKCryEngine 3 SDKGame Modeling: MayaCounter-Strike: Global OffensiveLeft4Dead 1 and 2Time Management and ProductivityGame Environment Art+DesignGetting StartedBrowse Full Tutorial List

CS:GO SDK How to Spawn Any Weapon on the Ground (for fy/aim maps)

Category: Source: CS:GO SDK
May 05, 2016
Full Text Tutorial and Notes:

If you are creating fy (fight yard) or aim map, you will need to spawn weapons on the ground for players to pick up.

It is very simple to do in your own map.

Step 1:

Switch to Entity Tool (Shift+E):

Under Objects, use drop down menu and select any of the "weapon_" entities with a name of the weapon you want to use:

Example: weapon_ak47 entity will insert AK-47 gun on the ground.

Step 2:

Left-click on the ground in perspective viewport to place selected weapon entity:

You can place weapon entity as-is without rotating or aligning to the ground, but you may see the weapon move and fall on the ground at spawn due to physics.

You might want to rotate and align the weapon entity to the ground:

Full weapon entities list you can use:

  • weapon_ak47
  • weapon_aug
  • weapon_awp
  • weapon_bizon
  • weapon_c4
  • weapon_cz75a
  • weapon_deagle
  • weapon_decoy
  • weapon_elite
  • weapon_famas
  • weapon_fiveseven
  • weapon_flashbang
  • weapon_g3sg1
  • weapon_galilar
  • weapon_glock
  • weapon_healthshot
  • weapon_hegrenade
  • weapon_hkp2000
  • weapon_incgrenade
  • weapon_knife
  • weapon_m249
  • weapon_m4a1
  • weapon_m4a1_silencer
  • weapon_mac10
  • weapon_mag7
  • weapon_molotov
  • weapon_mp7
  • weapon_mp9
  • weapon_negev
  • weapon_nova
  • weapon_p250
  • weapon_p90
  • weapon_revolver
  • weapon_sawedoff
  • weapon_scar20
  • weapon_sg556
  • weapon_smokegrenade
  • weapon_tagrenade
  • weapon_taser
  • weapon_tec9
  • weapon_ump45
  • weapon_usp_silencer
  • weapon_xm1014

Step 3:

Do not include buy zones if you do not want the player to purchase any weapons at the start.

Step 4:

Compile and test your map. You should now have weapons spawned on the ground for players to pick up.

Read Next: CS:GO SDK Automatically Assign Any Weapon to a Player On Spawn

Updated & Revised - Preproduction Blueprint: How to Plan Your Game Environments and Level Designs

© 2008-2016. All articles on World of Level Design™ are copyrighted.
Not to be reproduced without prior written consent.