Example #1
0
        // Hitbox and special attack movement
        public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
        {
            if (!ComboStats(player))
            {
                if (DashStats(player))
                {
                    ModPlayerFists.UseItemHitbox(player, ref hitbox,
                                                 fistHitboxSize, altJumpVelo, 0.5f, 16f);
                }
                else
                {
                    ModPlayerFists.UseItemHitbox(player, ref hitbox,
                                                 fistHitboxSize, fistJumpVelo, 0.5f, 16f);
                }
            }
            else
            {
                int bIdx = player.FindBuffIndex(buffID);

                if (bIdx >= 0 && player.buffTime[bIdx] > flurryEndDelay)
                {
                    ModPlayerFists.UseItemHitbox(player, ref hitbox,
                                                 altHitboxSize, altJumpVelo, 0.5f, altDashSpeed);
                }
                else
                {
                    ModPlayerFists.UseItemHitbox(player, ref hitbox,
                                                 altHitboxSize * 2, altJumpVelo, 0.5f, altDashSpeed);
                }
            }
        }
Example #2
0
        public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
        {
            float jump = 11.7f;

            if (player.FindBuffIndex(buffID) >= 0)
            {
                jump = 14f;
            }
            ModPlayerFists.UseItemHitbox(player, ref hitbox, 22, jump, 0.5f, 12f);
        }
Example #3
0
 // Hitbox and special attack movement
 public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
 {
     if (!AltStats(player))
     {
         ModPlayerFists.UseItemHitbox(player, ref hitbox, fistHitboxSize, fistJumpVelo, 0.5f, 14f);
     }
     else
     {
         ModPlayerFists.UseItemHitbox(player, ref hitbox, altHitboxSize, altJumpVelo, 0.5f, altDashSpeed);
     }
 }
Example #4
0
 public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
 {
     if (AltStats(player) || player.FindBuffIndex(buffID) >= 0)
     {
         ModPlayerFists.UseItemHitbox(player, ref hitbox, altHitboxSize, altJumpVelo, 0.5f, 15f);
     }
     else
     {
         ModPlayerFists.UseItemHitbox(player, ref hitbox, fistHitboxSize, fistJumpVelo, 0.5f, 14f);
     }
 }
Example #5
0
        public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
        {
            ModPlayerFists mpf  = player.GetModPlayer <ModPlayerFists>();
            int            size = 18;
            float          jump = 10.5f;

            if (mpf.ComboEffectAbs == comboEffect)
            {
                size = (int)(size * 2.5f);
                jump = 11f;
            }
            ModPlayerFists.UseItemHitbox(player, ref hitbox, size, jump, 0.5f, 8f);
        }
Example #6
0
 public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
 {
     ModPlayerFists.UseItemHitbox(player, ref hitbox, 20, 9f, 0.5f);
 }
 public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
 {
     ModPlayerFists.UseItemHitbox(player, ref hitbox, 24, 11.7f, 0.5f, 8f); //10 blocks
 }
Example #8
0
 public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
 {
     // jump exactly 16 blocks high!
     ModPlayerFists.UseItemHitbox(player, ref hitbox, 26, 14.6f, 0.5f, 14f);
 }
Example #9
0
 public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
 {
     ModPlayerFists.UseItemHitbox(player, ref hitbox, 22, 11.7f, 3f * 0.25f, 12f, false);
 }
 public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
 {
     ModPlayerFists.UseItemHitbox(player, ref hitbox, fistHitboxSize, fistJumpVelo, 0.5f, 9f);
 }
Example #11
0
 public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
 {
     // jump exactly 10 blocks high
     ModPlayerFists.UseItemHitbox(player, ref hitbox, 22, 11.7f, 0.5f, 9f);
 }
Example #12
0
 public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
 {
     // jump exactly 6 blocks high!
     ModPlayerFists.UseItemHitbox(player, ref hitbox, 18, 9f);
 }