33 lines
1.1 KiB
Ucode
33 lines
1.1 KiB
Ucode
|
//=============================================================================
|
||
|
// KFSkelControl_SpinBone
|
||
|
//=============================================================================
|
||
|
// A skel control that continuously rotates (e.g. spinning fan blades)
|
||
|
//=============================================================================
|
||
|
// Killing Floor 2
|
||
|
// Copyright (C) 2015 Tripwire Interactive LLC
|
||
|
// - Andrew "Strago" Ladenberger
|
||
|
//=============================================================================
|
||
|
class KFSkelControl_SpinBone extends SkelControlSingleBone
|
||
|
native(Anim)
|
||
|
hidecategories(Adjustments)
|
||
|
hidecategories(Translation)
|
||
|
hidecategories(Rotation);
|
||
|
|
||
|
/** BoneRotation spin rate in seconds */
|
||
|
var() rotator RotationRate;
|
||
|
|
||
|
cpptext
|
||
|
{
|
||
|
virtual void TickSkelControl(FLOAT DeltaSeconds, USkeletalMeshComponent* SkelComp);
|
||
|
|
||
|
virtual void PostLoad();
|
||
|
virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent);
|
||
|
}
|
||
|
|
||
|
defaultproperties
|
||
|
{
|
||
|
bApplyRotation=true
|
||
|
BoneRotationSpace=BCS_BoneSpace
|
||
|
bIgnoreWhenNotRendered=true
|
||
|
}
|