This article's documentation is for the "GoldSrc" engine. Click here for more information.

game_player_equip

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Class hierarchy
CGamePlayerEquip
CRulePointEntity
CRuleEntity
CBaseEntity
maprules.cpp

game_player_equip is a point entity available in all GoldSrc GoldSrc games. This entity allows you to provide the player with specific items when it is triggered. In deathmatch games, this entity can also be used to give items to players upon spawning.

Key Values

Targetname:

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Tip.pngTip:Might be useful with Targetname#Player Events
Master (master) <targetname>
Name of a master entity.
<any classname> <integer>
The key is the item the player should be equipped with and the value is the amount. (smart-edit needs to be turned off for this)
Usable classnames examples
  • weapon_mp5
  • weapon_crossbow
  • weapon_crowbar
  • weapon_gauss
  • weapon_hornetgun
  • weapon_9mmhandgun
  • weapon_rpg
  • weapon_satchel
  • weapon_shotgun
  • weapon_egon
  • weapon_python
  • weapon_handgrenade
  • weapon_tripmine
  • weapon_snark
  • weapon_357
  • ammo_357
  • ammo_ARgrenades
  • ammo_buckshot
  • ammo_glockclip
  • ammo_Egonclip
  • ammo_Gaussclip
  • ammo_9mmAR
  • ammo_RPGclip
  • ammo_9mmclip
  • ammo_9mmbox
  • ammo_crossbow
  • ammo_mp5grenades
  • item_longjump
  • item_healthkit
  • item_suit
  • item_battery

Flags

Use Only : [1]

If enabled, only triggering the game_player_equip will cause it to dispense items. This will prevent items being given upon spawning in a deathmatch game. Only the player who caused the trigger will receive items.