Env physimpact: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
(Does too.)
Line 1: Line 1:
{{lang|Env physimpact}}
{{lang|Env physimpact}}
{{base point|env_physimpact|sprite=env_physexplosion}} It causes a physics impact on another entity. The direction of the impact is determined by the angles set.
{{base point|env_physimpact|sprite=env_physexplosion}} It causes a physics impact on another entity. The direction of the impact is determined by the angles set.
{{bug|Does not function in Team Fortress 2.}}


{{code class|CPhysImpact|physobj.cpp}}
{{code class|CPhysImpact|physobj.cpp}}

Revision as of 19:52, 30 January 2020

English (en)Translate (Translate)

Template:Base point It causes a physics impact on another entity. The direction of the impact is determined by the angles set.

C++ In code, it is represented by theCPhysImpactclass, defined in thephysobj.cppfile.

Flags

  • 1: No fall-off
  • 2: Infinite Length
  • 4: Ignore Mass
  • 8: Ignore Surface Normal When Applying Force[Clarify]

Keyvalues

Magnitude (magnitude) ([todo internal name (i)]) <integer>
Strength of the impact.
Distance (distance) ([todo internal name (i)]) <integer>
How far to project the impact (if 0 uses a default value).
Point to Entity (directionentityname) ([todo internal name (i)]) <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


Outputs