CFuncMoveLinear/notes: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(errrr)
m (Setting bug notice hidetested=1 param on page where the bug might not need tested in param specified)
 
(19 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{note|The <code>SetPosition</code> input and '''Start Position''' keyvalue do not perform any bounds checking, so values less than 0 and greater than 1 can be used. Negative values will move in the opposite direction to the movement direction, and values greater than 1 will move it in multiples of the set '''Move Distance'''. Moving past the opened/closed position does not trigger the <code>OnFullyOpen</code> and <code>OnFullyClosed</code> outputs.}}
{{LanguageBar|title=CFuncMoveLinear/notes}}


{{bug|There are bugs that may arise when [[parenting]] this entity to any of these: {{ent|func_movelinear}}, {{ent|momentary_door}}, {{ent|func_lookdoor}}, {{ent|func_water_analog}}. A {{ent|func_door}} can be used as a workaround. See [[CFuncMoveLinear_ParentingFix|here]] for a code fix.}}
<onlyinclude>{{note|The <code>SetPosition</code> input and '''Start Position''' keyvalue do not perform any bounds checking, so values less than 0 and greater than 1 can be used. Negative values will move in the opposite direction to the movement direction, and values greater than 1 will move it in multiples of the set '''Move Distance'''. Moving past the opened/closed position does not trigger the <code>OnFullyOpen</code> and <code>OnFullyClosed</code> outputs.}}


{{todo|List which games have the parenting bugs. The bugs were first noted in June 2006; it's possible they don't actually even exist anymore. It's also not clear what exactly the bugs are.}}
{{bug|hidetested=1|There are bugs that may arise when [[parenting]] this entity to any of these: {{ent|func_movelinear}}, {{ent|func_lookdoor}}, {{ent|func_water_analog}}. A {{ent|func_door}} (or for <tt>func_water_analog</tt>, {{ent|func_water|engine=Source}}) can be used as a workaround. (see [[CFuncMoveLinear_ParentingFix|here]] for a code fix){{fix||code}}
 
{{confirm|Might be fixed in Portal 2? Parented movelinears are used extensively for this game's piston platforms.}}
{| class="wikitable"
}}</onlyinclude>
|-
!Game:!!{{as}}!!{{csgo}}!!{{css}}!!{{DODS}}!!{{HL2}}!!HL2:DM!!HL2:Ep1!!HL2:Ep2!!{{l4d}}!!{{l4d2}}!!{{portal}}!!{{portal2}}!!{{tf2}}
|-
|Affects game:||?||No||?||?||?||?||?||?||?||?||?||?||?
|}

Latest revision as of 07:17, 20 May 2025

English (en)中文 (zh)Translate (Translate)
Note.pngNote:The SetPosition input and Start Position keyvalue do not perform any bounds checking, so values less than 0 and greater than 1 can be used. Negative values will move in the opposite direction to the movement direction, and values greater than 1 will move it in multiples of the set Move Distance. Moving past the opened/closed position does not trigger the OnFullyOpen and OnFullyClosed outputs.
Icon-Bug.pngBug:There are bugs that may arise when parenting this entity to any of these: func_movelinear, func_lookdoor, func_water_analog. A func_door (or for func_water_analog, func_water) can be used as a workaround. (see here for a code fix)[ Code Fix]
Confirm:Might be fixed in Portal 2? Parented movelinears are used extensively for this game's piston platforms.