Game player equip (GoldSrc): Difference between revisions
Jump to navigation
Jump to search

No edit summary |
SirYodaJedi (talk | contribs) (→Flags) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
{{this is a|point entity|name=game_player_equip|engine=GoldSrc}} 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. | {{this is a|point entity|name=game_player_equip|engine=GoldSrc}} 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. | ||
== | == Keyvalues == | ||
{{Hl1_kv_targetname}} | {{Hl1_kv_targetname}} | ||
:{{tip|Might be useful with [[Targetname#Player Events]]}} | :{{tip|Might be useful with [[Targetname (GoldSrc)#Player Events]]}} | ||
{{hl1 kv master}} | {{hl1 kv master}} | ||
{{kv|<any classname>|intn=0|int|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) | {{kv|<any classname>|intn=0|int|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) | ||
{{expand|title=Usable classnames examples | :{{expand|title=Usable classnames examples| | ||
* weapon_mp5 | * weapon_mp5 | ||
* weapon_crossbow | * weapon_crossbow | ||
Line 45: | Line 45: | ||
== Flags == | == Flags == | ||
{{fl|1|Use Only|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.}} | {{fl|1|Use Only|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.}} | ||
{{hl1 Appearflags}} | |||
[[Category:Entities]] | [[Category:Entities]] |
Latest revision as of 09:21, 8 May 2025


![]() |
---|
CGamePlayerEquip |
![]() |
game_player_equip
is a point entity available in all 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.
Keyvalues
- Name (targetname) <string>
- The targetname that other entities refer to this entity by.
Tip:Might be useful with Targetname (GoldSrc)#Player Events
- Master (master) <targetname>
- Name of a master entity. If the master hasn't been activated, this entity will not activate.
- <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.
- Not In Deathmatch : [2048]
- Prevent this entity from attempting to spawn when deathmatch (multiplayer) is enabled.
Tip:This is intercepted before the entity spawns (hardcoded in the engine), and as such prevents it from ever contributing to the edict limit. As such, it may be desirable to set this on entities that delete themselves in multiplayer anyway, such as monsters and info_null, to prevent them from contributing towards map spawn edict limit crashes on maps with lots of entities.