$poseparameter: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
Tip:The important parameters can be specified in the $sequence itself, via the 
Bug:In sequences using the 
		
	
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)  | 
				Trigger hurt (talk | contribs)   (Deconfirmed: This parameter is not entirely obsolete; the posecycle option for $sequence does not allow you to specify the range of the parameter, and a buggy null value will be used as the range instead if this parameter is not used.)  | 
				||
| Line 1: | Line 1: | ||
{{this is a|QC command|name=$poseparameter}} It allows configuration of a [[blend sequence]]. {{  | {{this is a|QC command|name=$poseparameter}} It allows configuration of a [[blend sequence]], by specifying the range of values ahead of time.  | ||
{{tip|The important parameters can be specified in the $sequence itself, via the <code>blend</code> option, making this parameter unnecessary.}}  | |||
{{bug|In [[$sequence|sequences]] using the <code>posecycle</code> option, an invalid range is assumed when <code>$poseparameter</code> is not used to specify the pose parameter ahead of time. Therefore, when using <code>posecycle</code>, you need to use this parameter to tell [[StudioMDL_(Source)|StudioMDL]] how the pose parameter should affect the animation.}}  | |||
== Syntax ==  | == Syntax ==  | ||
| Line 9: | Line 11: | ||
; <code>loop <int></code>  | ; <code>loop <int></code>  | ||
: Defines a custom value to wrap at? {{todo|Purpose of this.}} {{tip|If a third number is specified without loop being present,   | : Defines a custom value to wrap at? {{todo|Purpose of this.}} {{tip|If a third number is specified without loop being present, StudioMDL will add the loop argument implicitly.}}  | ||
; <code>wrap</code>  | ; <code>wrap</code>  | ||
: Values less than <code>min</code> wrap around to <code>max</code>, and so on.  | : Values less than <code>min</code> wrap around to <code>max</code>, and so on.  | ||
| Line 15: | Line 17: | ||
== See also ==  | == See also ==  | ||
* [[$sequence]]  | |||
* [[Blend sequence]]  | * [[Blend sequence]]  | ||
[[Category:QC Commands|poseparameter]]__NOTOC__  | [[Category:QC Commands|poseparameter]]__NOTOC__  | ||
Revision as of 09:56, 14 July 2024
$poseparameter  is a   QC command  available in all 
 Source games. It allows configuration of a blend sequence, by specifying the range of values ahead of time.
blend option, making this parameter unnecessary.posecycle option, an invalid range is assumed when $poseparameter is not used to specify the pose parameter ahead of time. Therefore, when using posecycle, you need to use this parameter to tell StudioMDL how the pose parameter should affect the animation.  [todo tested in ?]Syntax
$poseparameter <$sequence name> <int min> <int max> [loop <int>] [wrap]
$poseparameter yaw -90 90 loop 360 $poseparameter vehicle_wheel_fl_spin -180 180 360
loop <int>- Defines a custom value to wrap at? Todo: Purpose of this.
Tip:If a third number is specified without loop being present, StudioMDL will add the loop argument implicitly. wrap- Values less than 
minwrap around tomax, and so on.