This article's documentation is for anything that uses the Source engine. Click here for more information.

Point enable motion fixup: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 5: Line 5:
{{PlacementTip|To be used with {{ent|prop_physics}} with [[prop_physics#Flags|flags 'Motion Disabled' and 'Enable motion when grabbed by gravity gun']] that is partially inside a wall and meant to be grabbed by gravity gun.}}
{{PlacementTip|To be used with {{ent|prop_physics}} with [[prop_physics#Flags|flags 'Motion Disabled' and 'Enable motion when grabbed by gravity gun']] that is partially inside a wall and meant to be grabbed by gravity gun.}}
{{Example|Only used in {{hl2|4}} map <kbd>d1_town_01</kbd> for saw blade partly inside a wall. Doesn't seem to cause any issues without it though.}}
{{Example|Only used in {{hl2|4}} map <kbd>d1_town_01</kbd> for saw blade partly inside a wall. Doesn't seem to cause any issues without it though.}}
{{Note|This entity gets deleted after the prop is fixed-up}}
{{Note|This entity gets deleted after the prop is fixed-up.}}
{{Note|This entity is created automatically when physical props thrown by gravity gun stick inside a wall. (for example <kbd>models/props_junk/harpoon002a.mdl</kbd> and <kbd>models/props_junk/sawblade001a.mdl</kbd>)}}
{{Note|This entity is created automatically when <kbd>prop_physics</kbd> thrown by [[weapon_physcannon|gravity gun]] stick inside a wall. (for example <kbd>models/props_junk/harpoon002a.mdl</kbd> and <kbd>models/props_junk/sawblade001a.mdl</kbd>)}}


== KeyValues ==
== KeyValues ==
Line 15: Line 15:
== See also ==
== See also ==
* {{ent|prop_physics}}
* {{ent|prop_physics}}
* {{ent|weapon_physcannon}}

Latest revision as of 09:33, 29 March 2025

C++ Class hierarchy
CEnableMotionFixup
CBaseEntity
C++ props.cpp

point_enable_motion_fixup is a point entity available in all Source Source games. It is used to move a motion-disabled prop when it enables motion. Parent this entity to the prop, and when the prop has its motion enabled, it will immediately teleport to the origin and angles of this entity.

PlacementTip.gifPlacement Tip:To be used with prop_physics with flags 'Motion Disabled' and 'Enable motion when grabbed by gravity gun' that is partially inside a wall and meant to be grabbed by gravity gun.
PlacementTip.pngExample:Only used in Half-Life 2 Half-Life 2 map d1_town_01 for saw blade partly inside a wall. Doesn't seem to cause any issues without it though.
Note.pngNote:This entity gets deleted after the prop is fixed-up.
Note.pngNote:This entity is created automatically when prop_physics thrown by gravity gun stick inside a wall. (for example models/props_junk/harpoon002a.mdl and models/props_junk/sawblade001a.mdl)

KeyValues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
Angles the motion enabled entity will be set to.

See also