Example #1
0
 public PlayerInteractiveObject(IInteractiveGameObject interactiveGameObject, InteractiveObjectLogicColliderDefinition InteractiveObjectLogicCollider,
                                A_AnimationPlayableDefinition LocomotionAnimationDefinition)
 {
     this.InteractiveObjectLogicCollider = InteractiveObjectLogicCollider;
     this.LocomotionAnimationDefinition  = LocomotionAnimationDefinition;
     base.BaseInit(interactiveGameObject, false);
 }
Example #2
0
 public SightVisualFeedbackGameObjectV2(GameObject AssociatedGameObject,
                                        A_AnimationPlayableDefinition SightVisualFeedbackAnimation)
 {
     this.AssociatedGameObjectPtr   = AssociatedGameObject.Allocate();
     this.MeshRendererPtr           = AssociatedGameObject.GetComponentInChildren <MeshRenderer>().Allocate();
     this.AnimatorPlayableObjectPtr = new AnimatorPlayableObject("SightVisualFeedbackGameObject", AssociatedGameObject.GetComponent <Animator>()).Allocate();
     this.AnimatorPlayableObjectPtr.GetValue().PlayAnimation(0, SightVisualFeedbackAnimation.GetAnimationInput());
     this.AnimatorPlayableObjectPtr.GetValue().GlobalPlayableGraph.SetTimeUpdateMode(DirectorUpdateMode.UnscaledGameTime);
 }
Example #3
0
 public void OnLowHealthStarted(A_AnimationPlayableDefinition lowHealthLocomotionAnimationTree)
 {
     this.playerLocomotionSystem.OnLowHealthStarted(lowHealthLocomotionAnimationTree);
     this.SetState(PlayerObjectLocomotionState.MOVING_INJURED);
 }
Example #4
0
        public PlayerObjectLocomotionStateBehavior(PlayerObjectLocomotionState StartState, AnimationController animationControllerRef, A_AnimationPlayableDefinition playerLocomotionTree)
        {
            this.playerLocomotionSystem = new PlayerLocomotionSystem(playerLocomotionTree);
            base.StateManagersLookup    = new Dictionary <PlayerObjectLocomotionState, PlayerObjectLocomotionStateManager>()
            {
                { PlayerObjectLocomotionState.LISTENING, new PlayerObjectLocomotionDummyStateManager() },
                { PlayerObjectLocomotionState.MOVING, new PlayerObjectLocomotionMovingStatemanager(this.playerLocomotionSystem, animationControllerRef) },
                { PlayerObjectLocomotionState.MOVING_INJURED, new PlayerObjectLocomotionMovingInjuredStatemanager(this.playerLocomotionSystem, animationControllerRef) }
            };

            base.Init(PlayerObjectLocomotionState.LISTENING);
            this.SetState(StartState);
        }
Example #5
0
 public void OnProjectileDeflectionAttempt(A_AnimationPlayableDefinition ProjectileDeflectMovementAnimation)
 {
     this.PlayerContextActionOverrideStateBehavior.OnProjectileDeflectionAttempt(ProjectileDeflectMovementAnimation);
 }
Example #6
0
 public void StartAiming(A_AnimationPlayableDefinition startTargettingPoseAnimation)
 {
     this.StartTargettingPoseAnimation = startTargettingPoseAnimation;
 }
Example #7
0
 public SoldierObjectLocomotionMovingStateManager(AnimationController AnimationControllerRef, A_AnimationPlayableDefinition LocomotionTree)
 {
     this.LocomotionTree = LocomotionTree;
     this.LocomotionAnimationStateSystem = new LocomotionAnimationStateSystem(SoliderEnemyAnimationLayersOrders.GetLayerNumber(SoliderEnemyAnimationLayers.LOCOMOTION), AnimationControllerRef);
 }
Example #8
0
 public SoldierTargettingUpperBodyTargettingStateManager(AnimationController animationControllerRef, A_AnimationPlayableDefinition TargettingAnimation)
 {
     AnimationControllerRef   = animationControllerRef;
     this.TargettingAnimation = TargettingAnimation;
 }
Example #9
0
 public void OnLowHealthStarted(A_AnimationPlayableDefinition lowHealthLocomotionAnimationTree)
 {
     this.InjuredLocomotionAnimation = lowHealthLocomotionAnimationTree;
 }
Example #10
0
 public PlayerLocomotionSystem(A_AnimationPlayableDefinition defaultLocomotionAnimation)
 {
     DefaultLocomotionAnimation = defaultLocomotionAnimation;
 }
Example #11
0
 public void OnProjectileDeflectionAttempt(A_AnimationPlayableDefinition ProjectileDeflectMovementAnimation)
 {
     this.PlayerContextActionOverrideSystem.ProjectileDeflectMovementAnimation = ProjectileDeflectMovementAnimation;
     this.SetState(PlayerContextActionOverrideState.DEFLECTION_MOVEMENT);
 }
Example #12
0
 public InteractiveObjectTargettedVisualFeedbackObjectDefinition(A_AnimationPlayableDefinition interactiveObjectTargettedVisualFeedbackObjectAnimation)
 {
     InteractiveObjectTargettedVisualFeedbackObjectAnimation = interactiveObjectTargettedVisualFeedbackObjectAnimation;
 }
Example #13
0
 public SoliderEnemyAnimationStateManager(AnimationController AnimationControllerRef, A_AnimationPlayableDefinition BaseLocomotionTree, SoldierAnimationSystemDefinition SoldierAnimationSystemDefinition)
 {
     this.SoldierObjectLocomotionStateBehavior    = new SoldierObjectLocomotionStateBehavior(AnimationControllerRef, BaseLocomotionTree);
     this.SoldierTargettingUpperBodyStateBehavior = new SoldierTargettingUpperBodyStateBehavior(AnimationControllerRef, SoldierAnimationSystemDefinition.FiringPoseAnimation);
 }
Example #14
0
 public TwoDObjectAnimationPlayableSystem(AnimatorPlayableObject AnimatorPlayableObject, A_AnimationPlayableDefinition Blendtree)
 {
     this.AnimatorPlayableObjectRef = AnimatorPlayableObject;
     AnimatorPlayableObject.PlayAnimation(0, Blendtree.GetAnimationInput());
 }
Example #15
0
 public PlayerObjectAnimationStateManager(AnimationController animationControllerRef, A_AnimationPlayableDefinition playerLocomotionTree)
 {
     this.PlayerObjectLocomotionStateBehavior             = new PlayerObjectLocomotionStateBehavior(PlayerObjectLocomotionState.MOVING, animationControllerRef, playerLocomotionTree);
     this.PlayerLocomotionMaskedPoseOVerrideStateBehavior = new PlayerLocomotionMaskedPoseOVerrideStateBehavior(animationControllerRef);
     this.PlayerContextActionOverrideStateBehavior        = new PlayerContextActionOverrideStateBehavior(animationControllerRef);
 }
Example #16
0
 public SoldierTargettingUpperBodyStateBehavior(AnimationController AnimationControllerRef, A_AnimationPlayableDefinition TargettingAnimation)
 {
     this.StateManagersLookup = new Dictionary <SoldierTargettingUpperBodyState, SoldierTargettingUpperBodyStateManager>()
     {
         { SoldierTargettingUpperBodyState.LISTENING, new SoldierTargettingUpperBodyListeningStateManager() },
         { SoldierTargettingUpperBodyState.TARGETTING, new SoldierTargettingUpperBodyTargettingStateManager(AnimationControllerRef, TargettingAnimation) }
     };
     base.Init(SoldierTargettingUpperBodyState.LISTENING);
 }
Example #17
0
 public void StartAiming(A_AnimationPlayableDefinition startTargettingPoseAnimation)
 {
     this.PlayerLocomotionMaskedPoseOVerrideStateBehavior.StartAiming(startTargettingPoseAnimation);
 }
Example #18
0
 public SoldierObjectLocomotionStateBehavior(AnimationController AnimationControllerRef, A_AnimationPlayableDefinition BaseLocomotionTree)
 {
     this.StateManagersLookup = new Dictionary <SoldierObjectLocomotionState, SoldierObjectLocomotionStateManager>()
     {
         { SoldierObjectLocomotionState.LISTENING, new SoldierObjectLocomotionListeningStateManager() },
         { SoldierObjectLocomotionState.MOVING, new SoldierObjectLocomotionMovingStateManager(AnimationControllerRef, BaseLocomotionTree) }
     };
     base.Init(SoldierObjectLocomotionState.LISTENING);
     this.SetState(SoldierObjectLocomotionState.MOVING);
 }
Example #19
0
 public void OnLowHealthStarted(A_AnimationPlayableDefinition lowHealthLocomotionAnimationTree)
 {
     this.PlayerObjectLocomotionStateBehavior.OnLowHealthStarted(lowHealthLocomotionAnimationTree);
 }
Example #20
0
 public void PlayAnimation(A_AnimationPlayableDefinition LocomotionAnimationTree)
 {
     this.AnimationControllerRef.PlayAnimationV2(AnimationLayer, LocomotionAnimationTree.GetAnimationInput());
 }
Example #21
0
 public void StartAiming(A_AnimationPlayableDefinition startTargettingPoseAnimation)
 {
     this.OverridingSystem.StartAiming(startTargettingPoseAnimation);
     this.SetState(PlayerLocomotionMaskedPoseOVerrideState.TARGETTING_UPPER_BODY);
 }