Game ui: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Outputs: update)
m (minoro)
Line 1: Line 1:
{{wrongtitle|title=game_ui}}
{{wrongtitle|title=game_ui}}


==Entity Description==
== Entity description ==
An entity used to override player input when the player is looking at it.
An entity used to override player input when the player is looking at it.


==Keyvalues==
== Keyvalues ==
*{{kv targetname}}
*{{kv targetname}}
*'''FieldOfView'''
*'''[[FOV|FieldOfView]]'''
: <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.
: <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 ==
*32 : Freeze Player
*32 : Freeze Player
*64 : Hide Weapon
*64 : Hide Weapon
Line 15: Line 15:
*256 : Jump Deactivates
*256 : Jump Deactivates


==Inputs==
== Inputs ==
*{{i targetname}}
*{{i targetname}}
*'''Deactivate'''  
*'''Deactivate'''  
Line 22: Line 22:
:Take Player Control.
:Take Player Control.


==Outputs==
== Outputs ==
*{{o targetname}}
*{{o targetname}}
*'''PlayerOn'''
*'''PlayerOn'''
Line 53: Line 53:
:Fired whenever the player unpresses the secondary attack key. {{plact}}
:Fired whenever the player unpresses the secondary attack key. {{plact}}
*'''XAxis''' <float>
*'''XAxis''' <float>
: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.
: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.
:{{plact}}
:{{plact}}
*'''YAxis''' <float>  
*'''YAxis''' <float>  
: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.
: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.
:{{plact}}
:{{plact}}
*'''AttackAxis''' <float>  
*'''AttackAxis''' <float>  
: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.
: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.
:{{plact}}
:{{plact}}
*'''Attack2Axis''' <float>  
*'''Attack2Axis''' <float>  
: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.
: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.
:{{plact}}
:{{plact}}
[[Category:Entities]]
[[Category:Entities]]

Revision as of 14:43, 22 November 2007

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.
Warning.pngWarning:Deactivating an inactivate game_ui crashes the game
  • Activate
Take Player Control.

Outputs

Fired whenever this entity starts controlling the player's input. Template:Plact
  • PlayerOff
Fired whenever this entity stops controlling the player's input. Template:Plact
  • PressedMoveLeft
Fired whenever the player presses the moveleft key. Template:Plact
Fired whenever the player unpresses the moveleft key. Template:Plact
  • PressedMoveRight
Fired whenever the player presses the moveright key. Template:Plact
Fired whenever the player unpresses the moveright key. Template:Plact
  • PressedForward
Fired whenever the player presses the forward key. Template:Plact
Fired whenever the player unpresses the forward key. Template:Plact
  • PressedBack
Fired whenever the player presses the backward key. Template:Plact
Fired whenever the player unpresses the backward key. Template:Plact
  • PressedAttack
Fired whenever the player presses the attack key. Template:Plact
Fired whenever the player unpresses the attack key. Template:Plact
  • PressedAttack2
Fired whenever the player presses the secondary attack key. Template:Plact
Fired whenever the player unpresses the secondary attack key. Template:Plact
  • XAxis <float>
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.
Template:Plact
  • YAxis <float>
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.
Template:Plact
  • AttackAxis <float>
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.
Template:Plact
  • Attack2Axis <float>
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.
Template:Plact