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

34 lines
892 B
Ucode

/*
--------------------------------------------------------------
ACTION_PlayKFReplicatedAnim
--------------------------------------------------------------
Fully Replicated Version of ACTION_PlayAnim for use with KFPawns
Author : Alex Quick
--------------------------------------------------------------
*/
class ACTION_PlayKFReplicatedAnim extends ACTION_PlayAnim;
function bool PawnPlayBaseAnim(ScriptedController C, bool bFirstPlay)
{
local KFPawn KFP;
KFP = KFPawn(C.Pawn);
if(KFP == none)
{
log("Warning - Cannot use KFReplicatedAnim Actions with actors that are not children of KFPawn");
return false;
}
if ( BaseAnim == '' )
return false;
C.bControlAnimations = true;
KFP.SetScriptedAnimData(BaseAnim,BlendInTime,BlendOutTime,AnimRate,AnimIterations,bLoopAnim,StartFrame);
return false;
}