CGamePlayerEquip (CS)

From AlliedModders Wiki
Revision as of 18:29, 6 May 2009 by Arkshine (talk | contribs) (Added CGamePlayerEquip)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Basic Information

  • Classname: CGamePlayerEquip.
  • Inheriting Instance: game_player_equip.
  • Description: This entity allows you to equip a player with specific items when they join a game or at some time during gameplay.


Class Hierarchy


Entity Data

None.


Entity Attributes

  • Name (targetname) - Property used to identify entities.
  • Team Master (master) - The name of a game_team_master can go here so that you can control which team is equipped.


Notes

  • To actually specify what you want to be equipped, turn off SmartEdit mode and click Add. The item's name is the key, and the value is the number of items to be given to the player.

For example, a key of 'weapon_rpg' with a value of '3' will equip the player with 3 rockets. Use item_battery for armour and item_healthkit for health. Note that health and armour cannot exceed the normal maximum of 100 each.


HLSDK Reference


Related Links