Trigger impact: Difference between revisions
Jump to navigation
Jump to search
m (Robot: fixing template case.) |
m (Robot: fixing template case.) |
||
Line 12: | Line 12: | ||
*{{kv targetname}} | *{{kv targetname}} | ||
*{{kv origin}} | *{{kv origin}} | ||
*{{ | *{{KV Angles}} | ||
*'''Magnitude''' | *'''Magnitude''' | ||
:<float> The strength of the impact. Negative values reverse the direction. | :<float> The strength of the impact. Negative values reverse the direction. |
Revision as of 19:42, 19 January 2009
Template:Wrongtitle Template:Base brush
Entity Description
A trigger volume that can be told to push all physics objects that are inside of it in the direction specified by this trigger's angles. Also outputs the force at the time of impact for anyone else that wants to use it.
In code it is represented by class CTriggerImpact, defined in triggers.cpp.
Keyvalues
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
- Magnitude
- <float> The strength of the impact. Negative values reverse the direction.
- noise
- <float> The amount of directional noise (0-1). 0 = no noise, 1 = random direction.
- viewkick
- <float> The amount to kick player's view if the player is in the trigger. Proportional to magnitude (0-1).
Inputs
- Impact <float>
- Fire the impact, pushing all entities within the volume.
- SetMagnitude <float>
- Set the magnitude of the impact.
Outputs
- Template:O targetname
- ImpactForce <string>
- Fired after an impact. The parameter passed along is the force of the impact that was generated.