Esempio n. 1
0
        private static void OnEnter_Merc(FireLunarNeedle self)
        {
            Animator modelAnimator = self.GetModelAnimator();

            if (modelAnimator)
            {
                bool @bool = modelAnimator.GetBool("isMoving");
                bool bool2 = modelAnimator.GetBool("isGrounded");
                if (@bool || !bool2)
                {
                    self.PlayAnimation("Gesture, Additive", "GroundLight3", "GroundLight.playbackRate", self.duration);
                    self.PlayAnimation("Gesture, Override", "GroundLight3", "GroundLight.playbackRate", self.duration);
                }
                else
                {
                    self.PlayAnimation("FullBody, Override", "GroundLight3", "GroundLight.playbackRate", self.duration);
                }
            }
            FireNeedle(self, "Head");
        }
Esempio n. 2
0
 private static void OnEnter_Tool(FireLunarNeedle self)
 {
     self.PlayAnimation("Gesture, Additive", "FireNailgun");
     self.GetModelAnimator().SetBool("isFiringNailgun", true);
     FireNeedle(self, EntityStates.Toolbot.BaseNailgunState.muzzleName);
 }