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

23 lines
473 B
Ucode

class ACTION_FreezeOnAnimEnd extends Action_PLAYANIM;
function bool InitActionFor(ScriptedController C)
{
C.CurrentAnimation = self;
return true;
}
function SetCurrentAnimationFor(ScriptedController C)
{
C.CurrentAnimation = self;
}
function bool PawnPlayBaseAnim(ScriptedController C, bool bFirstPlay)
{
if ( C.Pawn != None )
{
C.Pawn.bPhysicsAnimUpdate = false;
C.Pawn.StopAnimating();
C.Pawn.SetPhysics(PHYS_None);
}
return true;
}