Game ui: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
Line 6: Line 6:
==Keyvalues==
==Keyvalues==
*{{kv targetname}}
*{{kv targetname}}
*'''FieldOfView''' <float>
*'''FieldOfView'''
:The amount of tolerance in the view checking when determining whether the player's input is still under control. 1.0 = straight ahead, 0.0 = +/- 90 degrees, -1.0 = all directions. If the player isn't within the tolerance, the player regains control.
: <float> The amount of tolerance in the view checking when determining whether the player's input is still under control. 1.0 = straight ahead, 0.0 = +/- 90 degrees, -1.0 = all directions. If the player isn't within the tolerance, the player regains control.


==Flags==
==Flags==

Revision as of 20:41, 3 October 2005

Template:Wrongtitle

Entity Description

An entity used to override player input when the player is looking at it.

Keyvalues

<float> The amount of tolerance in the view checking when determining whether the player's input is still under control. 1.0 = straight ahead, 0.0 = +/- 90 degrees, -1.0 = all directions. If the player isn't within the tolerance, the player regains control.

Flags

  • 32 : Freeze Player
  • 64 : Hide Weapon
  • 128 : +Use Deactivates
  • 256 : Jump Deactivates

Inputs

Return Player Control.
  • Activate
Take Player Control.

Outputs=

Fired whenever this entity starts controlling the player's input.
  • PlayerOff
Fired whenever this entity stops controlling the player's input.
  • PressedMoveLeft
Fired whenever the player presses the moveleft key.
  • PressedMoveRight
Fired whenever the player presses the moveright key.
  • PressedForward
Fired whenever the player presses the forward key.
  • PressedBack
Fired whenever the player presses the backward key.
  • PressedAttack
Fired whenever the player presses the attack key.
  • PressedAttack2
Fired whenever the player presses the secondary attack key.
  • XAxis <string>
An output that fires whenever the X axis of the player's input changes. i.e. -1 when the player has moveleft key down, 1 when the player has moveright key down, and 0 if neither.
  • YAxis <string>
An output that fires whenever the Y axis of the player's input changes. i.e. -1 when the player has backward key down, 1 when the player has forward key down, and 0 if neither.
  • AttackAxis <string>
An output that fires whenever the state of the player's attack key changes. i.e. 1 when the player has the attack key down, 0 otherwise.
  • Attack2Axis <string>
An output that fires whenever the state of the player's secondary attack key changes. i.e. 1 when the player has the secondary attack key down, 0 otherwise.