Logic playerproxy: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| No edit summary | m (typo & minor tidy) | ||
| Line 1: | Line 1: | ||
| {{wrongtitle|title=logic_playerproxy}} | {{wrongtitle|title=logic_playerproxy}} | ||
| ==Entity  | |||
| An entity that is used to relay inputs/ | == Entity description == | ||
| ==Keyvalues== | An entity that is used to relay inputs/outputs to the player and back to the world. | ||
| == Keyvalues == | |||
| * {{kv targetname}} | * {{kv targetname}} | ||
| ==Inputs== | |||
| == Inputs == | |||
| * {{i targetname}} | * {{i targetname}} | ||
| * '''SetFlashlightSlowDrain''' | * '''SetFlashlightSlowDrain''' | ||
| Line 16: | Line 19: | ||
| * '''RequestPlayerHealth''' | * '''RequestPlayerHealth''' | ||
| : Requests the current player's health from the proxy. This will fire the PlayerHealth output with the value. | : Requests the current player's health from the proxy. This will fire the PlayerHealth output with the value. | ||
| ==Outputs== | |||
| == Outputs == | |||
| * {{o targetname}} | * {{o targetname}} | ||
| * '''OnFlashlightOn <float>''' | * '''OnFlashlightOn <float>''' | ||
| Line 28: | Line 32: | ||
| * '''PlayerHasNoAmmo''' | * '''PlayerHasNoAmmo''' | ||
| : Fired by request if the player doesn't have any ammo. | : Fired by request if the player doesn't have any ammo. | ||
| [[Category:Half-Life 2: Episode One Entities]] | [[Category:Half-Life 2: Episode One Entities]] | ||
Revision as of 05:59, 14 February 2008
Entity description
An entity that is used to relay inputs/outputs to the player and back to the world.
Keyvalues
Inputs
- Template:I targetname
- SetFlashlightSlowDrain
- Puts the player's flashlight in slow-power-drain mode (for Episodic darkness)
- SetFlashlightNormalDrain
- Puts the player's flashlight to default power drain
- SetPlayerHealth <integer>
- Sets the player's health to this value.
- RequestAmmoState
- Request the ammo state of the player. It will fire PlayerHasAmmo or PlayerHasNoAmmo outputs.
- RequestPlayerHealth
- Requests the current player's health from the proxy. This will fire the PlayerHealth output with the value.
Outputs
- Template:O targetname
- OnFlashlightOn <float>
- Fired when the player turns on his flashlight. This output has the value of how much energy the player had when this happened [0..1].
- OnFlashlightOff <float>
- Fired when the player turns off his flashlight. This output has the value of how much energy the player had when this happened [0..1].
- PlayerHealth <integer>
- The player's current health value.
- PlayerHasAmmo
- Fired by request if the player has any ammo.
- PlayerHasNoAmmo
- Fired by request if the player doesn't have any ammo.