Trigger impact: Difference between revisions
Jump to navigation
Jump to search

m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
Thunder4ik (talk | contribs) m (→top: clean up, added underlinked tag) |
||
Line 1: | Line 1: | ||
<!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|trigger impact}}{{this is a|e2|name=trigger_impact}} It can be told to push all [[physics]] objects that are inside of it in the direction specified by this trigger's angles. Also [[output]]s the force at the time of impact for anyone else that wants to use it. | {{Underlinked|date=January 2024}} | ||
<!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|trigger impact}}{{this is a|e2|name=trigger_impact}} It can be told to push all [[physics]] objects that are inside of it in the direction specified by this trigger's angles. Also [[output]]s the force at the time of impact for anyone else that wants to use it. | |||
{{code class|CTriggerImpact|triggers.cpp}} | {{code class|CTriggerImpact|triggers.cpp}} |
Revision as of 02:41, 6 January 2024

This article needs more
links to other articles to help
integrate it into the encyclopedia. Please help improve this article by adding links
that are relevant to the context within the existing text.
January 2024



January 2024


trigger_impact
is an e2 available in all Source games. It 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.
Keyvalues
- Magnitude ([todo internal name (i)]) <float>
- The strength of the impact. Negative values reverse the direction.
- Noise ([todo internal name (i)]) <float>
- The amount of directional noise (0-1). 0 = no noise, 1 = random direction.
- Viewkick ([todo internal name (i)]) <float>
- The amount to kick player's view if the player is in the trigger. Proportional to magnitude (0-1).
- 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
Origin:
- Origin (X Y Z) (origin) <origin>
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
- 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.
Inputs
- Impact <float >
- Fire the impact, pushing all entities within the volume.
- SetMagnitude <float >
- Set the magnitude of the impact.
Outputs
- ImpactForce <string >
- Fired after an impact. The parameter passed along is the force of the impact that was generated.