If you are creating a training map focused on one weapon type such as ak-47, awp, deagle or revolver then you want to make sure the player spawns only with that weapon equipped.
You need to strip all weapons from player's inventory that are given to them by default and assign a weapon you want for them to spawn with.
For this to happen, you need to insert 1 game_player_equip entity into your map. Then you will be able to assign any weapon to a player upon spawn, automatically.
Enable Entity Tool (Shift+E):
Under Objects, scroll down to game_player_equip and select it:
Left click in perspective viewport to insert game_player_equip entity anywhere you want within the map:
Note: By inserting game_player_equip into your map, you will strip the player from any weapons on spawn.
Edit game_player_equip entity by selecting it and going into Object Properties (Alt+Enter) or double clicking on the entity:
Disable "SmartEdit":
Click on Add:
New box will pop up to enter a New Keyvalue. This is where you define which weapon you want the player to spawn with.
Here is what you need to input into each box:
Under Key property, input the name of the weapon you want to have the player spawn with.
Value property has to be set to 1.
Example of weapon_ak47:
Enter the name of the weapon you want the player to have. Here are all the weapon names you can use. These names have to be entered exactly how you see them here.
You can also enable Entity Tool (Shift+E), use Objects drop down menu and scroll down to weapon_ to see proper names to enter.
Note: this is just to see which names you can use to enter into game_player_equip:
If you want to remove any Keyvalue entries, select one and click on Delete:
Make sure you have "SmartEdit" disabled to delete.
Do not include buy zones if you do not want the player to purchase any weapons at the start.
Last, run a compile and test your map. You should now spawn with assigned weapons for both CT and T teams.
Read Next: CS:GO SDK Terminal Ballistics or How to Test if You Can Shoot Through Walls (Bullet Penetration)
Home Terms of Use/Trademarks/Disclaimers Privacy Policy Donate About Contact
All content on this website is copyrighted ©2008-2024 World of Level Design LLC. All rights reserved.
Duplication and distribution is illegal and strictly prohibited.
World of Level Design LLC is an independent company. World of Level Design website, its tutorials and products are not endorsed, sponsored or approved by any mentioned companies on this website in any way. All content is based on my own personal experimentation, experience and opinion. World of Level Design™ and 11 Day Level Design™ are trademarks of AlexG.
Template powered by w3.css