This article's documentation is for Source 2. Click here for more information.

info_hlvr_equip_player

From Valve Developer Community
Jump to navigation Jump to search

info_hlvr_equip_player is a point entity available in Half-Life: Alyx Half-Life: Alyx. It is used to equip the HLVR Player with weapons or items.

Keyvalues

equip_on_mapstart ([todo internal name (i)]) <boolean>
Equip on map start (Default: 1)
energygun ([todo internal name (i)]) <boolean>
Give Energygun
shotgun ([todo internal name (i)]) <boolean>
Give Shotgun
rapidfire ([todo internal name (i)]) <boolean>
Give Rapidfire Pistol
multitool ([todo internal name (i)]) <boolean>
Give Multi-tool
flashlight ([todo internal name (i)]) <boolean>
Give Flashlight
flashlight_enabled ([todo internal name (i)]) <boolean>
Flashlight is enabled
grabbitygloves ([todo internal name (i)]) <boolean>
Give Grabbity Gloves
itemholder ([todo internal name (i)]) <boolean>
Give Item Holder
set_ammo ([todo internal name (i)]) <integer>
Set Pistol Ammo (-1 to leave it)
set_ammo_rapidfire ([todo internal name (i)]) <integer>
Set Rapid Fire Ammo (-1 to leave it). Needs to be multiple of 90
set_ammo_shotgun ([todo internal name (i)]) <integer>
Set Shotgun Ammo (-1 to leave it)
set_resin ([todo internal name (i)]) <integer>
Set Resin (-1 to leave it)
start_weapons_empty ([todo internal name (i)]) <boolean>
Start Weapons Empty
inventory_enabled ([todo internal name (i)]) <boolean>
Enable inventory (Weapon Switch)
backpack_enabled ([todo internal name (i)]) <boolean>
Enable Backpack
allow_removal ([todo internal name (i)]) <boolean>
Allow Removal. If set, any equipment the player has that isn't flagged by this info_hlvr_equip_player will be removed from the player.
Pistol Upgrades:
pistol_upgrade_lasersight ([todo internal name (i)]) <boolean>
Pistol Upgrade Laser Sight
pistol_upgrade_reflexsight ([todo internal name (i)]) <boolean>
Pistol Upgrade Reflex Sight
pistol_upgrade_bullethopper ([todo internal name (i)]) <boolean>
Pistol Upgrade Bullet Hopper
pistol_upgrade_burstfire ([todo internal name (i)]) <boolean>
Pistol Upgrade Burst Fire
Rapidfire Upgrades:
rapidfire_upgrade_reflexsight ([todo internal name (i)])
Rapidfire Upgrade Reflex Sight
rapidfire_upgrade_lasersight ([todo internal name (i)])
Rapidfire Upgrade Laser Sight
rapidfire_upgrade_extended_magazine ([todo internal name (i)])
Rapidfire Upgrade Extended Magazine
Shotgun Upgrades:
shotgun_upgrade_autoloader ([todo internal name (i)])
Shotgun upgrade Autoloader
shotgun_upgrade_grenade ([todo internal name (i)])
Shotgun upgrade Grenade Launcher
shotgun_upgrade_lasersight ([todo internal name (i)])
Shotgun upgrade Laser Sight
shotgun_upgrade_quickfire ([todo internal name (i)])
Shotgun upgrade Quick Fire
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.

Inputs

EquipNow
Equip the HLVR player with selected items.
EnableInventory
Enable the HLVR player's inventory (Weapon Switch).
EnableBackpack
Enable the HLVR player's backpack.
VScript:
RunScriptFile <string>
Load and execute a script file.
RunScriptCode <string>
Execute a fragment of script code.
CallScriptFunction <string>
Call a script function.
CallPrivateScriptFunction <string>
Calls a script function from this entity's private script scope.
CallGlobalScriptFunction <string>
Calls a script function in the global script scope.


Outputs