Remove/give/place weapons.
by Mor7y (view all articles)

unrated
How to remove, give and place weapons in a CS map.
by Mor7y (view all articles)

unrated

Remove Weapons
Firstly, we will learn how to remove weapons from a player at round start.
Make a map, and place the entity player_weaponstrip, and don't change any properties.
Give Weapons
Now, we've learned to weaponstrip. Now, you will learn how to give every single player a specific weapon (Or multiple). Add an entity called game_player_equip. Don't give it any name (unless you want to trigger the equip). Choose for example Give Knife and choose Yes or No depending on if you want the players to start with a knife, or not. If you want to give other weapons, you can turn off Smart Edit, and add properties. Here is a list over properties available:
weapon_usp 1
weapon_glock18 1
weapon_deagle 1
weapon_p228 1
weapon_elite 1
weapon_fiveseven 1
weapon_m3 1
weapon_xm1014 1
weapon_mp5navy 1
weapon_tmp 1
weapon_p90 1
weapon_mac10 1
weapon_ump45 1
weapon_ak47 1
weapon_sg552 1
weapon_m4a1 1
weapon_aug 1
weapon_scout 1
weapon_awp 1
weapon_g3sg1 1
weapon_sg550 1
weapon_m249 1
item_kevlar 1
item_assaultsuit 1
weapon_flashbang 1
weapon_hegrenade 1
weapon_smokegrenade 1
item_thighpack 1
weapon_knife 1
(These are CS 1.5 values, but most of them should work for 1.6.)
To give them a weapon, you choose 1 at the property value. If you want to give them more ammo, you write a higher number at the value. You can also choose to give every player AWM, AK and Colt

Place Weapons
NOTICE: If you use this AND the give method, the map will probably halt after a couple of minutes on the server! I do not know why, but it has always been that way when I did this mistake.
Now on to placing a weapon on the ground! Find the entity armoury_entity, and put it exactly where you want the weapon to appear. Most likely in aim maps, you would put in in front of the player, or below the player.
Use the properties:
Item The weapon you want to give the player. Check the list above to choose something that's not in the list.
Count If you write 2, the entity will contain 2 pieces of the weapon you chose. If you pick the weapon up, it will still be one there, untill it's no more weapons left in that entity.
That's all for now, please do write comments/questions and such

Sorry that it's no pictures, but it's really not needed.