$continue: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Add notes about $prepend and $append which have somewhat same purpose)
m (Remove wrong Entity Categories)
Line 1: Line 1:
{{lang|$continue|$title=$continue}}
{{lang|$continue|$title=$continue}}
{{entity|since=Source 2006|type=[[:Category:QC_Commands|QC command]]|$continue|}} used to insert more parameters to [[$sequence|sequences]] or [[$animation|animations]] after declared, by expanding it. This somehow also allow expand [[$definemacro|macros]]. {{Inline note|''[[$continue]] replaces both [[$prepend]] and [[$append]] commands.''}}
'''[[$continue]]''' is a [[:Category:QC_Commands|QC command]] available in all {{src|4}} games since {{src06|4}}. Used to insert more parameters to [[$sequence|sequences]] or [[$animation|animations]] after declared, by expanding it. This somehow also allow expand [[$definemacro|macros]]. {{Inline note|''[[$continue]] replaces both [[$prepend]] and [[$append]] commands.''}}


{{ModernTip|Place this immediately after a [[$definemacro|macro]] to trick the parser in thinking that you're on the same referenced [[$sequence]] or [[$animation]].}}
{{ModernTip|Place this immediately after a [[$definemacro|macro]] to trick the parser in thinking that you're on the same referenced [[$sequence]] or [[$animation]].}}

Revision as of 14:52, 14 April 2023

English (en)Translate (Translate)

$continue is a QC command available in all Source Source games since Source 2006 Source 2006. Used to insert more parameters to sequences or animations after declared, by expanding it. This somehow also allow expand macros.

$continue replaces both $prepend and $append commands.

Template:ModernTip Template:ModernNote Template:ModernWarning

Syntax

 $continue "SequenceName" <options>

Examples

$definemacro SpyMeleeGestureAttackIKRelease gesturename filename activityname \\
$sequence $gesturename$ { \\
	$filename$ \\
	weightlist SpymeleeRightArmBlend \\
	subtract $gesturename$ 0 \\
	delta \\
	ikrule lhand release \\
	ikrule rhand release \\
	iklock rfoot 1 0 iklock lfoot 1 0 \\
	activity $activityname$ 1 \\
} \\
$continue $gesturename$
$definemacro SelfDeltaSequence FileName \\
$animation a_$FileName$   $FileName$ subtract a_$FileName$ 0 \\
$sequence    $FileName$ a_$FileName$ predelta \\
$continue    $FileName$ \\

// make a sequence named DLC1_Intro_Male_LeanUp with above macro, tell to lock both feets in position and set activity
$SelfDeltaSequence DLC1_Intro_Male_LeanUp {
	iklock "rfoot" 1 0
	iklock "lfoot" 1 0
	activity ACT_DLCINTRO_01 -1
}

// edit above sequence $animation, constraining it start and end
$continue a_DLC1_Intro_Male_LeanUp frames 0 269

See also