rott/kf_sources/Engine/Classes/MatAction.uc
2026-07-14 20:27:09 +07:00

35 lines
1.3 KiB
Ucode

//=============================================================================
// MatAction: Base class for Matinee actions.
//=============================================================================
class MatAction extends MatObject
abstract
native;
var() interpolationpoint IntPoint; // The interpolation point that we want to move to/wait at.
var() string Comment; // User can enter a comment here that will appear on the GUI viewport
var(Time) float Duration; // How many seconds this action should take
var(Sub) export editinline array<MatSubAction> SubActions; // Sub actions are actions to perform while the main action is happening
var(Path) bool bSmoothCorner; // true by default - when one control point is adjusted, other is moved to keep tangents the same
var(Path) vector StartControlPoint; // Offset from the current interpolation point
var(Path) vector EndControlPoint; // Offset from the interpolation point we're moving to (InPointName)
var(Path) bool bConstantPathVelocity;
var(Path) float PathVelocity;
var float PathLength;
var transient array<vector> SampleLocations;
var transient float PctStarting;
var transient float PctEnding;
var transient float PctDuration;
defaultproperties
{
bSmoothCorner=true
StartControlPoint=(X=800,Y=800,Z=0)
EndControlPoint=(X=-800,Y=-800,Z=0)
}