Exemplo n.º 1
0
        public virtual void BeingHit(AttackResult attackResult, BeHitEffect beHitEffect, uint sourceID)
        {
            bool doSteerToHitForward = false;
            bool targetLockSource    = false;

            if ((attackResult.hitEffect > AttackResult.AnimatorHitEffect.Light) && (attackResult.hitCollision.hitDir != Vector3.zero))
            {
                doSteerToHitForward = true;
            }
            if ((Singleton <AvatarManager> .Instance.IsLocalAvatar(base.runtimeID) && (this.avatar.AttackTarget == null)) && (this.avatar.IsAnimatorInTag(AvatarData.AvatarTagGroup.AllowTriggerInput) && (Singleton <RuntimeIDManager> .Instance.ParseCategory(sourceID) == 4)))
            {
                BaseMonoMonster monster = Singleton <MonsterManager> .Instance.TryGetMonsterByRuntimeID(sourceID);

                if ((monster != null) && !monster.denySelect)
                {
                    targetLockSource = true;
                }
            }
            if ((this._paralyzeState == ParalyzeState.ParalyzeFreezed) && (attackResult.hitEffect > AttackResult.AnimatorHitEffect.Light))
            {
                this.avatar.SetPropertyByStackIndex("Animator_OverallSpeedRatioMultiplied", this._paralyzeAnimatorSpeedIx, 1f);
                this._paralyzeTimer.timespan = 0.35f;
                this._paralyzeTimer.Reset(true);
                this._paralyzeState = ParalyzeState.ParalyzeHitResuming;
            }
            if (base.abilityState.ContainsState(AbilityState.Frozen))
            {
                doSteerToHitForward = false;
                if (attackResult.hitEffect > AttackResult.AnimatorHitEffect.Light)
                {
                    attackResult.hitEffect = AttackResult.AnimatorHitEffect.Light;
                }
            }
            this.avatar.BeHit(attackResult.frameHalt, attackResult.hitEffect, attackResult.hitEffectAux, attackResult.killEffect, beHitEffect, attackResult.aniDamageRatio, attackResult.hitCollision.hitDir, attackResult.retreatVelocity, sourceID, targetLockSource, doSteerToHitForward);
        }
Exemplo n.º 2
0
 public virtual void BeingHit(AttackResult attackResult, BeHitEffect beHitEffect)
 {
     if ((this._paralyzeState == ParalyzeState.ParalyzeFreezed) && (attackResult.hitEffect > AttackResult.AnimatorHitEffect.Light))
     {
         this.monster.PopProperty("Animator_OverallSpeedRatioMultiplied", this._paralyzeAnimatorSpeedIx);
         this._paralyzeAnimatorSpeedIx = this.monster.PushProperty("Animator_OverallSpeedRatioMultiplied", 1f);
         this.monster.SetPropertyByStackIndex("Animator_OverallSpeedRatioMultiplied", this._paralyzeAnimatorSpeedIx, 1f);
         if ((attackResult.hitEffect == AttackResult.AnimatorHitEffect.ThrowUp) || (attackResult.hitEffect == AttackResult.AnimatorHitEffect.ThrowUpBlow))
         {
             this._paralyzeTimer.timespan = 0.5f;
         }
         else
         {
             this._paralyzeTimer.timespan = 0.35f;
         }
         this._paralyzeTimer.Reset(true);
         this._paralyzeState = ParalyzeState.ParalyzeHitResuming;
     }
     if (base.abilityState.ContainsState(AbilityState.Frozen) && (attackResult.hitEffect > AttackResult.AnimatorHitEffect.Light))
     {
         attackResult.hitEffect = AttackResult.AnimatorHitEffect.Light;
     }
     this.monster.BeHit(attackResult.frameHalt, attackResult.hitEffect, attackResult.hitEffectAux, attackResult.killEffect, beHitEffect, attackResult.aniDamageRatio, attackResult.hitCollision.hitDir, attackResult.retreatVelocity);
 }
Exemplo n.º 3
0
 public override void BeHit(int frameHalt, AttackResult.AnimatorHitEffect hitEffect, AttackResult.AnimatorHitEffectAux hitEffectAux, KillEffect killEffect, BeHitEffect beHitEffect, float aniDamageRatio, Vector3 hitForward, float retreatVelocity)
 {
     if ((hitEffect == AttackResult.AnimatorHitEffect.ThrowBlow) || (hitEffect == AttackResult.AnimatorHitEffect.ThrowDown))
     {
         hitEffect        = AttackResult.AnimatorHitEffect.KnockDown;
         retreatVelocity *= 0.1f;
     }
     base.BeHit(frameHalt, hitEffect, hitEffectAux, killEffect, beHitEffect, aniDamageRatio, hitForward, retreatVelocity);
 }
Exemplo n.º 4
0
 public override void BeHit(int frameHalt, AttackResult.AnimatorHitEffect hitEffect, AttackResult.AnimatorHitEffectAux hitEffectAux, KillEffect killEffect, BeHitEffect beHitEffect, float aniDamageRatio, Vector3 hitForward, float retreatVelocity, uint sourceID)
 {
     this.ResetTrigger("LightHitTrigger");
     this.ResetTrigger("HitTrigger");
     if (hitEffect > AttackResult.AnimatorHitEffect.Normal)
     {
         this.SetTrigger("HitTrigger");
     }
     else
     {
         this.SetTrigger("LightHitTrigger");
     }
     this.FrameHalt(frameHalt);
 }
Exemplo n.º 5
0
 public virtual void BeingHit(AttackResult attackResult, BeHitEffect beHitEffect, uint sourceID)
 {
     this.prop.BeHit(attackResult.frameHalt, attackResult.hitEffect, attackResult.hitEffectAux, attackResult.killEffect, beHitEffect, attackResult.aniDamageRatio, attackResult.hitCollision.hitDir, attackResult.retreatVelocity, sourceID);
 }
Exemplo n.º 6
0
 public override void BeHit(int frameHalt, AttackResult.AnimatorHitEffect hitEffect, AttackResult.AnimatorHitEffectAux hitEffectAux, KillEffect killEffect, BeHitEffect beHitEffect, float aniDamageRatio, Vector3 hitForward, float retreatVelocity)
 {
     if (hitEffect > AttackResult.AnimatorHitEffect.Light)
     {
         this.SetOverrideSteerFaceDirectionFrame(-hitForward);
     }
     base.BeHit(frameHalt, hitEffect, hitEffectAux, killEffect, beHitEffect, aniDamageRatio, hitForward, retreatVelocity);
 }
Exemplo n.º 7
0
 public virtual void BeHit(int frameHalt, AttackResult.AnimatorHitEffect hitEffect, AttackResult.AnimatorHitEffectAux hitEffectAux, KillEffect killEffect, BeHitEffect beHitEffect, float aniDamageRatio, Vector3 hitForward, float retreatVelocity, uint sourceID)
 {
 }