Asw env shake: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 48: Line 48:
== Inputs ==
== Inputs ==


;AddOutput:
;<code>AddOutput</code>
:Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.  
:Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.  
:Format: <key> <value>  
:Format: <key> <value>  
:Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>  
:Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>  


;FireUser1-4:
;<code>FireUser1-4</code>
:Fire the OnUser outputs; see User Inputs and Outputs.  
:Fire the OnUser outputs; see User Inputs and Outputs.  


;Kill:
;<code>Kill</code>
:Removes this entity from the world.  
:Removes this entity from the world.  




;StartShake:
;<code>StartShake</code>
:Starts shaking.
:Starts shaking.


;StopShake:
;<code>StopShake</code>
:Stops shaking.
:Stops shaking.


;Amplitude:
;<code>Amplitude</code>
:Redefines the Amplitude keyvalue.
:Redefines the Amplitude keyvalue.


;Frequency:
;<code>Frequency</code>
:Redefines the Frequency keyvalue.
:Redefines the Frequency keyvalue.


Line 75: Line 75:
== Outputs ==
== Outputs ==


;OnUser1-4:
;<code>OnUser1-4</code>
:Fired in response to the FireUser inputs; see User Inputs and Outputs.
:Fired in response to the FireUser inputs; see User Inputs and Outputs.


Line 82: Line 82:


;[[List of Alien Swarm entities]]
;[[List of Alien Swarm entities]]
[[Category:Alien Swarm Entities]]

Revision as of 01:28, 15 May 2011

asw_env_shake

Alien Swarm Creates a point entity available in Alien Swarm. When triggered,this entity will cause the screen off players in a given radius to shake.

Keyvalues

Name
The name that other entities refer to this entity by.
Entity Scripts
Name(s) of script files that are executed after all entities have spawned.
Script think function
Name of a function in this entity's script scope which will be called automatically.
Parent
The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.


Amplitude
The amount of noise in the screen shake. Should be a range between 0 and 16.
Frequency
The frequency used to apply the screen shake. Should be a value between 0 and 255, where 0.1 = jerk, and 255.0 = rumble.
Duration
The length of time in which to shake the player's screens.
Effect Radius
The radius around this entity in which to affect players.


Flags

GlobalShake
If set, the shake will shake will affect the whole level.
InAir
Unknown effect.
Physics
If set, the shake will affect physic objects [?].
Ropes
If set, the shake will affect ropes [?].


Inputs

AddOutput
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
FireUser1-4
Fire the OnUser outputs; see User Inputs and Outputs.
Kill
Removes this entity from the world.


StartShake
Starts shaking.
StopShake
Stops shaking.
Amplitude
Redefines the Amplitude keyvalue.
Frequency
Redefines the Frequency keyvalue.


Outputs

OnUser1-4
Fired in response to the FireUser inputs; see User Inputs and Outputs.


See Also

List of Alien Swarm entities