How to place weapons in custom maps

weapon_ entities no longer work in CSGO, so here's another method to spawn them

First, download this template vmf:

http://www.mediafire.com/?2pbdpi4dlugc6ab (the materials are only necessary if you want to use the health pickups)

If you're making a map that allows player respawning, you need the game_weapon_managers for glocks, hkp2000s, and knives (green box on the top pic). They prevent players from spamming those weapons by killing themselves over and over again by putting a limit of 3 of each dropped weapon.

Infinite weapon spawns

If you want infinitely respawning weapons in your map, you can search for your weapon in Map -> Entity Report... and check By key/value, then put the weapon's name in the second field and leave the first field blank. Select the game_player_equip with (your weapon)_equip1 as its name.

Searching for your weapon

If you search negev, m4a1, or ak47 you will find game_player_equips with _once1, _ct1, or _t1 in their names. Ignore those for now.

Once you find the game_player_equip for your weapon, click on the trigger surrounding it and it should select all the entities in a group. Also select the game_weapon_manager in front of the group. This is necessary to prevent players from spamming weapons and lagging the server.

Weapon selection

Now copy your current selection, open the vmf to your map, and paste it where ever you want. If you want to make a duplicate of the weapon you just placed in your map, unselect the game_weapon_manager since you only need one in the map and use paste special (ctrl+shift+v). The editor will make a duplicate with unique names.

One time pickup weapons

Since there is only a single one time pickup weapon included in the templates vmf, you will need to modify it to use your desired weapon. Select everything in the blue box (in the top pic) and copy paste it into your map. Replace anything that says negev on each entity with the name of the weapon that you want, including the outputs on the trigger_once. Also, change the model for the prop_dynamic_override.

Team weapons

(yellow box on the top pic) Same as with the one time pickup weapons, just rename anything that says m4a1 or ak47 with your weapon, change the trigger's outputs, and change the prop's model. You only need one of each of the filters in your map.

Health Pickups (bonus/optional)

(purple box on the top pic) You will only need one copy of the point_clientcommand in your map. Copy which ever health pickup you want and put it in your map (Blue = 20 HP, Green = 50 HP, Red = 100 HP, 10 sec respawn time). You can make duplicates by using paste special.

Update: In order to edit the weapon on the game_player_equip, you have to disable smart edit (the button on the top right next to help).

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Tutorial.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Tutorial a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Tutorial.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • Panzerhandschuh's Levels
    • P2: Drudge
      Points: 1,850
    • E1: Helper
      EF: 5
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 9 months ago

    Lol I guess changing the flags lets you spam weapons now. You can fix the weapon spam by checking the "Only strip same weapon type" flag on the gameplayerequip. I'll update the vmf again in a bit.

    Edit: Updated

    wut
  • charli's Levels
    • P2: Drudge
      Points: 2,127
    • C1: Member
    • A4: Graduate
      Account Age: 3 years
    Posted 9 months ago

    I dont like use trigger to spawn weapon this will lagg the map see the fps. It is better to have a weapon on player pick up temp spawn. fps

    Maps Prefabs Particle
  • Panzerhandschuh's Levels
    • P2: Drudge
      Points: 1,850
    • E1: Helper
      EF: 5
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 9 months ago

    Posted by denied13

    Pros:

    • Great - I had been searching for how to spawn weapons in a map for a while and couldn't find anything.

    Improvements:

    • Not having to change out the weapons for the single spawning ones

    You can fix that by unchecking the only strip same weapon type flag on the game_player_equip. I'll upload an updated vmf with all the new game_player_equips soon.

    Edit: Updated

    wut
  • denied13's Levels
    • P1: Beggar
      Points: 2
    • C1: Member
    • A2: Tenderfoot
      Account Age: 9 months
    Posted 9 months ago

    Pros:

    • Great - I had been searching for how to spawn weapons in a map for a while and couldn't find anything.

    Improvements:

    • Not having to change out the weapons for the single spawning ones
    Bananite

Credits

Submitter
Panzerhandschuh's Levels
  • P2: Drudge
    Points: 1,850
  • E1: Helper
    EF: 5
  • C1: Member
  • A5: Veteran
    Account Age: 5 years
Panzerhandschuh (Creator/Co-creator)
Key Authors
Panzer
Creator

Rating

10.0/10
Based off 2 rating(s)

Additional Info

Genre
Mapping
Difficulty Level
Beginner

Stats

Post Count
4
ViewCount
2,355
Date Added
11 months ago
Date Modified
9 months ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share