Env global: Difference between revisions
Jump to navigation
Jump to search
m (Robot: Automated text replacement (-\{\|\r +{| class=standard-table)) |
Yar Kramer (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
For this entity to take effect from the map's start, the '''Set Initial State''' flag must be checked. | For this entity to take effect from the map's start, the '''Set Initial State''' flag must be checked. | ||
With the Orange Box, the entity can also store a numeric variable, the "counter," which can be added to or set directly (but not subtracted from), much like a [[math_counter]] which works across multiple maps. | |||
{{map properties}} | {{map properties}} | ||
Line 44: | Line 46: | ||
| "ep_alyx_darknessmode" || Episodic: Alyx darkness mode | | "ep_alyx_darknessmode" || Episodic: Alyx darkness mode | ||
|} | |} | ||
* '''{{EP2 add|counter}}''' | |||
: Sets the initial value of the associated counter. | |||
==Inputs== | ==Inputs== | ||
Line 55: | Line 59: | ||
* '''Remove''' | * '''Remove''' | ||
: Set state of global to DEAD. | : Set state of global to DEAD. | ||
* '''{{EP2 add|AddToCounter <integer>}}''' | |||
: Adds the specified amount to the counter. | |||
* '''{{EP2 add|SetCounter <integer>}}''' | |||
: Sets the value of the counter. | |||
* '''{{EP2 add|GetCounter}}''' | |||
: Fires this entity's Counter output. | |||
==Outputs== | ==Outputs== | ||
* {{O Targetname}} | * {{O Targetname}} | ||
* '''{{EP2 add|Counter <integer>}}''' | |||
: Outputs the integer value of this entity. May depend on global state. | |||
[[Category:Entities]] | [[Category:Entities]] |
Revision as of 17:52, 10 March 2009
Entity Description
An entity to control a game-specific global states, it can be used to force the gravity gun to become the super gravity gun among other things.
For this entity to take effect from the map's start, the Set Initial State flag must be checked.
With the Orange Box, the entity can also store a numeric variable, the "counter," which can be added to or set directly (but not subtracted from), much like a math_counter which works across multiple maps.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- initialstate
- <choices> Initial State
Literal Value Description 0 Off 1 On 2 Dead
- globalstate
- <string> Global State to Set
Literal Value Description "gordon_precriminal" Gordon pre-criminal "antlion_allied" Antlions are player allies "suit_no_sprint" Suit sprint function not yet enabled "super_phys_gun" Super phys gun is enabled "friendly_encounter" Friendly encounter sequence (lower weapons, etc.) "gordon_invulnerable" Gordon is invulnerable "no_seagulls_on_jeep" Don't spawn seagulls on the jeep "ep2_alyx_injured" Episode 2: Alyx injured "ep_alyx_darknessmode" Episodic: Alyx darkness mode
- Sets the initial value of the associated counter.
Inputs
- TurnOn
- Set state of global to ON.
- TurnOff
- Set state of global to OFF.
- Toggle
- Toggles state of global between ON and OFF.
- Remove
- Set state of global to DEAD.
- Adds the specified amount to the counter.
- Sets the value of the counter.
- Fires this entity's Counter output.
Outputs
- Outputs the integer value of this entity. May depend on global state.