Env physimpact: Difference between revisions
Jump to navigation
Jump to search

(-added class hierarchy, cleanup) |
Gameplayer (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|Pitch Yaw Roll (Y Z X)|intn=angles|string|Direction to project the impact.}} | |||
{{KV|Magnitude|intn=magnitude|integer|Strength of the impact.}} | {{KV|Magnitude|intn=magnitude|integer|Strength of the impact.}} | ||
{{KV|Distance|intn=distance|integer|How far to project the impact (if 0 uses a default value).}} | {{KV|Distance|intn=distance|integer|How far to project the impact (if 0 uses a default value).}} |
Revision as of 01:30, 31 August 2024


![]() |
---|
CPhysImpact |
![]() |
env_physimpact
is a point entity available in all Source games. It causes a physics impact on another entity. The direction of the impact is determined by the angles set.
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
- Pitch Yaw Roll (Y Z X) (angles) <string>
- Direction to project the impact.
- Magnitude (magnitude) <integer>
- Strength of the impact.
- Distance (distance) <integer>
- How far to project the impact (if 0 uses a default value).
- Point to Entity (directionentityname) <targetname>
- If set, Distance and Pitch Yaw Roll settings are ignored and the direction and distance to the target entity will be used.
Inputs
- Impact
- Trigger the impact
Flags
- No fall-off : [1]
- Infinite Length : [2]
- Ignore Mass : [4]
- Ignore Surface Normal When Applying Force[Clarify] : [8]