Info player equip

From Valve Developer Community
Revision as of 20:15, 3 November 2011 by Krazy Kasrkin (talk | contribs)
Jump to: navigation, search


<Synergy> info_player_equip is a point entity available in Synergy. It manages the players' equipment.

Entity description

Entity that will give players any equipment specified by it's key values (in the form of 'entity_classname' 'number_of_items'). This entity replaces the functionality of the game_player_equip.

Tip.png Tip: Multiple info_player_equip entities can exist simultaneously to be used to toggle between different "sets" of equipment.

Keyvalues

StartDisabled <choices>
Start this entity Enabled or Disabled
  • 0 : Start Disabled.
  • 1 : Start Enabled.

Targetname:

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Entity Scripts (vscripts) <scriptlist> (in all games since Left 4 Dead 2)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function (thinkfunction) <string> (in all games since Left 4 Dead 2)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note.png Note: Try to avoid expensive operations in this function, as it may cause performance problems.

Equipment Options

Equipment

Item Recommend Values Memo
item_suit 0/1 H.E.V. Suit
item_armor 1-100 H.E.V. Suit's Powerarmor

Core Weapons

Weapon Value Memo
weapon_crowbar 0/1 Gives named weapon.
weapon_stunstick 0/1 Gives named weapon.
weapon_pistol 0/1 Gives named weapon.
weapon_357 0/1 Gives named weapon.
weapon_smg1 0/1 Gives named weapon.
weapon_ar2 0/1 Gives named weapon.
weapon_shotgun 0/1 Gives named weapon.
weapon_crossbow 0/1 Gives named weapon.
weapon_frag 0/1 Gives named weapon.
weapon_rpg 0/1 Gives named weapon.
weapon_slam 0/1 Gives named weapon.
weapon_physcannon 0/1 Gives named weapon.

Synergy Weapons

Weapon Recommended Values
weapon_deagle 0/1
weapon_mp5k 0/1
weapon_mg1 0/1

Ammo

Type Recommend Values
ammo_pistol 18x per clip
ammo_357 6x per clip
ammo_smg1 45x per clip
ammo_smg1_grenade 1-3
ammo_ar2 20x per clip
ammo_ar2altfire 1-3
ammo_buckshot 6x per clip
ammo_xbowbolt 1x per clip
ammo_grenade 1-4
ammo_rpg_round 1-3
ammo_slam 1-3
Note.png Note: Given weapons spawn with a full cilp and no reserve ammo. weapon_frag gives a single grenade, use ammo_grenade to give additional grenades.

Inputs

Enable
All players who respawn while this entity is Enabled will receive its equipment.
Disable
Plyaers will not receive its equipment on respawn.
EquipPlayer
Equip the !activator of this input with the items contained in this entity, even if this entity is disabled. Activator must be a player.
EquipAllPlayers
Equip every living player with the items contained in this entity, even if this entity is disabled.

Outputs

Targetname:

OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnKilled  (only in Left 4 Dead Left 4 Dead 2)
This output fires when the entity is killed and removed from the game.

See also