1
0
KF2-Dev-Scripts/KFGame/Classes/KFSkelControl_SpinBone.uc

33 lines
1.1 KiB
Ucode
Raw Permalink Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// 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
}