game_player_equip

A game_player_equip gives weapons, ammo and items to players, either to every player when they spawn or to the
player who triggers it.
The editor offers a count key for each weapon, and you add ammo and items as keys of your own: the class name, such as
ammo_rpgclip, and how many to give.
Attributes
targetnameTriggering the entity equips the player who started the chain of triggers. See Common keys.
masterNames a master, and while the master is off, the entity gives nothing, at spawn or when you trigger it.
weapon_benSets how many of the Benelli the entity gives, and an empty key gives none.
weapon_canonSets how many of the Canon of Terror the entity gives, and an empty key gives none.
weapon_chaingunSets how many of the Vindico Avenger Minigun the entity gives, and an empty key gives none.
weapon_chainsawSets how many of the Chainsaw Sword the entity gives, and an empty key gives none.
weapon_fa18Sets how many of the Croon FA 18 the entity gives, and an empty key gives none.
weapon_federalSets how many of the Vindico Federal the entity gives, and an empty key gives none.
weapon_glauncherSets how many of the Vindico grenade launcher the entity gives, and an empty key gives none.
weapon_handgrenadeSets how many hand grenades the entity gives, and an empty key gives none.
weapon_k444Sets how many of the .444k Bear Killer the entity gives, and an empty key gives none.
weapon_medikitSets how many of the Medikit the entity gives, and an empty key gives none.
weapon_nm33Sets how many of the Croon NM 33 Sniper Rifle the entity gives, and an empty key gives none.
weapon_pm66Sets how many of the Croon PM 66 the entity gives, and an empty key gives none.
weapon_rc28Sets how many of the Croon RC 28 the entity gives, and an empty key gives none.
weapon_rpgSets how many of the Nuclear RPG the entity gives, and an empty key gives none.
weapon_satchelSets how many satchel charges the entity gives, and an empty key gives none.
weapon_snarkSets how many Pitbulls the entity gives, and an empty key gives none.
weapon_spaSets how many of the Saan Auto-Shotgun the entity gives, and an empty key gives none.
weapon_swSets how many of the Vindico Plasma Sniper Rifle the entity gives, and an empty key gives none.
weapon_swordSets how many of the Energy Sword the entity gives, and an empty key gives none.
weapon_tripmineSets how many tripmines the entity gives, and an empty key gives none.
weapon_warhammerSets how many of the Fusion warhammer the entity gives, and an empty key gives none.
weapon_wongSets how many Fists the entity gives, and an empty key gives none.
Flags
1Use OnlyThe entity only gives its items when you trigger it, to the player who triggered it. Without this flag, every player gets them each time they spawn, and triggering it still equips the player who triggered it
Notes
- Players always get their fists at spawn as well, because the entity only adds items
- A player who already has the fists, a blade or the medikit doesn't get a second one, so a count above 1 for these gives one
- A count of 0 or 1 gives one, and a count above 100 gives 100
- Only keys that name a
weapon_,ammo_oritem_class give anything, and the game ignores every other key - The entity loads every item it gives with the map, so an item that the map doesn't place, such as
item_battery, works too - A key that
trigger_changevalueortrigger_copyvalueadds once the map runs only gives its item if the map already loads that class, such as a weapon or an item the map places. Any other class is refused, and withdeveloper 1set in the console, the console says why
See also
player_weaponstrip- takes the weapons of a player awayLimitator- sets the ammo of the loadout weapons- game_player_equip on TWHL - the Half-Life entity
Changes since 1.38
- Players get their fists at every spawn on a map with this entity too. In SBO 1.38, in Co-op and Battle Royale, any
game_player_equipon the map, even one with Use Only set, took the fists away at spawn. Fists are every player's own weapon, and taking weapons away is the job ofplayer_weaponstrip - A count above 100 gives 100. In SBO 1.38, a very large count gave items until the server stopped responding
- Keys that aren't a
weapon_,ammo_oritem_class are ignored. In SBO 1.38, the game created any key as an entity on the player, and some keys crashed the server - A Team Master that is off also stops a trigger from equipping the player. In SBO 1.38, it only stopped the equipment at spawn
- An item that the map doesn't place, such as
item_battery, is given. In SBO 1.38, as in Half-Life, the first player to get it crashed the server