// starts the Stun Animation public override void BeginStun(EnumEntityStunType stun, EnumBodyPartHit _bodyPart, Utils.EnumHitDirection _hitDirection, bool _criticalHit, float random) { SetRandomIndex("StunIndex"); base.BeginStun(stun, _bodyPart, _hitDirection, _criticalHit, random); }
public override void BeginStun(EnumEntityStunType stun, EnumBodyPartHit _bodyPart, Utils.EnumHitDirection _hitDirection, bool _criticalHit, float random) { SetRandomIndex("StunIndex"); SetBool("IsStunned", true); }
public override void BeginStun(EnumEntityStunType stun, EnumBodyPartHit _bodyPart, Utils.EnumHitDirection _hitDirection, bool _criticalHit, float random) { this.SetRandomIndex("StunIndex"); this.SetBool("IsStunned", true); this.SetInt("StunType", (int)stun); this.SetInt("StunBodyPart", (int)_bodyPart); this.SetInt("HitDirection", (int)_hitDirection); this.SetBool("isCritical", _criticalHit); this.SetFloat("HitRandomValue", random); this.SetTrigger("BeginStunTrigger"); this.ResetTrigger("EndStunTrigger"); }