Beispiel #1
0
        public override void OnEnter()
        {
            HitInstance hit = new HitInstance
            {
                Source              = base.Owner,
                AttackType          = (AttackTypes)this.AttackType.Value,
                CircleDirection     = this.CircleDirection.Value,
                DamageDealt         = this.DamageDealt.Value,
                Direction           = this.Direction.Value,
                IgnoreInvulnerable  = this.IgnoreInvulnerable.Value,
                MagnitudeMultiplier = this.MagnitudeMultiplier.Value,
                MoveAngle           = this.MoveAngle.Value,
                MoveDirection       = this.MoveDirection.Value,
                Multiplier          = ((!this.Multiplier.IsNone) ? this.Multiplier.Value : 1f),
                SpecialType         = (SpecialTypes)this.SpecialType.Value,
                IsExtraDamage       = false
            };

            hit = ModHooks.OnHitInstanceBeforeHit(this.Fsm, hit);
            HitTaker.Hit(this.Target.Value, hit, 3);
            base.Finish();
        }