From 49fa17140860696da6f384bf2d4ef15a4687342b Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Wed, 6 Nov 2024 18:04:19 -0800 Subject: [PATCH 01/50] Implementation without cleanup Cleanup happens tomorrow, I'm exhausted --- CalPlayer/CalamityPlayer.cs | 1 + CalPlayer/CalamityPlayerOnHit.cs | 9 ++ Items/Weapons/Ranged/Megalodon.cs | 44 ++---- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 5 +- .../Mods.CalamityMod.Projectiles.Ranged.hjson | 1 + Projectiles/CalamityGlobalProjectile.cs | 3 + Projectiles/Ranged/MegalodonHoldout.cs | 131 ++++++++++++++++++ Projectiles/Ranged/MegalodonRocket.cs | 97 +++++++++++++ Projectiles/Ranged/MegalodonShot.cs | 82 +++++++++-- Sounds/Item/GunShotTiny.ogg | Bin 0 -> 8842 bytes 10 files changed, 332 insertions(+), 41 deletions(-) create mode 100644 Projectiles/Ranged/MegalodonHoldout.cs create mode 100644 Projectiles/Ranged/MegalodonRocket.cs create mode 100644 Sounds/Item/GunShotTiny.ogg diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index ed63716cbb..dfedef034e 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -249,6 +249,7 @@ namespace CalamityMod.CalPlayer public int giantShellPostHit = 0; public int tortShellPostHit = 0; public int RustyMedallionCooldown = 0; + public int sharkGunDamageScaling = 0; public int MiniSwamerCooldown = 0; public float SulphWaterPoisoningLevel; public float holyInfernoFadeIntensity; diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 3b40a4efca..9a15dec661 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -302,6 +302,15 @@ namespace CalamityMod.CalPlayer GungeonMusicSystem.GUN(); } + // Used by Megalodon, Seadragon & Voidragon, allows bullets to track their damage scaling + if (cgp.sharkBullets) + { + if (proj.numHits == 0) + { + sharkGunDamageScaling++; + } + } + if (cgp.fireBullet) { target.AddBuff(BuffID.OnFire3, 60); diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index 5f22951eac..a861ccf378 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Abyss; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Rarities; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -13,55 +14,38 @@ namespace CalamityMod.Items.Weapons.Ranged public class Megalodon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; - private bool fireWater = false; + public int sharkGunDamageScaling = 0; public override void SetDefaults() { Item.width = 72; Item.height = 32; - Item.damage = 41; + Item.damage = 58; Item.DamageType = DamageClass.Ranged; - Item.useTime = 6; - Item.useAnimation = 6; + Item.useTime = 3; + Item.useAnimation = 3; + Item.channel = true; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; - Item.UseSound = SoundID.Item11; + Item.UseSound = null; Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 16f; + Item.noUseGraphic = true; + Item.shoot = ModContent.ProjectileType(); + Item.shootSpeed = 2f; Item.useAmmo = AmmoID.Bullet; Item.Calamity().canFirePointBlankShots = true; } - - public override Vector2? HoldoutOffset() => new Vector2(-5, 0); - + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; + public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - // Reposition to the gun's tip + add some inaccuracy - Vector2 newPos = position + new Vector2(64f, player.direction * (Math.Abs(velocity.SafeNormalize(Vector2.Zero).X) < 0.02f ? -2f : -8f)).RotatedBy(velocity.ToRotation()); - Vector2 newVel = velocity.RotatedByRandom(MathHelper.ToRadians(5f)); - - // Fire either the bullet or the water jet, depending on cadence. - int projectileToFire = fireWater ? Item.shoot : type; - Projectile.NewProjectile(source, newPos, newVel, projectileToFire, (int)(damage * 0.8f), knockback, player.whoAmI); - - // Always fires a close range water blast. - // It goes in the same direction as the main shot but has a minor velocity variation to be less monotonous. - int waterRingDamage = (int)(damage * 0.5f); - float boostedKB = knockback + 7f; // Stronger guaranteed KB than Archerfish for mid-late Hardmode - Projectile.NewProjectile(source, newPos, newVel * Main.rand.NextFloat(0.5f, 0.6f), ModContent.ProjectileType(), waterRingDamage, boostedKB, player.whoAmI); - - // Swap between firing bullets and water jets each shot. - fireWater = !fireWater; + Projectile holdout = Projectile.NewProjectileDirect(source, position, velocity, Item.shoot, damage, knockback, player.whoAmI); + holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero); return false; } - - // Does not consume ammo when firing water jets. - public override bool CanConsumeAmmo(Item ammo, Player player) => !fireWater; - public override void AddRecipes() { CreateRecipe(). diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index b3a176770f..ee13237a73 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -742,8 +742,9 @@ Megalodon: { DisplayName: Megalodon Tooltip: ''' - Rapidly fires alternating bullets and pressurized water jets - Water jets consume no ammo + Loads a 30 round magazine of bullets and pressurized water streams that are rapidly unleashed + After firing, the gun unleashes a massive homing rocket before reloading + Rocket damage is based on how many shots hit ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson index aab4382c9a..cfc73b03ce 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson @@ -258,3 +258,4 @@ MegalodonShot.DisplayName: Megalodon Shot LeviatitanAberration.DisplayName: Leviatitan Aberration LeviatitanMeteor.DisplayName: Leviatitan Meteor LeviatitanExplosion.DisplayName: Leviatitan Explosion +MegalodonRocket.DisplayName: Megalodon Rocket diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 8db19e7b2b..014885f59c 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -92,6 +92,9 @@ namespace CalamityMod.Projectiles // Adds Brimstone flames to bullets, currently only used by Animosity public bool brimstoneBullets = false; + // Used by Megalodon, Seadragon & Voidragon, allows bullets to track their damage scaling + public bool sharkBullets = false; + // Adds fire to bullets, currently used by Thermocline Blaster public bool fireBullet = false; diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs new file mode 100644 index 0000000000..65c90f6e92 --- /dev/null +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -0,0 +1,131 @@ +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Particles; +using CalamityMod.Projectiles.BaseProjectiles; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using ReLogic.Utilities; +using Terraria; +using Terraria.Audio; +using Terraria.GameContent; +using Terraria.ModLoader; +using Terraria.ID; +using Steamworks; +using CalamityMod.Projectiles.Turret; +using Mono.Cecil; + +namespace CalamityMod.Projectiles.Ranged +{ + public class MegalodonHoldout : BaseGunHoldoutProjectile + { + public override int AssociatedItemID => ModContent.ItemType(); + public override float MaxOffsetLengthFromArm => 24f; + public override float OffsetXUpwards => -5f; + public override float BaseOffsetY => -1f; + public override float OffsetYDownwards => 5f; + + public int Time = 0; + public int shotCounter = 0; + public int framesBetweenShots = 0; + public bool swapType = false; + + public override void KillHoldoutLogic() + { + if (Owner.CantUseHoldout() || HeldItem.type != Owner.ActiveItem().type) + Projectile.Kill(); + } + + public override void HoldoutAI() + { + if (Time == 30) + { + Player Owner = Main.player[Projectile.owner]; + SoundEngine.PlaySound(SoundID.Item149, Projectile.Center); + if (Main.netMode != NetmodeID.Server) + { + string goreType = Main.rand.NextBool() ? "EmptyAnimosityShell" : "EmptyAnimosityShell2"; + Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center, Projectile.velocity.RotatedBy(2f * -Owner.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find(goreType).Type); + } + Owner.Calamity().sharkGunDamageScaling = 0; + } + if (Time >= 90) + { + if (framesBetweenShots == 0 && shotCounter <= 30) + { + Main.NewText(Owner.Calamity().sharkGunDamageScaling); + SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotTiny"); + SoundEngine.PlaySound(fire with { Volume = 0.3f , Pitch = 0.4f, PitchVariance = 0.1f, MaxInstances = -1}, Projectile.Center); + Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 19; + Particle sparker = new CritSpark(GunTipPosition, Vector2.Zero, Color.Gold, Color.LightGoldenrodYellow, 1.7f, 3, 0.5f, 3f); + GeneralParticleHandler.SpawnParticle(sparker); + if (!swapType) + { + Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); + CalamityGlobalProjectile cgp = scalingShot.Calamity(); + cgp.sharkBullets = true; + } + if (swapType) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + } + for (int i = 0; i <= 4; i++) + { + Dust dust = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(3) ? 303 : 244, (shootVelocity * Main.rand.NextFloat(0.2f, 1.1f)).RotatedByRandom(0.4f)); + dust.noGravity = true; + dust.scale = Main.rand.NextFloat(0.8f, 1.4f); + } + swapType = !swapType; + framesBetweenShots = 4; + OffsetLengthFromArm -= 3f; + shotCounter++; + } + if (framesBetweenShots > 0) + framesBetweenShots--; + } + Time++; + if (shotCounter == 30) + { + SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); + Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; + for (int i = 0; i <= 13; i++) + { + Dust dust = Dust.NewDustPerfect(GunTipPosition, 303, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.2f, 1.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); + dust.noGravity = false; + dust.color = Color.White; + + Dust dust2 = Dust.NewDustPerfect(GunTipPosition, 278, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.1f, 0.8f)); + dust2.noGravity = true; + dust2.scale = Main.rand.NextFloat(0.52f, 0.72f); + dust2.color = Color.Lerp(Color.Orange, Color.Gold, Main.rand.NextFloat(0f, 1f)); + } + for (int i = 0; i < 14; i++) + { + Particle smoke = new HeavySmokeParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.6f) * Main.rand.NextFloat(0.2f, 1.5f), Color.RoyalBlue, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); + GeneralParticleHandler.SpawnParticle(smoke); + } + float rotation = Projectile.velocity.ToRotation(); + Particle pulse = new DirectionalPulseRing(GunTipPosition, shootVelocity / 4, Color.Gray, new Vector2(1f, 2.5f), rotation, 0.03f, 0.3f, 20); + GeneralParticleHandler.SpawnParticle(pulse); + SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = 0.2f }, Projectile.Center); + Owner.Calamity().sharkGunDamageScaling++; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * (Owner.Calamity().sharkGunDamageScaling + 1), Projectile.knockBack, Projectile.owner); + Main.NewText(Owner.Calamity().sharkGunDamageScaling); + Projectile.Kill(); + } + } + public override bool PreDraw(ref Color lightColor) + { + if (Time < 2) + return false; + Texture2D texture = TextureAssets.Projectile[Type].Value; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); + Vector2 rotationPoint = texture.Size() * 0.5f; + SpriteEffects flipSprite = (Projectile.spriteDirection * Owner.gravDir == -1) ? SpriteEffects.FlipHorizontally : SpriteEffects.None; + + Main.EntitySpriteDraw(texture, drawPosition, null, Projectile.GetAlpha(lightColor), drawRotation, rotationPoint, Projectile.scale * Owner.gravDir, flipSprite); + return false; + } + } +} diff --git a/Projectiles/Ranged/MegalodonRocket.cs b/Projectiles/Ranged/MegalodonRocket.cs new file mode 100644 index 0000000000..c1fbe5f162 --- /dev/null +++ b/Projectiles/Ranged/MegalodonRocket.cs @@ -0,0 +1,97 @@ +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Dusts; +using CalamityMod.NPCs.SunkenSea; +using CalamityMod.Tiles.Abyss; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Ranged +{ + public class MegalodonRocket : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Ranged"; + public override string Texture => "CalamityMod/Projectiles/Ranged/FishronRPG"; + public override void SetStaticDefaults() + { + ProjectileID.Sets.CultistIsResistantTo[Type] = true; + ProjectileID.Sets.TrailCacheLength[Type] = 4; + ProjectileID.Sets.TrailingMode[Type] = 0; + } + + public override void SetDefaults() + { + Projectile.width = 14; + Projectile.height = 14; + Projectile.aiStyle = ProjAIStyleID.Arrow; + Projectile.friendly = true; + Projectile.DamageType = DamageClass.Ranged; + Projectile.penetrate = 1; + Projectile.extraUpdates = 2; + Projectile.timeLeft = 600; + AIType = ProjectileID.Bullet; + } + + public override void AI() + { + Lighting.AddLight(Projectile.Center, 0.3f, 0.5f, 0.1f); + if (Projectile.timeLeft <= 597) + { + AltSparkParticle spark = new AltSparkParticle(Projectile.Center, -Projectile.velocity * 0.05f, false, 15, 1f, Color.Gold * 0.1f); + GeneralParticleHandler.SpawnParticle(spark); + if (Main.rand.NextBool(3)) + { + SparkParticle spark2 = new SparkParticle(Projectile.Center + Main.rand.NextVector2Circular(15, 15) - Projectile.velocity.SafeNormalize(Vector2.UnitX) * 10, -Projectile.velocity * Main.rand.NextFloat(0.5f, 1.5f), false, Main.rand.Next(9, 12 + 1), 0.4f, Color.OrangeRed); + GeneralParticleHandler.SpawnParticle(spark2); + } + int smokyFire2 = Dust.NewDust(Projectile.Center, Projectile.width, Projectile.height, DustID.Smoke, 0f, 0f, 100, default, 0.5f); + Main.dust[smokyFire2].scale = 0.1f + (float)Main.rand.Next(5) * 0.1f; + Main.dust[smokyFire2].fadeIn = 1.5f + (float)Main.rand.Next(5) * 0.1f; + Main.dust[smokyFire2].noGravity = true; + Main.dust[smokyFire2].position = Projectile.Center + new Vector2(0f, (float)(-(float)Projectile.height / 2)).RotatedBy((double)Projectile.rotation, default) * 1.1f; + smokyFire2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Torch, 0f, 0f, 100, default, 1f); + Main.dust[smokyFire2].scale = 1f + (float)Main.rand.Next(5) * 0.1f; + Main.dust[smokyFire2].noGravity = true; + Main.dust[smokyFire2].position = Projectile.Center + new Vector2(0f, (float)(-(float)Projectile.height / 2 - 6)).RotatedBy((double)Projectile.rotation, default) * 1.1f; + } + CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 450f, 12f, 20f); + } + + public override bool PreDraw(ref Color lightColor) + { + CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor, 1); + return false; + } + + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 240); + } + + public override void OnKill(int timeLeft) + { + SoundEngine.PlaySound(AbyssGravel.MineSound, Projectile.position); + SoundEngine.PlaySound(GiantClam.SlamSound, Projectile.position); + SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode.WithPitchOffset(0.5f), Projectile.position); + SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Item/FlakKrakenShoot") with { Volume = 0.6f , Pitch = 0.8f }, Projectile.position); + + GeneralParticleHandler.SpawnParticle(new CustomPulse(Projectile.Center, Vector2.Zero, Color.Blue, "CalamityMod/Particles/LargeBloom", Vector2.One, 0f, 1f, 0f, 25)); + GeneralParticleHandler.SpawnParticle(new CustomPulse(Projectile.Center, Vector2.Zero, Color.White, "CalamityMod/Particles/LargeBloom", Vector2.One, 0f, 0.5f, 0f, 15)); + + for (int i = 0; i < 8; i++) GeneralParticleHandler.SpawnParticle(new BloodParticle2(Projectile.Center, new Vector2(Main.rand.NextFloat(6, 12), 0).RotatedBy(Main.rand.NextFloat(MathHelper.TwoPi)), 12, Main.rand.NextFloat(0.3f, 0.4f), Color.DodgerBlue)); + Particle pulse = new CustomPulse(Projectile.Center, Vector2.Zero, Color.RoyalBlue * 0.5f, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(-10f, 10f), 0f, 0.1f, 25); + GeneralParticleHandler.SpawnParticle(pulse); + Particle pulse2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.CornflowerBlue, "CalamityMod/Particles/FlameExplosion2", Vector2.One, Main.rand.NextFloat(-10f, 10f), 0f, 0.07f, 25); + GeneralParticleHandler.SpawnParticle(pulse2); + for (int i = 0; i < 10; i++) + { + Vector2 randVel = new Vector2(15, 15).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.5f); + Particle smoke = new HeavySmokeParticle(Projectile.Center + randVel, randVel, new Color(57, 46, 115) * 0.9f, Main.rand.Next(25, 35 + 1), Main.rand.NextFloat(0.6f, 1.5f), 0.4f); + GeneralParticleHandler.SpawnParticle(smoke); + } + } + } +} diff --git a/Projectiles/Ranged/MegalodonShot.cs b/Projectiles/Ranged/MegalodonShot.cs index 9ecee22bea..e92dd26a51 100644 --- a/Projectiles/Ranged/MegalodonShot.cs +++ b/Projectiles/Ranged/MegalodonShot.cs @@ -1,7 +1,9 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; +using CalamityMod.Particles; using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; @@ -31,22 +33,53 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { // Bubbles - if (Main.rand.NextBool()) + if (Main.rand.NextBool(2)) { Gore bubble = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * 0.2f + Main.rand.NextVector2Circular(1f, 1f), 411); bubble.timeLeft = 9 + Main.rand.Next(7); bubble.scale = Main.rand.NextFloat(0.6f, 1f); bubble.type = Main.rand.NextBool(3) ? 412 : 411; } - - // Water trail - for (int i = 0; i < 6; i++) + if (Projectile.timeLeft <= 596) { - Dust water = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, DustID.Wet, 0f, 0f, 100); - water.noGravity = true; - water.velocity = Projectile.velocity * 0.5f; + Particle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 2, -Projectile.velocity * 0.05f, false, 10, 1f, Color.RoyalBlue * 0.5f); + GeneralParticleHandler.SpawnParticle(spark); + if (Main.rand.NextBool(3)) + { + Color smokeColor = Color.MediumBlue; + Particle smoke = new HeavySmokeParticle(Projectile.Center, Projectile.velocity * Main.rand.NextFloat(-0.2f, -0.6f), smokeColor, 30, Main.rand.NextFloat(0.6f, 0.8f), 0.3f, Main.rand.NextFloat(-0.2f, 0.2f), false, required: true); + GeneralParticleHandler.SpawnParticle(smoke); + } } } + public override bool OnTileCollide(Vector2 oldVelocity) + { + Collision.HitTiles(Projectile.Center, Projectile.velocity, Projectile.width, Projectile.height); + for (int i = 0; i < 4; ++i) + { + int bloodLifetime = Main.rand.Next(22, 25); + float bloodScale = Main.rand.NextFloat(0.6f, 0.8f); + Color bloodColor = Color.Lerp(Color.RoyalBlue * 0.7f, Color.DarkBlue, Main.rand.NextFloat()); + bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); + + if (Main.rand.NextBool(20)) + bloodScale *= 2f; + + float randomSpeedMultiplier = Main.rand.NextFloat(1.25f, 2.25f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; + bloodVelocity.Y -= 5f; + BloodParticle blood = new BloodParticle(Projectile.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } + for (int i = 0; i <= 2; i++) + { + LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 2.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); + GeneralParticleHandler.SpawnParticle(spark); + LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 2.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); + GeneralParticleHandler.SpawnParticle(spark2); + } + return true; + } public override void OnKill(int timeLeft) { @@ -59,7 +92,38 @@ namespace CalamityMod.Projectiles.Ranged bubble.type = Main.rand.NextBool(3) ? 412 : 411; } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 240); - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 240); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 60); + for (int i = 0; i < 4; ++i) + { + int bloodLifetime = Main.rand.Next(22, 25); + float bloodScale = Main.rand.NextFloat(0.6f, 0.8f); + Color bloodColor = Color.Lerp(Color.RoyalBlue * 0.7f, Color.DarkBlue, Main.rand.NextFloat()); + bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); + + if (Main.rand.NextBool(20)) + bloodScale *= 2f; + + float randomSpeedMultiplier = Main.rand.NextFloat(1.25f, 2.25f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; + bloodVelocity.Y -= 5f; + BloodParticle blood = new BloodParticle(Projectile.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } + for (int i = 0; i <= 2; i++) + { + LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); + GeneralParticleHandler.SpawnParticle(spark); + LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); + GeneralParticleHandler.SpawnParticle(spark2); + } + if (Projectile.numHits == 0) + { + Player Owner = Main.player[Projectile.owner]; + Owner.Calamity().sharkGunDamageScaling++; + } + } + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 60); } } diff --git a/Sounds/Item/GunShotTiny.ogg b/Sounds/Item/GunShotTiny.ogg new file mode 100644 index 0000000000000000000000000000000000000000..f7fc4b89c17bf7e31da0e01981d388a1faf14d95 GIT binary patch literal 8842 zcmai22|Sct+rJ0dk|f!(j4eh+Mij~(GS;RfgY4^AVnnu*osgI;V_$~E*s`Rulx*2$ z7osdB6ct5$XLz3XeZKem{oe2X-E-#L=eo{y&b9o{b=|jtgTrNr3i|89>F;;KjfK=< zd@yf!PirSUWe9emWS{b0aG&`p%z!fUUl(O23_QJ}jkP{Q`Y9Js3gh!drs+;*B7P1%fPv5zLA9+6WRMN6a^caFNn$k%~$oM740*#GqRLZs0Pu z#~_FX3KC<8%bVAB?vZ!k6pi!DmUq&ZD}>WUUwSXk@ao428@Gb00-Re9LWKU1$pHvh zNadnH7#oJtSVszkbAl#<$Fp6aFx`_;{84r=qjWnwL|6J#exkm@r$>2l3ZKQQ`qU00 zs|L`zsG+MirS-Jt0r(#Ih4jA~hCMytU@vO4T(&G~^c3-th=LSPAZlMNI1~ibgtQ*8 zX;-jyR`7K93mdFSTskV-e_G@66+I(x-847$wj1%jIpQ5?k`iY6G|=Q}nCWPk`9_!( zXZTX|69eeT^v#Ywrum@Y4Z@)zzDZ_O3>|D zxE%sMRl!KKc*Xe%;-R7odnhhJBKA5dG0kNDp^y*CeD*=YcoR4r~A91}~o|!n8 zUBs65_GQ$SG|{@El(an$y7X{;0KP=LNo~na?IYrQw3&#c{hlvt8XdW40E}@hq%*g2 zSphz$0U}+|*flWMq>niNsE!Tvq6lfC)pb|)<^2^FMc31NUdqpa8BybDxH<-N(EDYZ zzS7M=8T-%hQ2~Cl8s%)w2!;p7(OROnj;Q zMI5Pm7<-aLz@QPNeMAAL!foSKX}R`55}xAu22lu5@lVHn74AL4+y9Td_Z!b8RuORb zOCv9zRy4X|WbEx~l6-TbHq3nV=JZJ5^hm4)NBDmR*1wPg0nmi*VUl1S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}IT>Kjm?~2C@@ZUaiGmashW12-Xyb`9B%~AvFSf8CX+|0z~pZdL! z2*cXazovG%1X)s5-h=II92X4~3$ga*gb=oW|z zvTxVE*?)NU@XL_2maF*P2&(xD&Fg}kJ>6J4reHP8AmIkz1sZZkmSK$1LZvKO;cUGY zzRDrO`f@_kic;+Wc!w#d>&Zt$F4Y&ShecVS6m2I-Qb-48hTpycNzl$7c zjoSWUT=k$V*0uhOPfrDb-+@@DY>l@mm+d~?oP2UHcV1`1m28*36>)phQ0)|K(WrrT zLg%1N%UP1q^0-c@r``*TkJt#Qa1X0i<%2)fI;lg)b0dxM>FxU; zR%j+9Kw1D7<--a!_<#A-vX6TA;9?($X1GGT)!0WJ8A z-6v%<2|U%xJG;Ai_-jV|sA0%;*CIAXIn@95Ykyx;({^PtaY Date: Thu, 7 Nov 2024 17:05:07 -0800 Subject: [PATCH 02/50] Code Cleanup --- Projectiles/Ranged/MegalodonHoldout.cs | 68 ++++++++++++++++++-------- Projectiles/Ranged/MegalodonRocket.cs | 4 +- Projectiles/Ranged/MegalodonShot.cs | 53 +++++++++++++++++--- 3 files changed, 96 insertions(+), 29 deletions(-) diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs index 65c90f6e92..e92fa813ca 100644 --- a/Projectiles/Ranged/MegalodonHoldout.cs +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -31,12 +31,14 @@ namespace CalamityMod.Projectiles.Ranged public override void KillHoldoutLogic() { + //If the player is dead, kill the holdout. if (Owner.CantUseHoldout() || HeldItem.type != Owner.ActiveItem().type) Projectile.Kill(); } public override void HoldoutAI() { + //Pause to give the effect of reloading if (Time == 30) { Player Owner = Main.player[Projectile.owner]; @@ -50,15 +52,32 @@ namespace CalamityMod.Projectiles.Ranged } if (Time >= 90) { - if (framesBetweenShots == 0 && shotCounter <= 30) + if (framesBetweenShots == 0 && shotCounter <= 31) { - Main.NewText(Owner.Calamity().sharkGunDamageScaling); - SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotTiny"); - SoundEngine.PlaySound(fire with { Volume = 0.3f , Pitch = 0.4f, PitchVariance = 0.1f, MaxInstances = -1}, Projectile.Center); - Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 19; + #region Debug Text Display + //Main.NewText(shotCounter); + //Main.NewText(Owner.Calamity().sharkGunDamageScaling); + #endregion + #region Visuals and Sounds + SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotTiny"); + SoundEngine.PlaySound(fire with { Volume = 0.3f, Pitch = 0.4f, PitchVariance = 0.1f, MaxInstances = -1 }, Projectile.Center); Particle sparker = new CritSpark(GunTipPosition, Vector2.Zero, Color.Gold, Color.LightGoldenrodYellow, 1.7f, 3, 0.5f, 3f); GeneralParticleHandler.SpawnParticle(sparker); + for (int i = 0; i <= 4; i++) + { + Dust dust = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(3) ? 303 : 244, (shootVelocity * Main.rand.NextFloat(0.2f, 1.1f)).RotatedByRandom(0.4f)); + dust.noGravity = true; + dust.scale = Main.rand.NextFloat(0.8f, 1.4f); + } + #endregion + + //How many frames between firing projectiles, and how far the gun moves backward to give the effect of recoil. Change this number to edit fire rate + framesBetweenShots = 4; + OffsetLengthFromArm -= 3f; + //Here we detect which ammo the bullets will use + Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + //Alternate between shooting bullets and water streams. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier if (!swapType) { Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); @@ -69,25 +88,19 @@ namespace CalamityMod.Projectiles.Ranged { Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); } - for (int i = 0; i <= 4; i++) - { - Dust dust = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(3) ? 303 : 244, (shootVelocity * Main.rand.NextFloat(0.2f, 1.1f)).RotatedByRandom(0.4f)); - dust.noGravity = true; - dust.scale = Main.rand.NextFloat(0.8f, 1.4f); - } swapType = !swapType; - framesBetweenShots = 4; - OffsetLengthFromArm -= 3f; shotCounter++; } if (framesBetweenShots > 0) framesBetweenShots--; } - Time++; - if (shotCounter == 30) + if (shotCounter == 31) { - SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; + //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage + #region Visuals and Sounds + SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); + SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = 0.2f }, Projectile.Center); for (int i = 0; i <= 13; i++) { Dust dust = Dust.NewDustPerfect(GunTipPosition, 303, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.2f, 1.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); @@ -107,17 +120,32 @@ namespace CalamityMod.Projectiles.Ranged float rotation = Projectile.velocity.ToRotation(); Particle pulse = new DirectionalPulseRing(GunTipPosition, shootVelocity / 4, Color.Gray, new Vector2(1f, 2.5f), rotation, 0.03f, 0.3f, 20); GeneralParticleHandler.SpawnParticle(pulse); - SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = 0.2f }, Projectile.Center); - Owner.Calamity().sharkGunDamageScaling++; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * (Owner.Calamity().sharkGunDamageScaling + 1), Projectile.knockBack, Projectile.owner); + //Extra sound and muzzle flash if the scaling is at max + if (Owner.Calamity().sharkGunDamageScaling == 30) + { + SoundStyle fireperfect = new("CalamityMod/Sounds/Item/ShadowboltReflect"); + SoundEngine.PlaySound(fireperfect with { Volume = 0.6f, Pitch = 0f }, GunTipPosition); + GenericSparkle sparker = new GenericSparkle(GunTipPosition, Vector2.Zero, Color.DarkGoldenrod, Color.Gold, Main.rand.NextFloat(1.1f, 1.8f), 10, 2f, 2.68f); + GeneralParticleHandler.SpawnParticle(sparker); + } + #endregion + + if(Owner.Calamity().sharkGunDamageScaling == 0) + { + Owner.Calamity().sharkGunDamageScaling++; + } + //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); Main.NewText(Owner.Calamity().sharkGunDamageScaling); + //After firing the rocket, kill the projectile to allow left click to be held down Projectile.Kill(); } + Time++; } public override bool PreDraw(ref Color lightColor) { if (Time < 2) - return false; + return false; Texture2D texture = TextureAssets.Projectile[Type].Value; Vector2 drawPosition = Projectile.Center - Main.screenPosition; float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); diff --git a/Projectiles/Ranged/MegalodonRocket.cs b/Projectiles/Ranged/MegalodonRocket.cs index c1fbe5f162..2faf25c265 100644 --- a/Projectiles/Ranged/MegalodonRocket.cs +++ b/Projectiles/Ranged/MegalodonRocket.cs @@ -15,6 +15,8 @@ namespace CalamityMod.Projectiles.Ranged { public new string LocalizationCategory => "Projectiles.Ranged"; public override string Texture => "CalamityMod/Projectiles/Ranged/FishronRPG"; + + public static int Lifetime = 600; public override void SetStaticDefaults() { ProjectileID.Sets.CultistIsResistantTo[Type] = true; @@ -38,7 +40,7 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { Lighting.AddLight(Projectile.Center, 0.3f, 0.5f, 0.1f); - if (Projectile.timeLeft <= 597) + if (Projectile.timeLeft <= Lifetime - 3) { AltSparkParticle spark = new AltSparkParticle(Projectile.Center, -Projectile.velocity * 0.05f, false, 15, 1f, Color.Gold * 0.1f); GeneralParticleHandler.SpawnParticle(spark); diff --git a/Projectiles/Ranged/MegalodonShot.cs b/Projectiles/Ranged/MegalodonShot.cs index e92dd26a51..ab778f3ad5 100644 --- a/Projectiles/Ranged/MegalodonShot.cs +++ b/Projectiles/Ranged/MegalodonShot.cs @@ -1,4 +1,5 @@ -using CalamityMod.Buffs.DamageOverTime; +using System.Composition.Hosting.Core; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Particles; using Microsoft.Xna.Framework; @@ -14,6 +15,8 @@ namespace CalamityMod.Projectiles.Ranged public new string LocalizationCategory => "Projectiles.Ranged"; public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + public static int Lifetime = 600; + public override void SetDefaults() { Projectile.width = 8; @@ -23,7 +26,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.ignoreWater = true; Projectile.penetrate = 2; Projectile.alpha = 255; - Projectile.timeLeft = 600; + Projectile.timeLeft = Lifetime; Projectile.MaxUpdates = 3; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = -1; @@ -32,7 +35,6 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { - // Bubbles if (Main.rand.NextBool(2)) { Gore bubble = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * 0.2f + Main.rand.NextVector2Circular(1f, 1f), 411); @@ -40,7 +42,7 @@ namespace CalamityMod.Projectiles.Ranged bubble.scale = Main.rand.NextFloat(0.6f, 1f); bubble.type = Main.rand.NextBool(3) ? 412 : 411; } - if (Projectile.timeLeft <= 596) + if (Projectile.timeLeft <= Lifetime - 4) { Particle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 2, -Projectile.velocity * 0.05f, false, 10, 1f, Color.RoyalBlue * 0.5f); GeneralParticleHandler.SpawnParticle(spark); @@ -52,6 +54,7 @@ namespace CalamityMod.Projectiles.Ranged } } } + //We use TileCollide and Onhit instead of OnKill due to it having pierce public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(Projectile.Center, Projectile.velocity, Projectile.width, Projectile.height); @@ -95,6 +98,12 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), 60); + //Only increase damage of the rocket on the first hit + if (Projectile.numHits == 0) + { + Player Owner = Main.player[Projectile.owner]; + Owner.Calamity().sharkGunDamageScaling++; + } for (int i = 0; i < 4; ++i) { int bloodLifetime = Main.rand.Next(22, 25); @@ -118,12 +127,40 @@ namespace CalamityMod.Projectiles.Ranged LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); GeneralParticleHandler.SpawnParticle(spark2); } - if (Projectile.numHits == 0) + } + public override void OnHitPlayer(Player target, Player.HurtInfo info) + { { - Player Owner = Main.player[Projectile.owner]; - Owner.Calamity().sharkGunDamageScaling++; + if (Projectile.numHits == 0) + { + Player Owner = Main.player[Projectile.owner]; + Owner.Calamity().sharkGunDamageScaling++; + } + target.AddBuff(ModContent.BuffType(), 60); + for (int i = 0; i < 4; ++i) + { + int bloodLifetime = Main.rand.Next(22, 25); + float bloodScale = Main.rand.NextFloat(0.6f, 0.8f); + Color bloodColor = Color.Lerp(Color.RoyalBlue * 0.7f, Color.DarkBlue, Main.rand.NextFloat()); + bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); + + if (Main.rand.NextBool(20)) + bloodScale *= 2f; + + float randomSpeedMultiplier = Main.rand.NextFloat(1.25f, 2.25f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; + bloodVelocity.Y -= 5f; + BloodParticle blood = new BloodParticle(Projectile.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } + for (int i = 0; i <= 2; i++) + { + LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); + GeneralParticleHandler.SpawnParticle(spark); + LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); + GeneralParticleHandler.SpawnParticle(spark2); + } } } - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 60); } } From 249b37811f8476c8308ba5c246489293a77f69f4 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sat, 9 Nov 2024 11:59:14 -0800 Subject: [PATCH 03/50] GFB Rocket sound --- Projectiles/Ranged/MegalodonHoldout.cs | 7 ++++--- Projectiles/Ranged/MegalodonRocket.cs | 15 +++++++++++---- Sounds/Item/MegalodonMissileMax.ogg | Bin 0 -> 55095 bytes 3 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 Sounds/Item/MegalodonMissileMax.ogg diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs index e92fa813ca..c7b3ac4b06 100644 --- a/Projectiles/Ranged/MegalodonHoldout.cs +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -97,7 +97,6 @@ namespace CalamityMod.Projectiles.Ranged if (shotCounter == 31) { Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; - //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = 0.2f }, Projectile.Center); @@ -130,13 +129,15 @@ namespace CalamityMod.Projectiles.Ranged } #endregion - if(Owner.Calamity().sharkGunDamageScaling == 0) + //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage + if (Owner.Calamity().sharkGunDamageScaling == 0) { Owner.Calamity().sharkGunDamageScaling++; } + //Debug text + Main.NewText(Owner.Calamity().sharkGunDamageScaling); //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); - Main.NewText(Owner.Calamity().sharkGunDamageScaling); //After firing the rocket, kill the projectile to allow left click to be held down Projectile.Kill(); } diff --git a/Projectiles/Ranged/MegalodonRocket.cs b/Projectiles/Ranged/MegalodonRocket.cs index 2faf25c265..185fdb9ba3 100644 --- a/Projectiles/Ranged/MegalodonRocket.cs +++ b/Projectiles/Ranged/MegalodonRocket.cs @@ -75,10 +75,17 @@ namespace CalamityMod.Projectiles.Ranged public override void OnKill(int timeLeft) { - SoundEngine.PlaySound(AbyssGravel.MineSound, Projectile.position); - SoundEngine.PlaySound(GiantClam.SlamSound, Projectile.position); - SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode.WithPitchOffset(0.5f), Projectile.position); - SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Item/FlakKrakenShoot") with { Volume = 0.6f , Pitch = 0.8f }, Projectile.position); + if (Main.zenithWorld) + { + SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Item/MegalodonMissileMax") with { Volume = 1.5f }, Projectile.position); + } + else + { + SoundEngine.PlaySound(AbyssGravel.MineSound, Projectile.position); + SoundEngine.PlaySound(GiantClam.SlamSound, Projectile.position); + SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode.WithPitchOffset(0.5f), Projectile.position); + SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Item/FlakKrakenShoot") with { Volume = 0.6f, Pitch = 0.8f }, Projectile.position); + } GeneralParticleHandler.SpawnParticle(new CustomPulse(Projectile.Center, Vector2.Zero, Color.Blue, "CalamityMod/Particles/LargeBloom", Vector2.One, 0f, 1f, 0f, 25)); GeneralParticleHandler.SpawnParticle(new CustomPulse(Projectile.Center, Vector2.Zero, Color.White, "CalamityMod/Particles/LargeBloom", Vector2.One, 0f, 0.5f, 0f, 15)); diff --git a/Sounds/Item/MegalodonMissileMax.ogg b/Sounds/Item/MegalodonMissileMax.ogg new file mode 100644 index 0000000000000000000000000000000000000000..f9c5f95d43b9df7e876de03428b35ab003b9711e GIT binary patch literal 55095 zcmce;dt6#)x-hyxKtLo51+t_j1w?~rEEsKxO}YVr02%@a7L8^QHSy9UnrND4w>^lc zh?uIuYcvJCA!@2Nw$`S5dr!=*8ZT)(O-D`B8q;ahPP*HfuV-?WNoV%u{C?ke{yJ|K z%lG=c>wWI;v)+{hM~)-`NZ|MM>g&%kyx3QK5!(@`j-N2*p4_ZLiu-==vhMRVGlDp< zIr5)rb0h*T?VY*y9|2D+PyTyi`8)#^1NYG97UV=7IB|sjTCOqq=>&8+J(?TM<-Wv? zp|dsFS;d*T$Bxh?$4=#*IDYJC_OYUHEIf_?|6a>DcBDAtNcP_1V_77)d^Gpi@e_YI zm3`u5?(t)LV|md*aAi)$v8>m!PyFFn#?kD(Nyp)?vS&3^xbal>u`GB8EnDvX7snzn)u^L(eHHDmWSU!V8(N`r#AV+4SSbUdui9`*`}ZrpRZ|=hl~A2lS8(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Gn5Z@{g`F<*FPPs`>QPLqq~#y9Kq3K=E)!R^TM7_(~>0_<&y2e zfW+f$KA;soSjUx|;dWc$*fp0E#6?Z#tPb$js!_g`gFxavA5`r>)2zi~3bpIHJbi&p2Ui8nfB#Y|4?718C=+ux$9 zy+8+c&cqyQVC8w~3INm}n(ljd%YB+^V`XJhz==iUkoSc0h>AkW9#N{dUk7#oA#p)Y zGA+eX@t5U4sc=ieqr!xTUf?L!>J#`0n)$%WsV`3CvZ_%W<~4|_0*z1or32r^-(-jj z8o;Ays!?=W6h(EbbjVG8`ipaN*74=~T$V##zjCU8C3g$#_*M7Ez344~XbBxmapcCj k7w!mH4jA{C@aonVk%UGpZFTF`TZvf2_6flMt_}Qu0m%Wp=>Px# literal 0 HcmV?d00001 From 8a7bddda078de2e2d004b463687ffde48eb4a161 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sat, 9 Nov 2024 12:23:15 -0800 Subject: [PATCH 04/50] Megalodon rocket delay --- Projectiles/Ranged/MegalodonHoldout.cs | 88 ++++++++++++++------------ 1 file changed, 49 insertions(+), 39 deletions(-) diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs index e92fa813ca..a76ddd41bd 100644 --- a/Projectiles/Ranged/MegalodonHoldout.cs +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -90,55 +90,65 @@ namespace CalamityMod.Projectiles.Ranged } swapType = !swapType; shotCounter++; + if (shotCounter == 30) + framesBetweenShots = 15; } if (framesBetweenShots > 0) framesBetweenShots--; } - if (shotCounter == 31) + if (shotCounter == 30 && framesBetweenShots == 0) { - Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; - //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage - #region Visuals and Sounds - SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); - SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = 0.2f }, Projectile.Center); - for (int i = 0; i <= 13; i++) + if (framesBetweenShots == 0) { - Dust dust = Dust.NewDustPerfect(GunTipPosition, 303, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.2f, 1.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); - dust.noGravity = false; - dust.color = Color.White; + Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; + //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage + #region Visuals and Sounds + SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); + SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = 0.2f }, Projectile.Center); + for (int i = 0; i <= 13; i++) + { + Dust dust = Dust.NewDustPerfect(GunTipPosition, 303, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.2f, 1.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); + dust.noGravity = false; + dust.color = Color.White; - Dust dust2 = Dust.NewDustPerfect(GunTipPosition, 278, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.1f, 0.8f)); - dust2.noGravity = true; - dust2.scale = Main.rand.NextFloat(0.52f, 0.72f); - dust2.color = Color.Lerp(Color.Orange, Color.Gold, Main.rand.NextFloat(0f, 1f)); - } - for (int i = 0; i < 14; i++) - { - Particle smoke = new HeavySmokeParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.6f) * Main.rand.NextFloat(0.2f, 1.5f), Color.RoyalBlue, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); - GeneralParticleHandler.SpawnParticle(smoke); - } - float rotation = Projectile.velocity.ToRotation(); - Particle pulse = new DirectionalPulseRing(GunTipPosition, shootVelocity / 4, Color.Gray, new Vector2(1f, 2.5f), rotation, 0.03f, 0.3f, 20); - GeneralParticleHandler.SpawnParticle(pulse); - //Extra sound and muzzle flash if the scaling is at max - if (Owner.Calamity().sharkGunDamageScaling == 30) - { - SoundStyle fireperfect = new("CalamityMod/Sounds/Item/ShadowboltReflect"); - SoundEngine.PlaySound(fireperfect with { Volume = 0.6f, Pitch = 0f }, GunTipPosition); - GenericSparkle sparker = new GenericSparkle(GunTipPosition, Vector2.Zero, Color.DarkGoldenrod, Color.Gold, Main.rand.NextFloat(1.1f, 1.8f), 10, 2f, 2.68f); - GeneralParticleHandler.SpawnParticle(sparker); - } - #endregion + Dust dust2 = Dust.NewDustPerfect(GunTipPosition, 278, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.1f, 0.8f)); + dust2.noGravity = true; + dust2.scale = Main.rand.NextFloat(0.52f, 0.72f); + dust2.color = Color.Lerp(Color.Orange, Color.Gold, Main.rand.NextFloat(0f, 1f)); + } + for (int i = 0; i < 14; i++) + { + Particle smoke = new HeavySmokeParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.6f) * Main.rand.NextFloat(0.2f, 1.5f), Color.RoyalBlue, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); + GeneralParticleHandler.SpawnParticle(smoke); + } + float rotation = Projectile.velocity.ToRotation(); + Particle pulse = new DirectionalPulseRing(GunTipPosition, shootVelocity / 4, Color.Gray, new Vector2(1f, 2.5f), rotation, 0.03f, 0.3f, 20); + GeneralParticleHandler.SpawnParticle(pulse); + //Extra sound and muzzle flash if the scaling is at max + if (Owner.Calamity().sharkGunDamageScaling == 30) + { + SoundStyle fireperfect = new("CalamityMod/Sounds/Item/ShadowboltReflect"); + SoundEngine.PlaySound(fireperfect with { Volume = 0.6f, Pitch = 0f }, GunTipPosition); + GenericSparkle sparker = new GenericSparkle(GunTipPosition, Vector2.Zero, Color.DarkGoldenrod, Color.Gold, Main.rand.NextFloat(1.1f, 1.8f), 10, 2f, 2.68f); + GeneralParticleHandler.SpawnParticle(sparker); + } + #endregion - if(Owner.Calamity().sharkGunDamageScaling == 0) + if (Owner.Calamity().sharkGunDamageScaling == 0) + { + Owner.Calamity().sharkGunDamageScaling++; + } + //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); + Main.NewText(Owner.Calamity().sharkGunDamageScaling); + + //After firing the rocket, kill the projectile to allow left click to be held down + Projectile.Kill(); + } + else { - Owner.Calamity().sharkGunDamageScaling++; + framesBetweenShots--; } - //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); - Main.NewText(Owner.Calamity().sharkGunDamageScaling); - //After firing the rocket, kill the projectile to allow left click to be held down - Projectile.Kill(); } Time++; } From 2aa0e87f7f58358b9c311aefed53192237a917fd Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sat, 9 Nov 2024 13:21:02 -0800 Subject: [PATCH 05/50] Final touches --- Projectiles/Ranged/MegalodonHoldout.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs index a76ddd41bd..6b7cb8ae3f 100644 --- a/Projectiles/Ranged/MegalodonHoldout.cs +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -91,7 +91,7 @@ namespace CalamityMod.Projectiles.Ranged swapType = !swapType; shotCounter++; if (shotCounter == 30) - framesBetweenShots = 15; + framesBetweenShots = 18; } if (framesBetweenShots > 0) framesBetweenShots--; From 64b97affeb522780eaa2e79b83b40e291f6fec3c Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sat, 9 Nov 2024 21:03:15 -0800 Subject: [PATCH 06/50] Megalodon Resprite + Seadragon Start --- Gores/MegalodonCasing.png | Bin 0 -> 226 bytes Items/Weapons/Ranged/Megalodon.cs | 4 +- Items/Weapons/Ranged/Megalodon.png | Bin 1241 -> 1927 bytes Items/Weapons/Ranged/Seadragon.cs | 64 ++----- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- .../Mods.CalamityMod.Projectiles.Ranged.hjson | 2 +- Projectiles/Ranged/BlahajBlast.cs | 178 ++++++++++++++++++ Projectiles/Ranged/MegalodonHoldout.cs | 13 +- Projectiles/Ranged/MegalodonRocket.cs | 2 +- Projectiles/Ranged/SeaDragonMuzzleBlast.cs | 77 -------- Projectiles/Ranged/SeadragonHoldout.cs | 128 +++++++++++++ 11 files changed, 331 insertions(+), 139 deletions(-) create mode 100644 Gores/MegalodonCasing.png create mode 100644 Projectiles/Ranged/BlahajBlast.cs delete mode 100644 Projectiles/Ranged/SeaDragonMuzzleBlast.cs create mode 100644 Projectiles/Ranged/SeadragonHoldout.cs diff --git a/Gores/MegalodonCasing.png b/Gores/MegalodonCasing.png new file mode 100644 index 0000000000000000000000000000000000000000..642d5003723d8ecadc35797f404cab9fb7437358 GIT binary patch literal 226 zcmeAS@N?(olHy`uVBq!ia0vp^96-#&!3HGb=lz)rq!^2X+?^QKos)S97kRokhG+yQ&$%mcih=36{GNaOX%39++QP~mX-uC#Fo?}Kcgv-E!-0$1 z<_EuAd3yceBNpF;FI%p%uQu6!jg`Bm>L-g&{Ql2!KEfu9>khcQ>d`PXP=I>0# zmc$1C7`C3oM=iC9OBc2XHN9wP;N;<9X#1$nyUVm>3($7H)CkWsUtb0-ARFXv5V#aP P8AN%y`njxgN@xNAVy8+} literal 0 HcmV?d00001 diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index a861ccf378..d9ef16c61d 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.width = 72; - Item.height = 32; + Item.width = 92; + Item.height = 42; Item.damage = 58; Item.DamageType = DamageClass.Ranged; Item.useTime = 3; diff --git a/Items/Weapons/Ranged/Megalodon.png b/Items/Weapons/Ranged/Megalodon.png index 85bd1f10b941537807711b54612ca4b57c40501a..bac53caf2496c8d7ee84e1a1f46b5e78157c24b6 100644 GIT binary patch literal 1927 zcmV;22YC32P)Px#1ZP1_K>z@;j|==^1pojC7fD1xRA@u(n_X;EWf;fXt*ra*)^&6%+uR2ZiXbC^ zg%Q!AQ6|yg#R#Ga4h#u!ff7w5$`yWGV9*$W#0&8&8stKhn1Lpu7;ptaW{|<$*0GJT zv8`L#ce{$)|2a?1dDx**%$ZBh@8*Br^_;E;e(!Uh^PbLZnq;X=Ta;g)fq=8OMy5Y}Nlp<4;<6!vC$_Fssb>K&2j>Cq}_+51q##KMnAg3yZ z;W{(vhOa4KgzW1N!SK&sUyU)d?v=yHqTCdG)`pfojHjyUhT%FhX@+}Bs8%P$4O3c& zVYqu{I>sv&XCaxrpVuODvor9SYwE%nd(Ts?pDGxJ>x_B5$E|Em%tu}_>rN@Zf4;Is z^baK>gQL`)F!q#Qq^)oTa{tCugY)>yh+VZHTKjWdFGrV6> zZYtiVrJZUz6Bn1HN~Y@ghsxIEU>L455yRivy#_yEo`2~Jq%GG8gS_=L5u(*fHrkqk zFgaaRgPSkkz#D9N&4cm2SG`DoUmCJ}WiFEOdM(Np;m)T!O@_Oey@%qF{vIEa;TghM z63jS{-p&q;gP{Q=qt`XSFkENMJJvpojW*v^mFco8aAn58kouNEj0ZDUzNR0^c+WbOEy9tVscaF` z3uY)=1RLuqTZUxV=xFfqJaYogJxFOjpJ#Gn8qTv{G5=0YHw@PqGp}jb?N+4UKLSH% zTd!kWv7Wk)Uz(|Fs5;t$WCNH&rJJ$bY$w$fW-X+eez|5Qa@PEMBpZLMifS$+jb^wu zOT5Q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ArBcs~& zYwx|QwdZc!Y(a1Gg|L2ob@B2w{X{KL$GvUs*o)kRI7fNsORobER>KxVs)8f_K9m0M3q2Xq{dxjA`xp#d4fICm%@R+>yGk-kY4xkX0u?ADl+TJw?16A+DnLYlvlc-$lCk6(E^zK z_&g91X8IiQeScI|02s=j0{%^skTHNFb0^%kuIwxCDEmUV$Ru6HF;RL!>$kG}u0h;x)z94~3UM@W%fZ~F4I^+q9Y_`*IAt<;?_?^^rE z*)i>jOwxt4+1YQj^NZiU1;EUwzpCRKQ(8ZHuGs(l!{-6`?CVF?w#-L<0S{)Y+Vh0q zgg8g}y}KyMikT#sDpA_UmT$(X{LlQ z*)7fIb>hgj%$(Qk_rt9_T6_7H?5cOIZLwDzEok#Hl@RABzh19PWDh`XQ{}8?4rwY{ z`GVG-Zy#ml;)sol4|^$&Fxl;7+!AMsPZBN2hjz}ou(qJ}lVhGA54-Y*vR5>b3D)MdxOX@AvM$m$2r9@_( zFOFc*)F)Q}xHzHgeE)^Y41`P}ZTQr%%7u4Tg}B*lX!A&=(jGu6owm=T*)G$Ym5M8&B*Jz9^Mab-q+O-L)UaFD{NWQ9_)fdgiL@o9%ZGQKeX`^@oq2 z0MKaEt-G@6i-H~XR;hlV2n`PQTM*@-BFP-&{;BCJ+VyHX8W6Hw->1gSD~>c#LY$-A z-V_~DuU$EtYx}_JE)Wsi?`|#?V%g>L&nbK1pSxPW(); - Item.UseSound = SoundID.Item11; + Item.UseSound = null; Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 16f; + Item.noUseGraphic = true; + Item.shoot = ModContent.ProjectileType(); + Item.shootSpeed = 2f; Item.useAmmo = AmmoID.Bullet; Item.Calamity().canFirePointBlankShots = true; } public override Vector2? HoldoutOffset() => new Vector2(-10, 0); - + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; + public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - // Reposition to the gun's tip + add some inaccuracy - Vector2 newPos = position + new Vector2(74f, player.direction * (Math.Abs(velocity.SafeNormalize(Vector2.Zero).X) < 0.02f ? -2f : -8f)).RotatedBy(velocity.ToRotation()); - Vector2 newVel = velocity.RotatedByRandom(MathHelper.ToRadians(5f)); - - // Fire either the bullet or the water jet, depending on cadence. - bool fireWater = shotCounter % 2 == 0; - int projectileToFire = fireWater ? Item.shoot : type; - Projectile.NewProjectile(source, newPos, newVel, projectileToFire, damage, knockback, player.whoAmI); - - // Always fires a close range water blast. - // It goes in the same direction as the main shot but has a minor velocity variation to be less monotonous. - int waterRingDamage = (int)(damage * 0.5f); - float boostedKB = knockback + 7f; // Same KB bonus as Megalodon. The muzzle blast will annihilate nearby enemies and send their gibs flying. - Projectile.NewProjectile(source, newPos, newVel * Main.rand.NextFloat(0.45f, 0.65f), ModContent.ProjectileType(), waterRingDamage, boostedKB, player.whoAmI); - - // Check cadence position to determine which bonus projectile to add, if any. - bool fireRocket = shotCounter == 9; - bool muzzleBlast = shotCounter == 17; - - // Rockets have their own more chaotic spread than bullets. - if (fireRocket) - { - int rocketDamage = damage * 3; - Projectile.NewProjectile(source, newPos, newVel * 1.2f, ModContent.ProjectileType(), rocketDamage, knockback, player.whoAmI); - SoundEngine.PlaySound(SoundID.Item109, player.Center); - } - - // Muzzle blasts are always directly in line with the gun's muzzle. - if (muzzleBlast) - { - int muzzleBlastDamage = damage * 12; // "This might be too much but it's every 18th shot..." Narrator: 25x was in fact too much. - float muzzleBlastKB = knockback + 12f; - Projectile.NewProjectile(source, newPos, velocity, ModContent.ProjectileType(), muzzleBlastDamage, muzzleBlastKB, player.whoAmI); - - // Play additional sound for muzzle blasts - SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode, position); - } - - // Increment and then reset the shot counter so the pattern loops indefinitely. The muzzle blast replaces the first bullet in the repeating pattern. - ++shotCounter; - if (shotCounter > 17) - shotCounter = 2; + Projectile holdout = Projectile.NewProjectileDirect(source, position, velocity, Item.shoot, damage, knockback, player.whoAmI); + holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero); return false; } - // Does not consume ammo when firing water jets. - public override bool CanConsumeAmmo(Item ammo, Player player) => shotCounter % 2 == 1; - public override void AddRecipes() { CreateRecipe(). diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index ee13237a73..27305044a2 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -743,7 +743,7 @@ Megalodon: { Tooltip: ''' Loads a 30 round magazine of bullets and pressurized water streams that are rapidly unleashed - After firing, the gun unleashes a massive homing rocket before reloading + After firing, the gun unleashes a powerful homing rocket before reloading Rocket damage is based on how many shots hit ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson index cfc73b03ce..dbae1f2903 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson @@ -19,6 +19,7 @@ AuricBullet.DisplayName: Auric Bullet AuroraFire.DisplayName: Aurora Blaze BallistaGreatArrow.DisplayName: Ballista Great Arrow BarinadeArrow.DisplayName: Fin Arrow +BlahajBlast.DisplayName: Blahaj Blast BlightFlames.DisplayName: Blight Flames BlissfulBombardierDustProjectile.DisplayName: Holy Flare Dust BloodBoilerFire.DisplayName: Blood Fire @@ -182,7 +183,6 @@ ScorchedEarthClusterBomb.DisplayName: Cluster Bomb ScorchedEarthRocket.DisplayName: Rocket ScorpioRocket.DisplayName: Nano Missile ScorpioLargeRocket.DisplayName: Nano Nuke -SeaDragonMuzzleBlast.DisplayName: Seadragon Muzzle Blast SeaDragonRocket.DisplayName: Seadragon RPG SeasSearingBubble.DisplayName: Searing Bubble SeasSearingSecondary.DisplayName: Hydroshower diff --git a/Projectiles/Ranged/BlahajBlast.cs b/Projectiles/Ranged/BlahajBlast.cs new file mode 100644 index 0000000000..3a8155899a --- /dev/null +++ b/Projectiles/Ranged/BlahajBlast.cs @@ -0,0 +1,178 @@ +using System.Composition.Hosting.Core; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Dusts; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Ranged +{ + public class BlahajBlast : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Ranged"; + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + + public static int Lifetime = 600; + + public override void SetDefaults() + { + Projectile.width = 8; + Projectile.height = 8; + Projectile.friendly = true; + Projectile.DamageType = DamageClass.Ranged; + Projectile.ignoreWater = true; + Projectile.penetrate = 4; + Projectile.alpha = 255; + Projectile.timeLeft = Lifetime; + Projectile.MaxUpdates = 3; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; + Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration; + } + + public override void AI() + { + if (Main.rand.NextBool(3)) + { + Gore bubble = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * 0.2f + Main.rand.NextVector2Circular(1f, 1f), 411); + bubble.timeLeft = 9 + Main.rand.Next(7); + bubble.scale = Main.rand.NextFloat(0.6f, 1f); + bubble.type = Main.rand.NextBool(3) ? 412 : 411; + } + if (Projectile.timeLeft <= Lifetime - 4) + { + Particle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 2, -Projectile.velocity * 0.05f, false, 10, 1f, Color.Aquamarine); + GeneralParticleHandler.SpawnParticle(spark); + if (Main.rand.NextBool(8)) + { + MediumMistParticle smoke = new MediumMistParticle(Projectile.Center + Main.rand.NextVector2Circular(25, 25), -Projectile.velocity * 0.05f, Main.rand.NextBool(3) ? Color.SeaGreen : Color.SkyBlue, Color.DarkBlue, 0.5f, 180, 3f); + GeneralParticleHandler.SpawnParticle(smoke); + } + } + if (Projectile.timeLeft <= Lifetime - 8) + { + if (Main.rand.NextBool(2)) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(15, 15), ModContent.DustType(), -Projectile.velocity); + dust.noGravity = true; + dust.scale = Main.rand.NextFloat(0.9f, 1.1f); + dust.color = Main.rand.NextBool() ? Color.DarkBlue : Color.DarkBlue * 0.5f; + + Particle trail = new SparkParticle(Projectile.Center + Main.rand.NextVector2Circular(10, 10), -Projectile.velocity * Main.rand.NextFloat(0.2f, 0.8f), false, 30, Main.rand.NextFloat(0.4f, 0.6f), Color.RoyalBlue); + GeneralParticleHandler.SpawnParticle(trail); + } + } + } + //We use TileCollide and Onhit instead of OnKill due to it having pierce + public override bool OnTileCollide(Vector2 oldVelocity) + { + Collision.HitTiles(Projectile.Center, Projectile.velocity, Projectile.width, Projectile.height); + for (int i = 0; i < 4; ++i) + { + int bloodLifetime = Main.rand.Next(22, 25); + float bloodScale = Main.rand.NextFloat(0.6f, 0.8f); + Color bloodColor = Color.Lerp(Color.RoyalBlue * 0.7f, Color.DarkBlue, Main.rand.NextFloat()); + bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); + + if (Main.rand.NextBool(20)) + bloodScale *= 2f; + + float randomSpeedMultiplier = Main.rand.NextFloat(1.25f, 2.25f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; + bloodVelocity.Y -= 5f; + BloodParticle blood = new BloodParticle(Projectile.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } + for (int i = 0; i <= 2; i++) + { + LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 2.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue : Color.RoyalBlue); + GeneralParticleHandler.SpawnParticle(spark); + LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 2.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue : Color.RoyalBlue); + GeneralParticleHandler.SpawnParticle(spark2); + } + return true; + } + + public override void OnKill(int timeLeft) + { + // Bubbles + for (int i = 0; i < 10; i++) + { + Gore bubble = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity.RotatedByRandom(MathHelper.ToRadians(60f)) * 0.3f, 411); + bubble.timeLeft = 9 + Main.rand.Next(7); + bubble.scale = Main.rand.NextFloat(0.6f, 1f); + bubble.type = Main.rand.NextBool(3) ? 412 : 411; + } + } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 60); + //Only increase damage of the rocket on the first hit + if (Projectile.numHits == 0) + { + Player Owner = Main.player[Projectile.owner]; + Owner.Calamity().sharkGunDamageScaling++; + } + for (int i = 0; i < 4; ++i) + { + int bloodLifetime = Main.rand.Next(22, 25); + float bloodScale = Main.rand.NextFloat(0.6f, 0.8f); + Color bloodColor = Color.Lerp(Color.RoyalBlue * 0.7f, Color.DarkBlue, Main.rand.NextFloat()); + bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); + + if (Main.rand.NextBool(20)) + bloodScale *= 2f; + + float randomSpeedMultiplier = Main.rand.NextFloat(1.25f, 2.25f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; + bloodVelocity.Y -= 5f; + BloodParticle blood = new BloodParticle(Projectile.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } + for (int i = 0; i <= 2; i++) + { + LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue * 0.6f : Color.MediumBlue); + GeneralParticleHandler.SpawnParticle(spark); + LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue * 0.6f : Color.MediumBlue); + GeneralParticleHandler.SpawnParticle(spark2); + } + } + public override void OnHitPlayer(Player target, Player.HurtInfo info) + { + { + if (Projectile.numHits == 0) + { + Player Owner = Main.player[Projectile.owner]; + Owner.Calamity().sharkGunDamageScaling++; + } + target.AddBuff(ModContent.BuffType(), 60); + for (int i = 0; i < 4; ++i) + { + int bloodLifetime = Main.rand.Next(22, 25); + float bloodScale = Main.rand.NextFloat(0.6f, 0.8f); + Color bloodColor = Color.Lerp(Color.RoyalBlue * 0.7f, Color.DarkBlue, Main.rand.NextFloat()); + bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); + + if (Main.rand.NextBool(20)) + bloodScale *= 2f; + + float randomSpeedMultiplier = Main.rand.NextFloat(1.25f, 2.25f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; + bloodVelocity.Y -= 5f; + BloodParticle blood = new BloodParticle(Projectile.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } + for (int i = 0; i <= 2; i++) + { + LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); + GeneralParticleHandler.SpawnParticle(spark); + LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); + GeneralParticleHandler.SpawnParticle(spark2); + } + } + } + } +} diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs index 6b7cb8ae3f..136f51b6e3 100644 --- a/Projectiles/Ranged/MegalodonHoldout.cs +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Projectiles.Ranged public override float OffsetXUpwards => -5f; public override float BaseOffsetY => -1f; public override float OffsetYDownwards => 5f; + public override Vector2 GunTipPosition => Projectile.Center + (Projectile.velocity * 45).RotatedBy(0.18f * Projectile.direction); public int Time = 0; public int shotCounter = 0; @@ -43,11 +44,6 @@ namespace CalamityMod.Projectiles.Ranged { Player Owner = Main.player[Projectile.owner]; SoundEngine.PlaySound(SoundID.Item149, Projectile.Center); - if (Main.netMode != NetmodeID.Server) - { - string goreType = Main.rand.NextBool() ? "EmptyAnimosityShell" : "EmptyAnimosityShell2"; - Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center, Projectile.velocity.RotatedBy(2f * -Owner.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find(goreType).Type); - } Owner.Calamity().sharkGunDamageScaling = 0; } if (Time >= 90) @@ -83,6 +79,12 @@ namespace CalamityMod.Projectiles.Ranged Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); CalamityGlobalProjectile cgp = scalingShot.Calamity(); cgp.sharkBullets = true; + //Only eject casings from the gun if bullets are fired, preventing too many at once + if (Main.netMode != NetmodeID.Server) + { + string goreType = "MegalodonCasing"; + Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 18), -Projectile.velocity * 4f, Mod.Find(goreType).Type); + } } if (swapType) { @@ -90,6 +92,7 @@ namespace CalamityMod.Projectiles.Ranged } swapType = !swapType; shotCounter++; + //Allow a pause before firing the rocket. This allows the final bullet a chance to hit before the rocket is fired. Lowering this number reduces the delay, but may also cause the gun to become inconsistent if (shotCounter == 30) framesBetweenShots = 18; } diff --git a/Projectiles/Ranged/MegalodonRocket.cs b/Projectiles/Ranged/MegalodonRocket.cs index 185fdb9ba3..8afa3d820b 100644 --- a/Projectiles/Ranged/MegalodonRocket.cs +++ b/Projectiles/Ranged/MegalodonRocket.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { Lighting.AddLight(Projectile.Center, 0.3f, 0.5f, 0.1f); - if (Projectile.timeLeft <= Lifetime - 3) + if (Projectile.timeLeft <= Lifetime - 6) { AltSparkParticle spark = new AltSparkParticle(Projectile.Center, -Projectile.velocity * 0.05f, false, 15, 1f, Color.Gold * 0.1f); GeneralParticleHandler.SpawnParticle(spark); diff --git a/Projectiles/Ranged/SeaDragonMuzzleBlast.cs b/Projectiles/Ranged/SeaDragonMuzzleBlast.cs deleted file mode 100644 index 245b8e92fe..0000000000 --- a/Projectiles/Ranged/SeaDragonMuzzleBlast.cs +++ /dev/null @@ -1,77 +0,0 @@ -using System; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.Audio; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; - - -namespace CalamityMod.Projectiles.Ranged -{ - public class SeaDragonMuzzleBlast : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Ranged"; - public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; - - public override void SetDefaults() - { - Projectile.width = 80; - Projectile.height = 80; - Projectile.friendly = true; - Projectile.DamageType = DamageClass.Ranged; - Projectile.ignoreWater = true; - Projectile.penetrate = -1; - Projectile.tileCollide = false; - Projectile.timeLeft = 8; - Projectile.MaxUpdates = 4; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = -1; - // This projectile is already point blank. It cannot be boosted by point blank. - } - - public override void AI() - { - // Belching smoke and flames copied from Handheld Tank with a few edits (lasts 8 frames, but all happens at once due to extra updates) - for (int i = 0; i < 30; ++i) - { - // Pick a random type of fire (there's a little water mixed in) - int dustID; - switch (Main.rand.Next(6)) - { - case 0: - dustID = 170; - break; - case 1: - case 2: - dustID = 174; - break; - default: - dustID = 33; - break; - } - - // Choose a random speed and angle to belch out the fire - float dustSpeed = Main.rand.NextFloat(3.0f, 13.0f); - float angleRandom = 0.07f; - Vector2 dustVel = new Vector2(dustSpeed, 0.0f).RotatedBy(Projectile.velocity.ToRotation()); - dustVel = dustVel.RotatedBy(-angleRandom); - dustVel = dustVel.RotatedByRandom(2.0f * angleRandom); - - // Pick a size for the fire particle - float scale = Main.rand.NextFloat(0.7f, 1.8f); - - // Actually spawn the fire - int idx = Dust.NewDust(Projectile.Center, 1, 1, dustID, dustVel.X, dustVel.Y, 0, default, scale); - Main.dust[idx].noGravity = true; - Main.dust[idx].position = Projectile.Center; - } - } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(BuffID.OnFire3, 240); - } - } -} diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs new file mode 100644 index 0000000000..6539e58fd2 --- /dev/null +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -0,0 +1,128 @@ +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Particles; +using CalamityMod.Projectiles.BaseProjectiles; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using ReLogic.Utilities; +using Terraria; +using Terraria.Audio; +using Terraria.GameContent; +using Terraria.ModLoader; +using Terraria.ID; +using Steamworks; +using CalamityMod.Projectiles.Turret; +using Mono.Cecil; + +namespace CalamityMod.Projectiles.Ranged +{ + public class SeadragonHoldout : BaseGunHoldoutProjectile + { + public override int AssociatedItemID => ModContent.ItemType(); + public override float MaxOffsetLengthFromArm => 24f; + public override float OffsetXUpwards => -5f; + public override float BaseOffsetY => -1f; + public override float OffsetYDownwards => 5f; + + public int Time = 0; + public int shotCounter = 0; + public int framesBetweenShots = 0; + public bool swapType = false; + + public override void KillHoldoutLogic() + { + //If the player is dead, kill the holdout. + if (Owner.CantUseHoldout() || HeldItem.type != Owner.ActiveItem().type) + Projectile.Kill(); + } + + public override void HoldoutAI() + { + //Pause to give the effect of reloading + if (Time == 30) + { + Player Owner = Main.player[Projectile.owner]; + SoundEngine.PlaySound(SoundID.Item149, Projectile.Center); + if (Main.netMode != NetmodeID.Server) + { + string goreType = Main.rand.NextBool() ? "EmptyAnimosityShell" : "EmptyAnimosityShell2"; + Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center, Projectile.velocity.RotatedBy(2f * -Owner.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find(goreType).Type); + } + Owner.Calamity().sharkGunDamageScaling = 0; + } + if (Time >= 90) + { + if (framesBetweenShots == 0 && shotCounter <= 51) + { + Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 19; + #region Debug Text Display + //Main.NewText(shotCounter); + //Main.NewText(Owner.Calamity().sharkGunDamageScaling); + #endregion + #region Visuals and Sounds + SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotTiny"); + SoundEngine.PlaySound(fire with { Volume = 0.5f, Pitch = 0.3f , PitchVariance = 0.1f, MaxInstances = -1 }, Projectile.Center); + Particle sparker = new CustomPulse(GunTipPosition, Vector2.Zero, Color.HotPink, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.02f, 0.5f, 10, true, 0.8f); + GeneralParticleHandler.SpawnParticle(sparker); + GenericSparkle sparker2 = new GenericSparkle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.SeaShell : Color.Silver * 0.9f, Color.HotPink, Main.rand.NextFloat(0.8f, 1.2f), 2, 0, 2.68f); + GeneralParticleHandler.SpawnParticle(sparker2); + for (int i = 0; i <= 4; i++) + { + Dust dust = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(3) ? 303 : 244, (shootVelocity * Main.rand.NextFloat(0.2f, 1.1f)).RotatedByRandom(0.4f)); + dust.noGravity = true; + dust.scale = Main.rand.NextFloat(0.8f, 1.4f); + } + #endregion + + //How many frames between firing projectiles, and how far the gun moves backward to give the effect of recoil. Change this number to edit fire rate + framesBetweenShots = 4; + OffsetLengthFromArm -= 3f; + //Here we detect which ammo the bullets will use + Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + //Alternate between shooting bullets and water streams. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier + if (!swapType) + { + Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); + CalamityGlobalProjectile cgp = scalingShot.Calamity(); + cgp.sharkBullets = true; + } + if (swapType) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + } + swapType = !swapType; + shotCounter++; + if (shotCounter == 50) + framesBetweenShots = 18; + } + if (framesBetweenShots > 0) + framesBetweenShots--; + } + if (shotCounter == 50 && framesBetweenShots == 0) + { + if (framesBetweenShots == 0) + { + Projectile.Kill(); + } + else + { + framesBetweenShots--; + } + } + Time++; + } + public override bool PreDraw(ref Color lightColor) + { + if (Time < 2) + return false; + Texture2D texture = TextureAssets.Projectile[Type].Value; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); + Vector2 rotationPoint = texture.Size() * 0.5f; + SpriteEffects flipSprite = (Projectile.spriteDirection * Owner.gravDir == -1) ? SpriteEffects.FlipHorizontally : SpriteEffects.None; + + Main.EntitySpriteDraw(texture, drawPosition, null, Projectile.GetAlpha(lightColor), drawRotation, rotationPoint, Projectile.scale * Owner.gravDir, flipSprite); + return false; + } + } +} From dce25c81a900fd11400e3780d405e7b7b59a0edf Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sun, 10 Nov 2024 05:23:12 -0800 Subject: [PATCH 07/50] Minor particle adjustments --- Projectiles/Ranged/MegalodonRocket.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Ranged/MegalodonRocket.cs b/Projectiles/Ranged/MegalodonRocket.cs index 8afa3d820b..5bfe44fa46 100644 --- a/Projectiles/Ranged/MegalodonRocket.cs +++ b/Projectiles/Ranged/MegalodonRocket.cs @@ -91,9 +91,9 @@ namespace CalamityMod.Projectiles.Ranged GeneralParticleHandler.SpawnParticle(new CustomPulse(Projectile.Center, Vector2.Zero, Color.White, "CalamityMod/Particles/LargeBloom", Vector2.One, 0f, 0.5f, 0f, 15)); for (int i = 0; i < 8; i++) GeneralParticleHandler.SpawnParticle(new BloodParticle2(Projectile.Center, new Vector2(Main.rand.NextFloat(6, 12), 0).RotatedBy(Main.rand.NextFloat(MathHelper.TwoPi)), 12, Main.rand.NextFloat(0.3f, 0.4f), Color.DodgerBlue)); - Particle pulse = new CustomPulse(Projectile.Center, Vector2.Zero, Color.RoyalBlue * 0.5f, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(-10f, 10f), 0f, 0.1f, 25); + Particle pulse = new CustomPulse(Projectile.Center, Vector2.Zero, Color.RoyalBlue * 0.5f, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(-10f, 10f), 0f, 0.1f, 15); GeneralParticleHandler.SpawnParticle(pulse); - Particle pulse2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.CornflowerBlue, "CalamityMod/Particles/FlameExplosion2", Vector2.One, Main.rand.NextFloat(-10f, 10f), 0f, 0.07f, 25); + Particle pulse2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.CornflowerBlue, "CalamityMod/Particles/FlameExplosion2", Vector2.One, Main.rand.NextFloat(-10f, 10f), 0f, 0.07f, 15); GeneralParticleHandler.SpawnParticle(pulse2); for (int i = 0; i < 10; i++) { From 83bcc320a859803fc8515c9c04bbdd51e034acf5 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Wed, 13 Nov 2024 15:23:04 -0800 Subject: [PATCH 08/50] Rocket and Mag, visual adjustments --- Gores/MegalodonMag.png | Bin 0 -> 325 bytes Projectiles/Ranged/MegalodonHoldout.cs | 11 ++++++++-- Projectiles/Ranged/MegalodonRocket.cs | 29 +++++++++++++------------ Projectiles/Ranged/MegalodonRocket.png | Bin 0 -> 1004 bytes Projectiles/Ranged/MegalodonShot.cs | 2 +- 5 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 Gores/MegalodonMag.png create mode 100644 Projectiles/Ranged/MegalodonRocket.png diff --git a/Gores/MegalodonMag.png b/Gores/MegalodonMag.png new file mode 100644 index 0000000000000000000000000000000000000000..c5e53a621d2ed9d41c8893973f8697108ca112ec GIT binary patch literal 325 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eO!3HGrSK5O(jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCilCdb&7W|Vfiaw$)!^@wv&a7@u!+R%|19TonrowBQ-+#BKMTWl zMven&`q{h;#eH!*IhWnPQ_Z?8d|nOrGR^Id!L9;l3XP^RTz=J+lwh^~t-=hoyKM&k z!Um5&PrsiaeduiK!5WDjU%tuDXloTaX=d>8Q;|`F!HKs9--YI`H8s+ zsA*3*kXK$3#?IYQTgkla;$1$LCr3@%*kbb9y@C^*7wlw_Slpa{|9`{BZ->PX&iE7H z#C~eio`mxIwSOefu+QXUQn_{D00V>fUhg>%Idd-pJ;;|D;hE;^%b*2ha{w_2Tne5H OqC8#wT-G@yGywqfe0FUB literal 0 HcmV?d00001 diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs index 136f51b6e3..505c248817 100644 --- a/Projectiles/Ranged/MegalodonHoldout.cs +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -44,6 +44,12 @@ namespace CalamityMod.Projectiles.Ranged { Player Owner = Main.player[Projectile.owner]; SoundEngine.PlaySound(SoundID.Item149, Projectile.Center); + if (Main.netMode != NetmodeID.Server) + { + string goreType = "MegalodonMag"; + Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 9), Projectile.velocity.RotatedBy(2f * -Owner.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find(goreType).Type); + } + //Set the scaling to 0 whenever it reloads Owner.Calamity().sharkGunDamageScaling = 0; } if (Time >= 90) @@ -104,7 +110,8 @@ namespace CalamityMod.Projectiles.Ranged if (framesBetweenShots == 0) { Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; - //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage + //Debug Text + //Main.NewText(Owner.Calamity().sharkGunDamageScaling); #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = 0.2f }, Projectile.Center); @@ -137,13 +144,13 @@ namespace CalamityMod.Projectiles.Ranged } #endregion + //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage if (Owner.Calamity().sharkGunDamageScaling == 0) { Owner.Calamity().sharkGunDamageScaling++; } //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); - Main.NewText(Owner.Calamity().sharkGunDamageScaling); //After firing the rocket, kill the projectile to allow left click to be held down Projectile.Kill(); diff --git a/Projectiles/Ranged/MegalodonRocket.cs b/Projectiles/Ranged/MegalodonRocket.cs index 5bfe44fa46..8f1afbfe1a 100644 --- a/Projectiles/Ranged/MegalodonRocket.cs +++ b/Projectiles/Ranged/MegalodonRocket.cs @@ -14,8 +14,6 @@ namespace CalamityMod.Projectiles.Ranged public class MegalodonRocket : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; - public override string Texture => "CalamityMod/Projectiles/Ranged/FishronRPG"; - public static int Lifetime = 600; public override void SetStaticDefaults() { @@ -26,8 +24,8 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - Projectile.width = 14; - Projectile.height = 14; + Projectile.width = 46; + Projectile.height = 38; Projectile.aiStyle = ProjAIStyleID.Arrow; Projectile.friendly = true; Projectile.DamageType = DamageClass.Ranged; @@ -39,6 +37,10 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { + //Rotation + Projectile.spriteDirection = Projectile.direction = (Projectile.velocity.X > 0).ToDirectionInt(); + Projectile.rotation = Projectile.velocity.ToRotation() + (Projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) * Projectile.direction; + Lighting.AddLight(Projectile.Center, 0.3f, 0.5f, 0.1f); if (Projectile.timeLeft <= Lifetime - 6) { @@ -49,15 +51,14 @@ namespace CalamityMod.Projectiles.Ranged SparkParticle spark2 = new SparkParticle(Projectile.Center + Main.rand.NextVector2Circular(15, 15) - Projectile.velocity.SafeNormalize(Vector2.UnitX) * 10, -Projectile.velocity * Main.rand.NextFloat(0.5f, 1.5f), false, Main.rand.Next(9, 12 + 1), 0.4f, Color.OrangeRed); GeneralParticleHandler.SpawnParticle(spark2); } - int smokyFire2 = Dust.NewDust(Projectile.Center, Projectile.width, Projectile.height, DustID.Smoke, 0f, 0f, 100, default, 0.5f); - Main.dust[smokyFire2].scale = 0.1f + (float)Main.rand.Next(5) * 0.1f; - Main.dust[smokyFire2].fadeIn = 1.5f + (float)Main.rand.Next(5) * 0.1f; - Main.dust[smokyFire2].noGravity = true; - Main.dust[smokyFire2].position = Projectile.Center + new Vector2(0f, (float)(-(float)Projectile.height / 2)).RotatedBy((double)Projectile.rotation, default) * 1.1f; - smokyFire2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Torch, 0f, 0f, 100, default, 1f); - Main.dust[smokyFire2].scale = 1f + (float)Main.rand.Next(5) * 0.1f; - Main.dust[smokyFire2].noGravity = true; - Main.dust[smokyFire2].position = Projectile.Center + new Vector2(0f, (float)(-(float)Projectile.height / 2 - 6)).RotatedBy((double)Projectile.rotation, default) * 1.1f; + Dust dust = Dust.NewDustPerfect(Projectile.Center, DustID.Torch, Projectile.velocity, 500, default, 0.5f); + dust.scale = Main.rand.NextFloat(0.7f, 1.5f); + dust.velocity = Projectile.velocity * Main.rand.NextFloat(-3, 3); + dust.noGravity = true; + Dust dust2 = Dust.NewDustPerfect(Projectile.Center, DustID.Smoke, Projectile.velocity, 500, default, 0.5f); + dust2.scale = Main.rand.NextFloat(0.7f, 1.5f); + dust2.velocity = Projectile.velocity * Main.rand.NextFloat(-3, 3); + dust2.noGravity = true; } CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 450f, 12f, 20f); } @@ -90,7 +91,7 @@ namespace CalamityMod.Projectiles.Ranged GeneralParticleHandler.SpawnParticle(new CustomPulse(Projectile.Center, Vector2.Zero, Color.Blue, "CalamityMod/Particles/LargeBloom", Vector2.One, 0f, 1f, 0f, 25)); GeneralParticleHandler.SpawnParticle(new CustomPulse(Projectile.Center, Vector2.Zero, Color.White, "CalamityMod/Particles/LargeBloom", Vector2.One, 0f, 0.5f, 0f, 15)); - for (int i = 0; i < 8; i++) GeneralParticleHandler.SpawnParticle(new BloodParticle2(Projectile.Center, new Vector2(Main.rand.NextFloat(6, 12), 0).RotatedBy(Main.rand.NextFloat(MathHelper.TwoPi)), 12, Main.rand.NextFloat(0.3f, 0.4f), Color.DodgerBlue)); + for (int i = 0; i < 8; i++) GeneralParticleHandler.SpawnParticle(new BloodParticle2(Projectile.Center, new Vector2(Main.rand.NextFloat(6, 12), 0).RotatedBy(Main.rand.NextFloat(MathHelper.TwoPi)), 12, Main.rand.NextFloat(0.3f, 0.4f), Color.DarkGoldenrod * 0.8f)); Particle pulse = new CustomPulse(Projectile.Center, Vector2.Zero, Color.RoyalBlue * 0.5f, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(-10f, 10f), 0f, 0.1f, 15); GeneralParticleHandler.SpawnParticle(pulse); Particle pulse2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.CornflowerBlue, "CalamityMod/Particles/FlameExplosion2", Vector2.One, Main.rand.NextFloat(-10f, 10f), 0f, 0.07f, 15); diff --git a/Projectiles/Ranged/MegalodonRocket.png b/Projectiles/Ranged/MegalodonRocket.png new file mode 100644 index 0000000000000000000000000000000000000000..790f4a2feb5d80e2288ba376bdf2fa451dff4f43 GIT binary patch literal 1004 zcmVPx#1ZP1_K>z@;j|==^1poj8d`Uz>R9HvtncGWLQ543HqEj>B7>-VYlX)q;WI~~l zT6FOxN-_+rmm(u5U#o{eA|mQZdgw)b5_$@u=pWFEu%e{EyHsX+ByS_mm}6dR`u6$E zS#V)cOoX;dU8^`^jI>{dLs=;ac<;{M5yTJbUclE%k%n7N zYfk)D#bE?@>t4e5rEkR=bK`!*7poiLtJQzvL4kN>c`gE~si6%%6>Y;>p9X&-UTw{9 zT;f;H7Qh{jO(1?OKM`?8svF+@br|0Geh}{W1+b>yH-(t0Z)i0}E0cAJFR9V6GONYH z%rv+sDF&`-3m|@CZvvwDG)0^ualOwAr|b?@`%{4##49ClY2qO}9+mEi1&J@Z53wXq z;z8l{o}?`ZJjpINYkjmw)i~AST`)#U%s}R@c&zthT78`5x{mdU%l=za-vTH3kL}+P z>-{PN^Ye<#WMB@10|m*5b6w$C$eK6nI3pi>P03rAcuiFa2KMOy$Q2dmAf`w@ z)*cBG?cF1orw>g2vBlc1yk=<7-eU|G1@dwSBpLR5 zS&J0!fFx0G#}M3=y$#OyJy}@_zkaC}&c|gpD$2=#U%B%XZe8MrYk$e}yQtG1$y0KN zt*U-*jFja3#2ul1d+?hgX(qYzZXDwJzyyf%3?ln4#mBjma=w%#FC{Y}yNv8k>xp=1 zSE1g%>4Tp>mj`ct)d`np7PE{{_ih}8^V;BinUQCYo8f$4ig!%bCtgyR1$Wq^K%6`0 z{fF=1N!!&gQUm?tcwUN`V68GkQY0ud#Z2%t%GWz%qOq>iX+um|pZM{7)hGQEvmrz? zcgA5(*XJ?BVH7f-6#oz$Wt)cIf6ClJ2w>VZ?%C%)vaJ*?z64l^Ib zWFP0*qhnZ|$Jvc2*1B0OoBhsWed7Nrl8TF0000 Date: Wed, 13 Nov 2024 19:09:36 -0800 Subject: [PATCH 09/50] Megalodon resprite again --- Items/Weapons/Ranged/Megalodon.cs | 2 +- Items/Weapons/Ranged/Megalodon.png | Bin 1927 -> 1727 bytes Projectiles/Ranged/MegalodonHoldout.cs | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index d9ef16c61d..441f1292ea 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.width = 92; + Item.width = 102; Item.height = 42; Item.damage = 58; Item.DamageType = DamageClass.Ranged; diff --git a/Items/Weapons/Ranged/Megalodon.png b/Items/Weapons/Ranged/Megalodon.png index bac53ca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WI0;5_E#3B55mK7o6$l`w#m2&nkYYmK z4658eTfPP}#aYhT%GMi{XRA zwE8yIf5PM7)n-xXwfje`nmqi;=+)J!53UC9-d2w7LOl zx-|RDiQ~w{%gc~*tTjXU4pP=)$?RM75yR6{Gmts1yOD|URu~>Jc9hmI>RNA^6e?uxj8-!xJR_vJ@|qxPHXFI;g%^>F z%BX8te_i<|l4mNf)hx=R+_w7?vN%UwdgZg#@6WU&~kgd4E1_8o6d&In$OQJ`A+o6SG2~$CQ7p!uhI3aV z*S8topLsNYI&%BlZy_aYsO&1Zn_!kK%~Q5+4p1Rf?bo{6?x=~nG8yP`Rzk@p4P?Ee6%)rH7w zhpg#5Q~7f-@|wbCGi)dQIBaP?#0eNT1e|&O~ z_P3=B;@q9K1l3GqbH6?GJ2F0z{*8J&>FK>IpJtBlVu$LuF|gmMON|(4VHmD65ySPO zyzE(Ji)!Jzmn$)d_5_D(Jm0ZOvn>`Y&LzX{!Z;Kjl?H;llg!)+LIl_@c$W;Zn%UEFa9%@z6;pbOD1-7HmmlRcf5>T)6s&jN%DK^lK=W| Xi44Pa#bo*mi-p|X8$$& -5f; public override float BaseOffsetY => -1f; public override float OffsetYDownwards => 5f; - public override Vector2 GunTipPosition => Projectile.Center + (Projectile.velocity * 45).RotatedBy(0.18f * Projectile.direction); + public override Vector2 GunTipPosition => Projectile.Center + (Projectile.velocity * 50).RotatedBy(0.13f * Projectile.direction); public int Time = 0; public int shotCounter = 0; @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Ranged if (Main.netMode != NetmodeID.Server) { string goreType = "MegalodonMag"; - Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 9), Projectile.velocity.RotatedBy(2f * -Owner.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find(goreType).Type); + Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 18), Projectile.velocity.RotatedBy(2f * -Owner.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find(goreType).Type); } //Set the scaling to 0 whenever it reloads Owner.Calamity().sharkGunDamageScaling = 0; From 13ad7ae0509931711ad6e13431b13bacabcac38c Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Wed, 20 Nov 2024 13:46:59 -0800 Subject: [PATCH 10/50] Seadragon fishe spawns --- Projectiles/Ranged/BlahajBlast.cs | 7 +++-- Projectiles/Ranged/SeaDragonRocket.cs | 44 --------------------------- 2 files changed, 5 insertions(+), 46 deletions(-) diff --git a/Projectiles/Ranged/BlahajBlast.cs b/Projectiles/Ranged/BlahajBlast.cs index 3a8155899a..ce5009e329 100644 --- a/Projectiles/Ranged/BlahajBlast.cs +++ b/Projectiles/Ranged/BlahajBlast.cs @@ -113,8 +113,11 @@ namespace CalamityMod.Projectiles.Ranged //Only increase damage of the rocket on the first hit if (Projectile.numHits == 0) { - Player Owner = Main.player[Projectile.owner]; - Owner.Calamity().sharkGunDamageScaling++; + for (int i = 0; i <= 1; i++) + { + Player Owner = Main.player[Projectile.owner]; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.Center + Main.rand.NextVector2Circular(150, 150), Projectile.velocity, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + } } for (int i = 0; i < 4; ++i) { diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index 570618b113..e76cdf75d7 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -24,16 +24,6 @@ namespace CalamityMod.Projectiles.Ranged { if (Projectile.ai[1] == 0f) { - for (int i = 0; i < 5; i++) - { - int fire = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Torch, 0f, 0f, 100, default, 2f); - Main.dust[fire].velocity *= 3f; - if (Main.rand.NextBool()) - { - Main.dust[fire].scale = 0.5f; - Main.dust[fire].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } Projectile.ai[1] = 1f; } Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; @@ -63,13 +53,6 @@ namespace CalamityMod.Projectiles.Ranged halfX = Projectile.velocity.X * 0.5f; halfY = Projectile.velocity.Y * 0.5f; } - int explosion = Dust.NewDust(new Vector2(Projectile.position.X + 3f + halfX, Projectile.position.Y + 3f + halfY) - Projectile.velocity * 0.5f, Projectile.width - 8, Projectile.height - 8, DustID.Torch, 0f, 0f, 100, default, 1f); - Main.dust[explosion].scale *= 2f + (float)Main.rand.Next(10) * 0.1f; - Main.dust[explosion].velocity *= 0.2f; - Main.dust[explosion].noGravity = true; - explosion = Dust.NewDust(new Vector2(Projectile.position.X + 3f + halfX, Projectile.position.Y + 3f + halfY) - Projectile.velocity * 0.5f, Projectile.width - 8, Projectile.height - 8, DustID.Water, 0f, 0f, 100, default, 0.5f); - Main.dust[explosion].fadeIn = 1f + (float)Main.rand.Next(5) * 0.1f; - Main.dust[explosion].velocity *= 0.05f; } } } @@ -85,33 +68,6 @@ namespace CalamityMod.Projectiles.Ranged Projectile.localNPCHitCooldown = 10; Projectile.Damage(); SoundEngine.PlaySound(SoundID.Item110, Projectile.position); - for (int i = 0; i < 15; i++) - { - int smoke = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Water, 0f, 0f, 100, default, 2f); - Main.dust[smoke].velocity *= 3f; - if (Main.rand.NextBool()) - { - Main.dust[smoke].scale = 0.5f; - Main.dust[smoke].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int j = 0; j < 25; j++) - { - int fire = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Torch, 0f, 0f, 100, default, 3f); - Main.dust[fire].noGravity = true; - Main.dust[fire].velocity *= 5f; - fire = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Torch, 0f, 0f, 100, default, 2f); - Main.dust[fire].velocity *= 2f; - } - int projAmt = Main.rand.Next(2, 4); - if (Projectile.owner == Main.myPlayer) - { - for (int k = 0; k < projAmt; k++) - { - Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.33), 0f, Projectile.owner); - } - } } } } From 83be2a7a3fc8035a02d81dc91e2e2a4e1ed857e1 Mon Sep 17 00:00:00 2001 From: Xyk Date: Wed, 20 Nov 2024 14:48:55 -0800 Subject: [PATCH 11/50] A base for the Seadragon Rockets --- Projectiles/Ranged/BlahajBlast.cs | 10 +-- Projectiles/Ranged/SeaDragonRocket.cs | 112 ++++++++++++++++--------- Projectiles/Ranged/SeadragonHoldout.cs | 14 +++- 3 files changed, 88 insertions(+), 48 deletions(-) diff --git a/Projectiles/Ranged/BlahajBlast.cs b/Projectiles/Ranged/BlahajBlast.cs index ce5009e329..b052847671 100644 --- a/Projectiles/Ranged/BlahajBlast.cs +++ b/Projectiles/Ranged/BlahajBlast.cs @@ -110,14 +110,12 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), 60); - //Only increase damage of the rocket on the first hit + //Only spawn rocket on the first hit if (Projectile.numHits == 0) { - for (int i = 0; i <= 1; i++) - { - Player Owner = Main.player[Projectile.owner]; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.Center + Main.rand.NextVector2Circular(150, 150), Projectile.velocity, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); - } + Player Owner = Main.player[Projectile.owner]; + Projectile fishy = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center + Main.rand.NextVector2Circular(150, 150), Vector2.Zero, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + fishy.ai[2] = ((Owner.Calamity().sharkGunDamageScaling + 1) * 0.02f) + 0.1f; } for (int i = 0; i < 4; ++i) { diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index e76cdf75d7..d626d3b204 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -1,4 +1,7 @@ using System; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Dusts; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -10,64 +13,97 @@ namespace CalamityMod.Projectiles.Ranged { public new string LocalizationCategory => "Projectiles.Ranged"; public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true; + public ref float time => ref Projectile.ai[0]; + public bool attacking => Projectile.ai[1] == 5; // If the missile is launched at the enemy + public ref float moveSpeed => ref Projectile.ai[2]; // Some speed variation applied to the missiles based on spawn order public override void SetDefaults() { Projectile.width = 18; Projectile.height = 18; Projectile.friendly = true; Projectile.penetrate = 1; - Projectile.timeLeft = 95; + Projectile.timeLeft = 600; + Projectile.extraUpdates = 1; Projectile.DamageType = DamageClass.Ranged; + Projectile.ignoreWater = true; + Projectile.tileCollide = false; } public override void AI() { - if (Projectile.ai[1] == 0f) - { - Projectile.ai[1] = 1f; - } + Lighting.AddLight(Projectile.Center, Color.Cyan.ToVector3() * 0.5f); + Player Owner = Main.player[Projectile.owner]; Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; - if (Projectile.owner == Main.myPlayer && Projectile.timeLeft <= 3) + if (Owner.ownedProjectileCounts[ModContent.ProjectileType()] <= 0 && !attacking) // If no holdout exists and not attacking then die + Projectile.Kill(); + if (attacking) // Fly at the enemy { - Projectile.tileCollide = false; - Projectile.ai[1] = 0f; - Projectile.alpha = 255; - Projectile.position.X = Projectile.Center.X; - Projectile.position.Y = Projectile.Center.Y; - Projectile.width = 200; - Projectile.height = 200; - Projectile.position.X -= (float)(Projectile.width / 2); - Projectile.position.Y -= (float)(Projectile.height / 2); - Projectile.knockBack = 10f; + NPC chosenTarget = Projectile.Center.ClosestNPCAt(600); + CalamityUtils.HomeInOnSelectedNPC(Projectile, chosenTarget, true, 0.4f + moveSpeed, 16, 0.985f); + if (chosenTarget != null) + Projectile.timeLeft++; // Don't die if you have a target to home in on } - else + else // Swarm around the player until ready to be fired { - if (Math.Abs(Projectile.velocity.X) >= 8f || Math.Abs(Projectile.velocity.Y) >= 8f) - { - for (int j = 0; j < 2; j++) - { - float halfX = 0f; - float halfY = 0f; - if (j == 1) - { - halfX = Projectile.velocity.X * 0.5f; - halfY = Projectile.velocity.Y * 0.5f; - } - } - } + Vector2 circle = Owner.Center + new Vector2(0, -195 + moveSpeed * 25).RotatedBy(time * 0.05f); + Vector2 moveToEnemy = (circle - Projectile.Center).SafeNormalize(Vector2.UnitX); + if (Projectile.velocity.Length() < 12) + Projectile.velocity = Projectile.velocity * 0.97f + moveToEnemy * moveSpeed; + else + Projectile.velocity *= 0.9f; } - CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 200f, 12f, 20f); + if (Main.rand.NextBool(3)) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), -Projectile.velocity.RotatedByRandom(0.2f) * Main.rand.NextFloat(0.1f, 0.5f)); + dust.noGravity = false; + dust.scale = 0.9f; + dust.color = Color.DodgerBlue; + dust.noLightEmittence = true; + } + time++; } public override void OnKill(int timeLeft) { - Projectile.ExpandHitboxBy(192); - Projectile.maxPenetrate = -1; - Projectile.penetrate = -1; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; - Projectile.Damage(); - SoundEngine.PlaySound(SoundID.Item110, Projectile.position); + // Explode on kill if attacking, else just poof out + if (attacking) + { + SoundEngine.PlaySound(SoundID.Item110, Projectile.Center); + + // Create Blast (If you want to know how to use this blast, check the projectile, it tells you exactly how to use it!) + float blastSize = 80; + float minMultiplier = 0.25f; + int hitsToMinMult = 5; + int debuff = ModContent.BuffType(); + int debuffTime = 120; + Projectile blast = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f), Projectile.knockBack, Projectile.owner, blastSize, minMultiplier, hitsToMinMult); + blast.localAI[0] = debuff; + blast.localAI[1] = debuffTime; + blast.timeLeft = 2; + blast.DamageType = Projectile.DamageType; + + // Add visuals here + for (int i = 0; i < 20; i++) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), Vector2.One.RotatedByRandom(100) * Main.rand.NextFloat(9, 12)); + dust.noGravity = true; + dust.scale = 1.8f; + dust.color = Color.Cyan; + dust.noLightEmittence = true; + } + } + else + { + for (int i = 0; i < 10; i++) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), Vector2.One.RotatedByRandom(100) * Main.rand.NextFloat(4, 6)); + dust.noGravity = false; + dust.scale = 0.8f; + dust.color = Color.AliceBlue; + dust.noLightEmittence = true; + } + } } + public override bool? CanDamage() => (attacking ? null : false); // Can't hit if not attacking } } diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index 6539e58fd2..0a374d4fd8 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -13,6 +13,7 @@ using Terraria.ID; using Steamworks; using CalamityMod.Projectiles.Turret; using Mono.Cecil; +using CalamityMod.Projectiles.Rogue; namespace CalamityMod.Projectiles.Ranged { @@ -103,10 +104,15 @@ namespace CalamityMod.Projectiles.Ranged if (framesBetweenShots == 0) { Projectile.Kill(); - } - else - { - framesBetweenShots--; + for (int x = 0; x < Main.maxProjectiles; x++) + { + Projectile projectile = Main.projectile[x]; + if (projectile.active && projectile.type == ModContent.ProjectileType() && projectile.ai[1] < 5) + { + projectile.ai[1] = 5; + projectile.velocity = Utils.DirectionTo(projectile.Center, Owner.Calamity().mouseWorld) * 12; + } + } } } Time++; From 2bf4c65eeb2da56b31c26d40cb486528e0ec2d75 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Thu, 21 Nov 2024 13:45:25 -0800 Subject: [PATCH 12/50] Visuals start + Migrated Voidragon to holdout --- Items/Weapons/Ranged/Seadragon.cs | 2 +- Items/Weapons/Ranged/Voidragon.cs | 39 +--- .../Mods.CalamityMod.Projectiles.Ranged.hjson | 2 +- Projectiles/Ranged/BlahajBlast.cs | 42 +--- Projectiles/Ranged/SeaDragonRocket.cs | 30 ++- Projectiles/Ranged/SeadragonHoldout.cs | 6 +- .../Ranged/{Voidragon.cs => VoidBlast.cs} | 7 +- .../Ranged/{Voidragon.png => VoidBlast.png} | Bin Projectiles/Ranged/VoidragonHoldout.cs | 179 ++++++++++++++++++ 9 files changed, 225 insertions(+), 82 deletions(-) rename Projectiles/Ranged/{Voidragon.cs => VoidBlast.cs} (95%) rename Projectiles/Ranged/{Voidragon.png => VoidBlast.png} (100%) create mode 100644 Projectiles/Ranged/VoidragonHoldout.cs diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index badad3d257..d32dff6182 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 90; Item.height = 38; - Item.damage = 155; + Item.damage = 375; Item.DamageType = DamageClass.Ranged; Item.useTime = 3; Item.useAnimation = 3; diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index 2cd4c67f92..8970a95a8c 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Ranged public class Voidragon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; - private int shotType = 1; + public int sharkGunDamageScaling = 0; public override void SetStaticDefaults() { @@ -32,11 +32,14 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.UseSound = SoundID.Item11; + Item.UseSound = null; Item.autoReuse = true; + Item.noUseGraphic = true; + Item.channel = true; Item.shoot = ProjectileID.PurificationPowder; Item.shootSpeed = 18f; Item.useAmmo = AmmoID.Bullet; + Item.shoot = ModContent.ProjectileType(); Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); @@ -44,42 +47,20 @@ namespace CalamityMod.Items.Weapons.Ranged Item.Calamity().canFirePointBlankShots = true; } - public override Vector2? HoldoutOffset() - { - return new Vector2(-10, 0); - } - + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; + public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - float SpeedX = velocity.X + (float)Main.rand.Next(-5, 6) * 0.05f; - float SpeedY = velocity.Y + (float)Main.rand.Next(-5, 6) * 0.05f; - - if (shotType > 2) - shotType = 1; - - if (shotType == 1) - Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI); - else - Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockback, player.whoAmI); - - shotType++; - - Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockback, player.whoAmI, (Main.rand.Next(-160, 160) * 0.001f), (Main.rand.Next(-160, 160) * 0.001f)); - + Projectile holdout = Projectile.NewProjectileDirect(source, position, velocity, Item.shoot, damage, knockback, player.whoAmI); + holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero); return false; } - public override bool CanConsumeAmmo(Item ammo, Player player) - { - if (Main.rand.Next(0, 100) < 50 || shotType % 2 == 0) - return false; - return true; - } - public override void AddRecipes() { CreateRecipe(). AddIngredient(). + AddIngredient(). AddIngredient(5). AddTile(). Register(); diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson index 62f5e4018d..7315a3476d 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson @@ -245,7 +245,7 @@ VanquisherArrowMain.DisplayName: Vanquisher Arrow VanquisherArrowProj.DisplayName: Vanquisher Arrow Proj VeriumBoltProj.DisplayName: Verium Bolt VernalBolt.DisplayName: Vernal Bolt -Voidragon.DisplayName: Voidragon Blast +VoidBlast.DisplayName: Void Blast VoidragonTentacle.DisplayName: Voidragon Tentacle WaterSpout.DisplayName: Spout WildfireBloomFire.DisplayName: Wildfire Fire diff --git a/Projectiles/Ranged/BlahajBlast.cs b/Projectiles/Ranged/BlahajBlast.cs index b052847671..ab0b5dd8e9 100644 --- a/Projectiles/Ranged/BlahajBlast.cs +++ b/Projectiles/Ranged/BlahajBlast.cs @@ -29,6 +29,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.timeLeft = Lifetime; Projectile.MaxUpdates = 3; Projectile.usesLocalNPCImmunity = true; + Projectile.tileCollide = false; Projectile.localNPCHitCooldown = -1; Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration; } @@ -44,7 +45,7 @@ namespace CalamityMod.Projectiles.Ranged } if (Projectile.timeLeft <= Lifetime - 4) { - Particle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 2, -Projectile.velocity * 0.05f, false, 10, 1f, Color.Aquamarine); + Particle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 2, -Projectile.velocity * 0.05f, false, 10, 1.1f, Color.Aquamarine); GeneralParticleHandler.SpawnParticle(spark); if (Main.rand.NextBool(8)) { @@ -66,35 +67,6 @@ namespace CalamityMod.Projectiles.Ranged } } } - //We use TileCollide and Onhit instead of OnKill due to it having pierce - public override bool OnTileCollide(Vector2 oldVelocity) - { - Collision.HitTiles(Projectile.Center, Projectile.velocity, Projectile.width, Projectile.height); - for (int i = 0; i < 4; ++i) - { - int bloodLifetime = Main.rand.Next(22, 25); - float bloodScale = Main.rand.NextFloat(0.6f, 0.8f); - Color bloodColor = Color.Lerp(Color.RoyalBlue * 0.7f, Color.DarkBlue, Main.rand.NextFloat()); - bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); - - if (Main.rand.NextBool(20)) - bloodScale *= 2f; - - float randomSpeedMultiplier = Main.rand.NextFloat(1.25f, 2.25f); - Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; - bloodVelocity.Y -= 5f; - BloodParticle blood = new BloodParticle(Projectile.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); - GeneralParticleHandler.SpawnParticle(blood); - } - for (int i = 0; i <= 2; i++) - { - LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 2.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue : Color.RoyalBlue); - GeneralParticleHandler.SpawnParticle(spark); - LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 2.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue : Color.RoyalBlue); - GeneralParticleHandler.SpawnParticle(spark2); - } - return true; - } public override void OnKill(int timeLeft) { @@ -114,7 +86,7 @@ namespace CalamityMod.Projectiles.Ranged if (Projectile.numHits == 0) { Player Owner = Main.player[Projectile.owner]; - Projectile fishy = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center + Main.rand.NextVector2Circular(150, 150), Vector2.Zero, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + Projectile fishy = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center + Main.rand.NextVector2Circular(150, 150), Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 1.5f), Projectile.knockBack, Projectile.owner); fishy.ai[2] = ((Owner.Calamity().sharkGunDamageScaling + 1) * 0.02f) + 0.1f; } for (int i = 0; i < 4; ++i) @@ -135,9 +107,9 @@ namespace CalamityMod.Projectiles.Ranged } for (int i = 0; i <= 2; i++) { - LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue * 0.6f : Color.MediumBlue); + LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue : Color.RoyalBlue); GeneralParticleHandler.SpawnParticle(spark); - LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue * 0.6f : Color.MediumBlue); + LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue : Color.RoyalBlue); GeneralParticleHandler.SpawnParticle(spark2); } } @@ -168,9 +140,9 @@ namespace CalamityMod.Projectiles.Ranged } for (int i = 0; i <= 2; i++) { - LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); + LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue : Color.RoyalBlue); GeneralParticleHandler.SpawnParticle(spark); - LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); + LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue : Color.RoyalBlue); GeneralParticleHandler.SpawnParticle(spark2); } } diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index d626d3b204..3e22a47e69 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -1,6 +1,7 @@ using System; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; +using CalamityMod.Particles; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; @@ -52,13 +53,23 @@ namespace CalamityMod.Projectiles.Ranged else Projectile.velocity *= 0.9f; } - if (Main.rand.NextBool(3)) + if (Main.rand.NextBool(10)) { - Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), -Projectile.velocity.RotatedByRandom(0.2f) * Main.rand.NextFloat(0.1f, 0.5f)); - dust.noGravity = false; - dust.scale = 0.9f; - dust.color = Color.DodgerBlue; - dust.noLightEmittence = true; + Dust trailDust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(5, 5) - Projectile.velocity, 66); + trailDust.scale = Main.rand.NextFloat(0.7f, 0.85f); + trailDust.velocity = -Projectile.velocity * Main.rand.NextFloat(0.3f, 0.5f); + trailDust.color = Main.rand.NextBool() ? Color.AliceBlue : Color.SkyBlue; + trailDust.noGravity = true; + if (attacking) + { + Particle trail = new SparkParticle(Projectile.Center + Main.rand.NextVector2Circular(10, 10), -Projectile.velocity * Main.rand.NextFloat(0.2f, 0.8f), false, 15, Main.rand.NextFloat(0.6f, 0.8f), Color.RoyalBlue); + GeneralParticleHandler.SpawnParticle(trail); + } + } + if (Main.rand.NextBool(8) && !attacking) + { + Particle Star = new CritSpark(Projectile.Center, -Projectile.velocity * Main.rand.NextFloat(0.3f, 0.5f), Color.SkyBlue, Color.DeepSkyBlue, Main.rand.NextFloat(0.4f, 0.7f), 30, 0.1f, 3f); + GeneralParticleHandler.SpawnParticle(Star); } time++; } @@ -68,7 +79,8 @@ namespace CalamityMod.Projectiles.Ranged // Explode on kill if attacking, else just poof out if (attacking) { - SoundEngine.PlaySound(SoundID.Item110, Projectile.Center); + SoundStyle hitSound = new("CalamityMod/Sounds/NPCHit/AnahitaHit", 3); + SoundEngine.PlaySound(hitSound with { Volume = 2f }, Projectile.Center); // Create Blast (If you want to know how to use this blast, check the projectile, it tells you exactly how to use it!) float blastSize = 80; @@ -83,7 +95,7 @@ namespace CalamityMod.Projectiles.Ranged blast.DamageType = Projectile.DamageType; // Add visuals here - for (int i = 0; i < 20; i++) + for (int i = 0; i < 1; i++) { Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), Vector2.One.RotatedByRandom(100) * Main.rand.NextFloat(9, 12)); dust.noGravity = true; @@ -94,7 +106,7 @@ namespace CalamityMod.Projectiles.Ranged } else { - for (int i = 0; i < 10; i++) + for (int i = 0; i < 7; i++) { Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), Vector2.One.RotatedByRandom(100) * Main.rand.NextFloat(4, 6)); dust.noGravity = false; diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index 0a374d4fd8..01cd6c4b64 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Ranged { if (framesBetweenShots == 0 && shotCounter <= 51) { - Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 19; + Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; #region Debug Text Display //Main.NewText(shotCounter); //Main.NewText(Owner.Calamity().sharkGunDamageScaling); @@ -103,6 +103,10 @@ namespace CalamityMod.Projectiles.Ranged { if (framesBetweenShots == 0) { + SoundStyle hitSound = new("CalamityMod/Sounds/Custom/AuricMine", 3); + SoundEngine.PlaySound(hitSound with { Pitch = 1.1f , Volume = 2f }, Projectile.Center); + Particle Star = new CritSpark(GunTipPosition + (-Projectile.velocity.RotatedBy(0.1 * Projectile.direction) * 28), Vector2.Zero, Color.Goldenrod, Color.OrangeRed, 2f, 20, 0.2f, 3f); + GeneralParticleHandler.SpawnParticle(Star); Projectile.Kill(); for (int x = 0; x < Main.maxProjectiles; x++) { diff --git a/Projectiles/Ranged/Voidragon.cs b/Projectiles/Ranged/VoidBlast.cs similarity index 95% rename from Projectiles/Ranged/Voidragon.cs rename to Projectiles/Ranged/VoidBlast.cs index 558e564049..688bc52167 100644 --- a/Projectiles/Ranged/Voidragon.cs +++ b/Projectiles/Ranged/VoidBlast.cs @@ -7,7 +7,7 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { - public class Voidragon : ModProjectile, ILocalizedModType + public class VoidBlast : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; public override void SetStaticDefaults() @@ -31,11 +31,6 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { - if (Projectile.soundDelay == 0) - { - Projectile.soundDelay = 150 + Main.rand.Next(40); - SoundEngine.PlaySound(SoundID.Item92, Projectile.position); - } Projectile.localAI[0] += 1f; if (Projectile.localAI[0] == 12f) { diff --git a/Projectiles/Ranged/Voidragon.png b/Projectiles/Ranged/VoidBlast.png similarity index 100% rename from Projectiles/Ranged/Voidragon.png rename to Projectiles/Ranged/VoidBlast.png diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs new file mode 100644 index 0000000000..c7920929ed --- /dev/null +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -0,0 +1,179 @@ +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Particles; +using CalamityMod.Projectiles.BaseProjectiles; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using ReLogic.Utilities; +using Terraria; +using Terraria.Audio; +using Terraria.GameContent; +using Terraria.ModLoader; +using Terraria.ID; +using Steamworks; +using CalamityMod.Projectiles.Turret; +using Mono.Cecil; + +namespace CalamityMod.Projectiles.Ranged +{ + public class VoidragonHoldout : BaseGunHoldoutProjectile + { + public override int AssociatedItemID => ModContent.ItemType(); + public override float MaxOffsetLengthFromArm => 24f; + public override float OffsetXUpwards => -5f; + public override float BaseOffsetY => -1f; + public override float OffsetYDownwards => 5f; + public override Vector2 GunTipPosition => Projectile.Center + (Projectile.velocity * 50).RotatedBy(0.13f * Projectile.direction); + + public int Time = 0; + public int shotCounter = 0; + public int framesBetweenShots = 0; + public bool swapType = false; + + public override void KillHoldoutLogic() + { + //If the player is dead, kill the holdout. + if (Owner.CantUseHoldout() || HeldItem.type != Owner.ActiveItem().type) + Projectile.Kill(); + } + + public override void HoldoutAI() + { + //Pause to give the effect of reloading + if (Time == 30) + { + Player Owner = Main.player[Projectile.owner]; + SoundEngine.PlaySound(SoundID.Item149, Projectile.Center); + if (Main.netMode != NetmodeID.Server) + { + string goreType = "MegalodonMag"; + Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 18), Projectile.velocity.RotatedBy(2f * -Owner.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find(goreType).Type); + } + //Set the scaling to 0 whenever it reloads + Owner.Calamity().sharkGunDamageScaling = 0; + } + if (Time >= 90) + { + if (framesBetweenShots == 0 && shotCounter <= 51) + { + Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 19; + #region Debug Text Display + //Main.NewText(shotCounter); + //Main.NewText(Owner.Calamity().sharkGunDamageScaling); + #endregion + #region Visuals and Sounds + SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotTiny"); + SoundEngine.PlaySound(fire with { Volume = 0.4f, PitchVariance = 0.2f }, Projectile.Center); + Particle sparker = new CritSpark(GunTipPosition, Vector2.Zero, Color.Gold, Color.LightGoldenrodYellow, 1.7f, 3, 0.5f, 3f); + GeneralParticleHandler.SpawnParticle(sparker); + for (int i = 0; i <= 4; i++) + { + Dust dust = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(3) ? 303 : 244, (shootVelocity * Main.rand.NextFloat(0.2f, 1.1f)).RotatedByRandom(0.4f)); + dust.noGravity = true; + dust.scale = Main.rand.NextFloat(0.8f, 1.4f); + } + #endregion + + //How many frames between firing projectiles, and how far the gun moves backward to give the effect of recoil. Change this number to edit fire rate + framesBetweenShots = 3; + OffsetLengthFromArm -= 3f; + //Here we detect which ammo the bullets will use + Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + //Alternate between shooting bullets and water streams. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier + if (!swapType) + { + Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); + CalamityGlobalProjectile cgp = scalingShot.Calamity(); + cgp.sharkBullets = true; + //Only eject casings from the gun if bullets are fired, preventing too many at once + if (Main.netMode != NetmodeID.Server) + { + string goreType = "MegalodonCasing"; + Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 18), -Projectile.velocity * 4f, Mod.Find(goreType).Type); + } + } + if (swapType) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + } + swapType = !swapType; + shotCounter++; + //Allow a pause before firing the rocket. This allows the final bullet a chance to hit before the rocket is fired. Lowering this number reduces the delay, but may also cause the gun to become inconsistent + if (shotCounter == 50) + framesBetweenShots = 18; + } + if (framesBetweenShots > 0) + framesBetweenShots--; + } + if (shotCounter == 50 && framesBetweenShots == 0) + { + if (framesBetweenShots == 0) + { + Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; + //Debug Text + //Main.NewText(Owner.Calamity().sharkGunDamageScaling); + #region Visuals and Sounds + SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); + SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = 0.2f }, Projectile.Center); + for (int i = 0; i <= 13; i++) + { + Dust dust = Dust.NewDustPerfect(GunTipPosition, 303, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.2f, 1.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); + dust.noGravity = false; + dust.color = Color.White; + + Dust dust2 = Dust.NewDustPerfect(GunTipPosition, 278, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.1f, 0.8f)); + dust2.noGravity = true; + dust2.scale = Main.rand.NextFloat(0.52f, 0.72f); + dust2.color = Color.Lerp(Color.Orange, Color.Gold, Main.rand.NextFloat(0f, 1f)); + } + for (int i = 0; i < 14; i++) + { + Particle smoke = new HeavySmokeParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.6f) * Main.rand.NextFloat(0.2f, 1.5f), Color.RoyalBlue, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); + GeneralParticleHandler.SpawnParticle(smoke); + } + float rotation = Projectile.velocity.ToRotation(); + Particle pulse = new DirectionalPulseRing(GunTipPosition, shootVelocity / 4, Color.Gray, new Vector2(1f, 2.5f), rotation, 0.03f, 0.3f, 20); + GeneralParticleHandler.SpawnParticle(pulse); + //Extra sound and muzzle flash if the scaling is at max + if (Owner.Calamity().sharkGunDamageScaling == 30) + { + SoundStyle fireperfect = new("CalamityMod/Sounds/Item/ShadowboltReflect"); + SoundEngine.PlaySound(fireperfect with { Volume = 0.6f, Pitch = 0f }, GunTipPosition); + GenericSparkle sparker = new GenericSparkle(GunTipPosition, Vector2.Zero, Color.DarkGoldenrod, Color.Gold, Main.rand.NextFloat(1.1f, 1.8f), 10, 2f, 2.68f); + GeneralParticleHandler.SpawnParticle(sparker); + } + #endregion + + //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage + if (Owner.Calamity().sharkGunDamageScaling == 0) + { + Owner.Calamity().sharkGunDamageScaling++; + } + //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); + + //After firing the rocket, kill the projectile to allow left click to be held down + Projectile.Kill(); + } + else + { + framesBetweenShots--; + } + } + Time++; + } + public override bool PreDraw(ref Color lightColor) + { + if (Time < 2) + return false; + Texture2D texture = TextureAssets.Projectile[Type].Value; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); + Vector2 rotationPoint = texture.Size() * 0.5f; + SpriteEffects flipSprite = (Projectile.spriteDirection * Owner.gravDir == -1) ? SpriteEffects.FlipHorizontally : SpriteEffects.None; + + Main.EntitySpriteDraw(texture, drawPosition, null, Projectile.GetAlpha(lightColor), drawRotation, rotationPoint, Projectile.scale * Owner.gravDir, flipSprite); + return false; + } + } +} From c8e257506314ceac8a86f1862d807adfe986110b Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Thu, 21 Nov 2024 14:14:20 -0800 Subject: [PATCH 13/50] More visuals :D --- Projectiles/Ranged/SeaDragonRocket.cs | 9 +++------ Projectiles/Ranged/SeadragonHoldout.cs | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index 3e22a47e69..060406a7af 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -95,13 +95,10 @@ namespace CalamityMod.Projectiles.Ranged blast.DamageType = Projectile.DamageType; // Add visuals here - for (int i = 0; i < 1; i++) + for (int i = 0; i < 3; i++) { - Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), Vector2.One.RotatedByRandom(100) * Main.rand.NextFloat(9, 12)); - dust.noGravity = true; - dust.scale = 1.8f; - dust.color = Color.Cyan; - dust.noLightEmittence = true; + Particle Star = new CritSpark(Projectile.Center, Vector2.One.RotatedByRandom(100) * Main.rand.NextFloat(4, 5), Color.SkyBlue, Main.rand.NextBool() ? Color.LightPink : Color.SkyBlue, Main.rand.NextFloat(0.4f, 0.7f), 30, 0.1f, 3f); + GeneralParticleHandler.SpawnParticle(Star); } } else diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index 01cd6c4b64..e9d906b7e2 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -103,8 +103,8 @@ namespace CalamityMod.Projectiles.Ranged { if (framesBetweenShots == 0) { - SoundStyle hitSound = new("CalamityMod/Sounds/Custom/AuricMine", 3); - SoundEngine.PlaySound(hitSound with { Pitch = 1.1f , Volume = 2f }, Projectile.Center); + SoundStyle hitSound = new("CalamityMod/Sounds/Custom/RogueStealth"); + SoundEngine.PlaySound(hitSound with { Pitch = 0.8f , Volume = 2f }, Projectile.Center); Particle Star = new CritSpark(GunTipPosition + (-Projectile.velocity.RotatedBy(0.1 * Projectile.direction) * 28), Vector2.Zero, Color.Goldenrod, Color.OrangeRed, 2f, 20, 0.2f, 3f); GeneralParticleHandler.SpawnParticle(Star); Projectile.Kill(); From 0841ff93283a6166eba186eba230e0f7cc0fc730 Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 21 Nov 2024 14:17:13 -0800 Subject: [PATCH 14/50] You know what that means FISH --- Projectiles/Ranged/SeadragonHoldout.cs | 19 +++++++++++++++++++ Sounds/Custom/GFB/FISH.ogg | Bin 0 -> 11788 bytes Sounds/Custom/GFB/YouKnowWhatThatMeans.ogg | Bin 0 -> 25446 bytes 3 files changed, 19 insertions(+) create mode 100644 Sounds/Custom/GFB/FISH.ogg create mode 100644 Sounds/Custom/GFB/YouKnowWhatThatMeans.ogg diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index 01cd6c4b64..6e920dddf5 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -94,7 +94,14 @@ namespace CalamityMod.Projectiles.Ranged swapType = !swapType; shotCounter++; if (shotCounter == 50) + { framesBetweenShots = 18; + } + if (Main.zenithWorld && shotCounter == 35) + { + SoundStyle joke = new("CalamityMod/Sounds/Custom/GFB/YouKnowWhatThatMeans"); + SoundEngine.PlaySound(joke with { Volume = 1f }, Projectile.Center); + } } if (framesBetweenShots > 0) framesBetweenShots--; @@ -116,6 +123,18 @@ namespace CalamityMod.Projectiles.Ranged projectile.ai[1] = 5; projectile.velocity = Utils.DirectionTo(projectile.Center, Owner.Calamity().mouseWorld) * 12; } + if (Main.zenithWorld && projectile.type != ModContent.ProjectileType()) + { + SoundStyle joke = new("CalamityMod/Sounds/Custom/GFB/FISH"); + SoundEngine.PlaySound(joke with { Volume = 0.35f, MaxInstances = -1 }, projectile.Center); + for (int i = 0; i < 2; i++) + { + Projectile fishy = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), projectile.Center, (Vector2.One * 10).RotatedByRandom(100), ModContent.ProjectileType(), (int)(Projectile.damage + projectile.damage) * 3, Projectile.knockBack, Projectile.owner); + fishy.ai[2] = Main.rand.NextFloat(0.1f, 0.4f); + fishy.ai[1] = 5; + } + projectile.timeLeft = 1; + } } } } diff --git a/Sounds/Custom/GFB/FISH.ogg b/Sounds/Custom/GFB/FISH.ogg new file mode 100644 index 0000000000000000000000000000000000000000..448f3e39245d06cb63f4b6e021f57e70ff9d688a GIT binary patch literal 11788 zcmch7d0f)j*Z&34K+#aq(6m4?!LXFH)X_p*0$frA6Vr0T6qn4UX`Rqek z{MSTO`Zkjl)WI(@E@I7=_?`IZ$PnMf`SDCV)q-kavBAO$Ph#`Kl0qY6cj8@Q_e93; zijCpNCX$t*aqFNDhskkwaWIbI^An*i=AjY6iTHzfr{L(|n8?I^cxV0|ybnKq4?iAn zj(3hs2;CJQhJ=PWZSmwdI&mDn(H`y3tdGo3`0jM zrWccIisGTEz8wn>gwQd;=3FeZ89Uf)Fg!-w@|NPQZ9TTm#fRg;g;G-B);;{`JxSAh z4)Kaow_QBMyO_G|W@_M{slm9k@A5|@G-fOTD5ed#|!P>3A> znx#SSZi8zOH`wOm@zz@t9HtXIrXf}+IPyQIvDn@*&>9d#g!wS z(BD>qI*7}k;7dkJ-VNJol+2dZVNZ;AW^hiJUaBiPu_(dl5xvKdEXf1Ky=BFtB?%); zbV>C$YM<7LC5?4ApfeN=olL9i%9VhVBu& z`KE4+6WS6&F~u4}aaQZoQwe8m8Bx`(Q~s-~rEC_t`kO{ULdA#WII8F^DoI*V`~bNY z(u)5S+-u@>O~bMO$k*Q(cx#zJd5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D47xigMORII*EH&UKH9_o8uYY0{mfy0-Uq4KL z#(dZx`|8b?A8u}nc-AHuiu!X``{9HidW>e>Y=q zeOcS?1t+(_$`3vVP~}*JS`Ievwl2*UsVw{{XGdHYE{QK?-I`^8?5f9aBdh+F!)iL~ zG@UrVYpI!LW5c!>wWQ%6Vo&=z+*d!{Yp~98^6y>mHrnjJTv?imJ`?aWj$+5T>@)Ea z%bzGSsXaTL@M`^@o1;w+4rdJJEPUduNOI z&RP%e;rWpf9o0`OSUM)v=}D?l;+ZBh!!?8Bmi~{9Z;{#5w46WGDraqLicpK-75wO4 zKPLA}uu)fK443!#P;ff5EW=R4B*V%I+0D3s-+y`E!aBM>9Da3XZ1Wm{#)13#s*Nsp zRO+HOj)a`vZNB5zue$?EPOaFoZ~L29BWhO{?l*@J{ikHWVBvx~Q^QXpoS$p(&`*H-XMDE zQ{%yw%14s?%%{xFvGivFhG z{l^~ZTy8jHHc-O6BEP-5sKH?UfWMyd)>Kkd+Q9RKTeCM>LtNgxtxtM$t+yzpr`M#m zUCn6Ohi6jm{*embe9j>VI*R{ErnITf>CkyxUqg?O1s+qzd!P)U(D`(_UZGl z$9H{s|Ni~Nbk?TRpP#7h*NHs)o}aDn5ET9R&F6_nCnBu${r^=7QO6-RbW0?0?|A)WtY1=yZ$y)t9 zgY8$=ea+wag)2Dw?)ChkrD0-w#Kwckey43xFI*UlNW54qTl?FN72w_(&8EMOZ1VCn I{Zs?{KecR|761SM literal 0 HcmV?d00001 diff --git a/Sounds/Custom/GFB/YouKnowWhatThatMeans.ogg b/Sounds/Custom/GFB/YouKnowWhatThatMeans.ogg new file mode 100644 index 0000000000000000000000000000000000000000..a56c7d53051c50afcb43e186e3777020f7a25444 GIT binary patch literal 25446 zcmce-d0diN`#5|+R6sIBG&HjtL<2N)oz!VTL<3v`L<7^ty~GxCX{>2x5K+<8lyIFE zMNvR()Us`Aa?h>RrKV<@tenbbX`7jvr^)xW=6Sx$`}zES?_clv+}>X2aMtTw`#JZ< z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zoW(ex%^5J%8ba$rYkPZK{@Py}WfSSo0tpW%2^e@8}T49)uL&N~#AcmgR)!|M}bN zL>(^2^TpdA?+2?z)ANQR->&sabfqB8%W5ANmTM~;tgTXywO;&>!w`?BlFvR({`KW)QELRp4N@IP6l@<#vw literal 0 HcmV?d00001 From d3d130cc374d42b8c7f653ab254626ed1eda4cd1 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Thu, 21 Nov 2024 16:08:03 -0800 Subject: [PATCH 15/50] Rocket Polish --- Projectiles/Ranged/SeaDragonRocket.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index 060406a7af..1e49356550 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -3,6 +3,7 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Particles; using CalamityMod.Projectiles.Typeless; +using CalamityMod.Tiles.Abyss; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -62,13 +63,13 @@ namespace CalamityMod.Projectiles.Ranged trailDust.noGravity = true; if (attacking) { - Particle trail = new SparkParticle(Projectile.Center + Main.rand.NextVector2Circular(10, 10), -Projectile.velocity * Main.rand.NextFloat(0.2f, 0.8f), false, 15, Main.rand.NextFloat(0.6f, 0.8f), Color.RoyalBlue); + Particle trail = new SparkParticle(Projectile.Center + Main.rand.NextVector2Circular(10, 10), -Projectile.velocity * Main.rand.NextFloat(0.2f, 0.8f), false, 15, Main.rand.NextFloat(0.6f, 0.8f), Main.rand.NextBool(3) ? Color.SeaGreen : Color.SkyBlue); GeneralParticleHandler.SpawnParticle(trail); } } if (Main.rand.NextBool(8) && !attacking) { - Particle Star = new CritSpark(Projectile.Center, -Projectile.velocity * Main.rand.NextFloat(0.3f, 0.5f), Color.SkyBlue, Color.DeepSkyBlue, Main.rand.NextFloat(0.4f, 0.7f), 30, 0.1f, 3f); + Particle Star = new CritSpark(Projectile.Center, -Projectile.velocity * Main.rand.NextFloat(0.3f, 0.5f), Color.SkyBlue, Main.rand.NextBool(3) ? Color.SeaGreen : Color.SkyBlue, Main.rand.NextFloat(0.4f, 0.7f), 30, 0.1f, 3f); GeneralParticleHandler.SpawnParticle(Star); } time++; @@ -79,9 +80,10 @@ namespace CalamityMod.Projectiles.Ranged // Explode on kill if attacking, else just poof out if (attacking) { - SoundStyle hitSound = new("CalamityMod/Sounds/NPCHit/AnahitaHit", 3); - SoundEngine.PlaySound(hitSound with { Volume = 2f }, Projectile.Center); - + SoundStyle hitSound = new SoundStyle("CalamityMod/Sounds/Custom/PlantyMushMine", 3); + SoundEngine.PlaySound(hitSound with { Volume = 1.5f , Pitch = 0.7f , MaxInstances = -1 }, Projectile.Center); + SoundStyle hitSound2 = new("CalamityMod/Sounds/NPCHit/AnahitaHit", 3); + SoundEngine.PlaySound(hitSound2 with { Volume = 3f }, Projectile.Center); // Create Blast (If you want to know how to use this blast, check the projectile, it tells you exactly how to use it!) float blastSize = 80; float minMultiplier = 0.25f; @@ -97,9 +99,13 @@ namespace CalamityMod.Projectiles.Ranged // Add visuals here for (int i = 0; i < 3; i++) { - Particle Star = new CritSpark(Projectile.Center, Vector2.One.RotatedByRandom(100) * Main.rand.NextFloat(4, 5), Color.SkyBlue, Main.rand.NextBool() ? Color.LightPink : Color.SkyBlue, Main.rand.NextFloat(0.4f, 0.7f), 30, 0.1f, 3f); + Particle Star = new CritSpark(Projectile.Center, Vector2.One.RotatedByRandom(100) * Main.rand.NextFloat(4, 5), Color.SkyBlue, Main.rand.NextBool() ? Color.HotPink : Color.SeaGreen, Main.rand.NextFloat(0.6f, 0.9f), 30, 0.4f, 3f); GeneralParticleHandler.SpawnParticle(Star); } + Particle blastRing = new CustomPulse(Projectile.Center, Vector2.Zero, Color.SeaGreen, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(-10, 10), 0f, 0.02f, 12, true); + GeneralParticleHandler.SpawnParticle(blastRing); + Particle blastRing2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.HotPink, "CalamityMod/Particles/DetailedExplosion", Vector2.One, Main.rand.NextFloat(-10, 10), 0f, 0.25f, 12, true, 0.9f); + GeneralParticleHandler.SpawnParticle(blastRing2); } else { From 97dc479ac801dd2cffe9ded6665dac60ac5f0a08 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sun, 1 Dec 2024 14:44:50 -0800 Subject: [PATCH 16/50] Seadragon Finish --- Items/Weapons/Ranged/Seadragon.cs | 5 +--- Projectiles/Ranged/SeaDragonRocket.cs | 36 ++++++++++++++++++++------ Projectiles/Ranged/SeadragonHoldout.cs | 6 ++--- 3 files changed, 32 insertions(+), 15 deletions(-) diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index d32dff6182..c4513c0654 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -15,10 +15,6 @@ namespace CalamityMod.Items.Weapons.Ranged public class Seadragon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; - // Odd shots are bullets (including the first). Even shots are water jets. - // The 9th shot adds a rocket. The 17th shot adds an ultra powerful muzzle blast, then resets the counter to 2. - // This is intentional so you don't get the muzzle blast instantly when you start firing and have to play around it. - private int shotCounter = 1; public override void SetDefaults() { @@ -44,6 +40,7 @@ namespace CalamityMod.Items.Weapons.Ranged } public override Vector2? HoldoutOffset() => new Vector2(-10, 0); + public override bool RangedPrefix() => true; //Can't scale with attack speed, but should still be able to recieve Unreal public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index 1e49356550..83ee09dc7b 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -1,12 +1,14 @@ using System; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; +using CalamityMod.NPCs.SunkenSea; using CalamityMod.Particles; using CalamityMod.Projectiles.Typeless; using CalamityMod.Tiles.Abyss; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged @@ -41,7 +43,7 @@ namespace CalamityMod.Projectiles.Ranged if (attacking) // Fly at the enemy { NPC chosenTarget = Projectile.Center.ClosestNPCAt(600); - CalamityUtils.HomeInOnSelectedNPC(Projectile, chosenTarget, true, 0.4f + moveSpeed, 16, 0.985f); + CalamityUtils.HomeInOnSelectedNPC(Projectile, chosenTarget, true, 1.5f + moveSpeed, 25, 0.985f); if (chosenTarget != null) Projectile.timeLeft++; // Don't die if you have a target to home in on } @@ -75,15 +77,27 @@ namespace CalamityMod.Projectiles.Ranged time++; } + public override void OnSpawn(IEntitySource source) + { + for (int i = 0; i < 15; i++) + { + Vector2 velocity = (MathHelper.TwoPi * i / 15f).ToRotationVector2() * 3f; + Dust ring = Dust.NewDustPerfect(Projectile.Center, 66, velocity); + ring.noGravity = true; + ring.scale = Main.rand.NextFloat(0.5f, 0.7f); + ring.color = Color.CornflowerBlue; + } + } + public override void OnKill(int timeLeft) { // Explode on kill if attacking, else just poof out if (attacking) { - SoundStyle hitSound = new SoundStyle("CalamityMod/Sounds/Custom/PlantyMushMine", 3); - SoundEngine.PlaySound(hitSound with { Volume = 1.5f , Pitch = 0.7f , MaxInstances = -1 }, Projectile.Center); + SoundEngine.PlaySound(SoundID.NPCDeath19 with { Volume = 2.5f }, Projectile.position); SoundStyle hitSound2 = new("CalamityMod/Sounds/NPCHit/AnahitaHit", 3); - SoundEngine.PlaySound(hitSound2 with { Volume = 3f }, Projectile.Center); + SoundEngine.PlaySound(hitSound2 with { Volume = 1.1f }, Projectile.Center); + SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode.WithPitchOffset(0.8f) with { Volume = 1.1f }, Projectile.position); // Create Blast (If you want to know how to use this blast, check the projectile, it tells you exactly how to use it!) float blastSize = 80; float minMultiplier = 0.25f; @@ -102,10 +116,16 @@ namespace CalamityMod.Projectiles.Ranged Particle Star = new CritSpark(Projectile.Center, Vector2.One.RotatedByRandom(100) * Main.rand.NextFloat(4, 5), Color.SkyBlue, Main.rand.NextBool() ? Color.HotPink : Color.SeaGreen, Main.rand.NextFloat(0.6f, 0.9f), 30, 0.4f, 3f); GeneralParticleHandler.SpawnParticle(Star); } - Particle blastRing = new CustomPulse(Projectile.Center, Vector2.Zero, Color.SeaGreen, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(-10, 10), 0f, 0.02f, 12, true); - GeneralParticleHandler.SpawnParticle(blastRing); - Particle blastRing2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.HotPink, "CalamityMod/Particles/DetailedExplosion", Vector2.One, Main.rand.NextFloat(-10, 10), 0f, 0.25f, 12, true, 0.9f); - GeneralParticleHandler.SpawnParticle(blastRing2); + int points = 4; + float radians = MathHelper.TwoPi / points; + Vector2 spinningPoint = Vector2.Normalize(new Vector2(-1f, -1f)).RotatedByRandom(100); + Color useColor = Main.rand.NextBool() ? Color.SkyBlue : Color.HotPink; + for (int k = 0; k < points; k++) + { + Vector2 velocity = spinningPoint.RotatedBy(radians * k).RotatedBy(-0.45f); + Particle spark = new GlowSparkParticle((Projectile.Center + velocity * 7.5f), velocity * 0.5f, false, 11, 0.03f, useColor, new Vector2(1f, 0.4f), true, false); + GeneralParticleHandler.SpawnParticle(spark); + } } else { diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index a0ad8db2ea..5afba098c8 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Ranged #endregion #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotTiny"); - SoundEngine.PlaySound(fire with { Volume = 0.5f, Pitch = 0.3f , PitchVariance = 0.1f, MaxInstances = -1 }, Projectile.Center); + SoundEngine.PlaySound(fire with { Volume = 0.3f, Pitch = 0.25f , PitchVariance = 0.1f, MaxInstances = -1 }, Projectile.Center); Particle sparker = new CustomPulse(GunTipPosition, Vector2.Zero, Color.HotPink, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.02f, 0.5f, 10, true, 0.8f); GeneralParticleHandler.SpawnParticle(sparker); GenericSparkle sparker2 = new GenericSparkle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.SeaShell : Color.Silver * 0.9f, Color.HotPink, Main.rand.NextFloat(0.8f, 1.2f), 2, 0, 2.68f); @@ -110,8 +110,8 @@ namespace CalamityMod.Projectiles.Ranged { if (framesBetweenShots == 0) { - SoundStyle hitSound = new("CalamityMod/Sounds/Custom/RogueStealth"); - SoundEngine.PlaySound(hitSound with { Pitch = 0.8f , Volume = 2f }, Projectile.Center); + SoundStyle hitSound = new("CalamityMod/Sounds/Item/SevensStrikerTriples"); + SoundEngine.PlaySound(hitSound with { Volume = 0.5f , Pitch = 0.8f }, Projectile.Center); Particle Star = new CritSpark(GunTipPosition + (-Projectile.velocity.RotatedBy(0.1 * Projectile.direction) * 28), Vector2.Zero, Color.Goldenrod, Color.OrangeRed, 2f, 20, 0.2f, 3f); GeneralParticleHandler.SpawnParticle(Star); Projectile.Kill(); From 23665d43634c0718a814043f08e88b0ae7c718fb Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sun, 1 Dec 2024 14:52:21 -0800 Subject: [PATCH 17/50] Megalodon can now reforge to Unreal --- Items/Weapons/Ranged/Megalodon.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index 441f1292ea..f9b451e221 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -39,6 +39,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.Calamity().canFirePointBlankShots = true; } public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; + public override bool RangedPrefix() => true; //Can't scale with attack speed, but should still be able to recieve Unreal public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { From f5d898f928d1e81c08ea1e49d8d5d14aa6330b3d Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Mon, 2 Dec 2024 17:09:05 -0800 Subject: [PATCH 18/50] Voidragon start, Void Blast visuals --- Items/Weapons/Ranged/Voidragon.cs | 5 +- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 7 +- Projectiles/Ranged/VoidBlast.cs | 72 ++++++++++++++----- Projectiles/Ranged/VoidragonHoldout.cs | 30 ++++++-- 4 files changed, 86 insertions(+), 28 deletions(-) diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index 8970a95a8c..5f865a3a56 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 96; Item.height = 38; - Item.damage = 240; + Item.damage = 1404; Item.DamageType = DamageClass.Ranged; Item.useTime = 5; Item.useAnimation = 5; @@ -48,6 +48,7 @@ namespace CalamityMod.Items.Weapons.Ranged } public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; + public override bool RangedPrefix() => true; //Can't scale with attack speed, but should still be able to recieve Unreal public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { @@ -60,7 +61,7 @@ namespace CalamityMod.Items.Weapons.Ranged { CreateRecipe(). AddIngredient(). - AddIngredient(). + AddIngredient(). AddIngredient(5). AddTile(). Register(); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 2a017a725e..3a9b6a550e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1446,9 +1446,10 @@ Voidragon: { DisplayName: Voidragon Tooltip: ''' - Fires void blasts that explode every other shot - Shoots demon flame tentacles alongside every shot - 75% chance to save ammo + Loads a 50 round magazine of bullets and concentrated void blasts + After firing, the gun unleashes a powerful homing rocket before reloading + Rocket damage is based on how many shots hit + 'Fade to black' ''' } diff --git a/Projectiles/Ranged/VoidBlast.cs b/Projectiles/Ranged/VoidBlast.cs index 688bc52167..53ce8804ea 100644 --- a/Projectiles/Ranged/VoidBlast.cs +++ b/Projectiles/Ranged/VoidBlast.cs @@ -1,4 +1,7 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Particles; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -10,11 +13,7 @@ namespace CalamityMod.Projectiles.Ranged public class VoidBlast : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; - public override void SetStaticDefaults() - { - ProjectileID.Sets.TrailCacheLength[Type] = 10; - ProjectileID.Sets.TrailingMode[Type] = 0; - } + public override string Texture => "CalamityMod/Projectiles/Melee/GalaxiaBolt"; public override void SetDefaults() { @@ -58,7 +57,8 @@ namespace CalamityMod.Projectiles.Ranged { Projectile.alpha = alphaControl; } - Projectile.rotation = Projectile.velocity.ToRotation() - 1.57079637f; + Projectile.spriteDirection = Projectile.direction = (Projectile.velocity.X > 0).ToDirectionInt(); + Projectile.rotation = Projectile.velocity.ToRotation() + (Projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) + MathHelper.ToRadians(90) * Projectile.direction; if (Main.rand.NextBool(16)) { Vector2 value3 = Vector2.UnitX.RotatedByRandom(1.5707963705062866).RotatedBy((double)Projectile.velocity.ToRotation(), default); @@ -86,26 +86,64 @@ namespace CalamityMod.Projectiles.Ranged } Lighting.AddLight(Projectile.Center, (255 - Projectile.alpha) * 0.1f / 255f, (255 - Projectile.alpha) * 0.7f / 255f, (255 - Projectile.alpha) * 0.15f / 255f); } - - public override bool PreDraw(ref Color lightColor) - { - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor, 1); - return false; - } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 180); + if (Projectile.numHits == 0) + { + Player Owner = Main.player[Projectile.owner]; + Owner.Calamity().sharkGunDamageScaling++; + } } public override void OnKill(int timeLeft) { - if (Projectile.owner == Main.myPlayer) + SoundStyle fire = new("CalamityMod/Sounds/Item/OmicronBeam"); + SoundEngine.PlaySound(fire with { Volume = 0.9f }, Projectile.Center); + float blastSize = 170; + float minMultiplier = 0.25f; + int hitsToMinMult = 5; + Projectile blast = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f), Projectile.knockBack, Projectile.owner, blastSize, minMultiplier, hitsToMinMult); + blast.timeLeft = 2; + blast.DamageType = Projectile.DamageType; + for (float k = 0; k < 3; k++) { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 1f); + float colorRando = Main.rand.NextFloat(0, 1); + int partLifetime = Main.rand.Next(13, 15 + 1); + float scale = Main.rand.NextFloat(0.10f, 0.16f); + Vector2 spawnPos = Projectile.Center + (Main.rand.NextVector2Circular(20, 20) * (k + 1)); + Particle blastRing = new CustomPulse(spawnPos, Vector2.Zero, Color.Lerp(Color.DarkOrchid, Color.Indigo, colorRando) * 0.6f, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(-10, 10), 0.07f, scale, partLifetime); + GeneralParticleHandler.SpawnParticle(blastRing); } - SoundEngine.PlaySound(SoundID.Item10, Projectile.position); - for (int k = 0; k < 5; k++) + for (int i = 0; i < 3; i++) { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.ShadowbeamStaff, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); + Particle blastRing = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Black, "CalamityMod/Particles/SmallBloom", Vector2.One, Main.rand.NextFloat(-10, 10), 1f, 1.2f, 15, false); + GeneralParticleHandler.SpawnParticle(blastRing); + } + Particle innerGlow = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Indigo, "CalamityMod/Particles/BloomCircle", Vector2.One, 0f, 0.03f, 1f, 24, true); + GeneralParticleHandler.SpawnParticle(innerGlow); + float offset = Main.rand.NextFloat(MathHelper.TwoPi); + for (int i = 0; i < 4; i++) + { + Vector2 velocity = (MathHelper.TwoPi * i / 4f + offset).ToRotationVector2(); + Particle cross = new GlowSparkParticle(Projectile.Center, velocity, false, 12, 0.4f, Color.BlueViolet * 0.7f, new Vector2(0.07f, 0.08f), true, false); + GeneralParticleHandler.SpawnParticle(cross); + } + for (float k = 0; k < 10; k++) + { + Particle spark = new CustomSpark(Projectile.Center, new Vector2(3, 3).RotatedByRandom(100) * Main.rand.NextFloat(2f, 4f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 27, Main.rand.NextFloat(1.1f, 1.3f), Color.Lerp(Color.MediumPurple, Color.Indigo, Main.rand.NextFloat(0.5f, 0.7f)), new Vector2(0.6f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.35f, 0.4f)); + GeneralParticleHandler.SpawnParticle(spark); + } + if (Main.rand.NextBool()) + { + for (int i = 0; i < 30; i++) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center, Main.rand.Next(72, 73 + 1), Main.rand.NextVector2CircularEdge(8f, 8f) * (Main.rand.NextFloat(1f, 1.2f) + Projectile.scale)); + dust.noGravity = true; + dust.noLight = true; + dust.scale = Main.rand.NextFloat(0.8f, 1.2f) + Projectile.scale; + dust.alpha = Main.rand.Next(120, 180 + 1); + } } } } diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index c7920929ed..8eadb4d13d 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -13,17 +13,20 @@ using Terraria.ID; using Steamworks; using CalamityMod.Projectiles.Turret; using Mono.Cecil; +using Newtonsoft.Json.Serialization; +using CalamityMod.Dusts; +using CalamityMod.Projectiles.DraedonsArsenal; namespace CalamityMod.Projectiles.Ranged { public class VoidragonHoldout : BaseGunHoldoutProjectile { public override int AssociatedItemID => ModContent.ItemType(); - public override float MaxOffsetLengthFromArm => 24f; + public override float MaxOffsetLengthFromArm => 40f; public override float OffsetXUpwards => -5f; public override float BaseOffsetY => -1f; public override float OffsetYDownwards => 5f; - public override Vector2 GunTipPosition => Projectile.Center + (Projectile.velocity * 50).RotatedBy(0.13f * Projectile.direction); + public override Vector2 GunTipPosition => Projectile.Center + (Projectile.velocity * 55).RotatedBy(-0.05f * Projectile.direction); public int Time = 0; public int shotCounter = 0; @@ -39,6 +42,17 @@ namespace CalamityMod.Projectiles.Ranged public override void HoldoutAI() { + for (int i = 0; i < 2; i++) + { + int dustType = ModContent.DustType(); + float rotMulti = Main.rand.NextFloat(0.3f, 1f); + Dust dust = Dust.NewDustPerfect(GunTipPosition + (-Projectile.velocity.RotatedBy(0.15 * Projectile.direction) * 50), dustType); + dust.scale = Main.rand.NextFloat(1.2f, 1.8f) * (Owner.Calamity().sharkGunDamageScaling * 0.02f) - rotMulti * 0.1f; + dust.noGravity = true; + dust.velocity = new Vector2(-1.2f, -2).RotatedBy(-Owner.direction).RotatedByRandom(rotMulti * 0.8f) * (Main.rand.NextFloat(1f, 3.2f) - rotMulti) * (Owner.Calamity().sharkGunDamageScaling * 0.015f); + dust.alpha = Main.rand.Next(90, 150); + dust.color = Main.rand.NextBool() ? Color.Indigo : Color.DarkBlue; + } //Pause to give the effect of reloading if (Time == 30) { @@ -63,7 +77,7 @@ namespace CalamityMod.Projectiles.Ranged #endregion #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotTiny"); - SoundEngine.PlaySound(fire with { Volume = 0.4f, PitchVariance = 0.2f }, Projectile.Center); + SoundEngine.PlaySound(fire with { Volume = 0.3f, Pitch = 0.4f, PitchVariance = 0.1f, MaxInstances = -1 }, Projectile.Center); Particle sparker = new CritSpark(GunTipPosition, Vector2.Zero, Color.Gold, Color.LightGoldenrodYellow, 1.7f, 3, 0.5f, 3f); GeneralParticleHandler.SpawnParticle(sparker); for (int i = 0; i <= 4; i++) @@ -76,7 +90,7 @@ namespace CalamityMod.Projectiles.Ranged //How many frames between firing projectiles, and how far the gun moves backward to give the effect of recoil. Change this number to edit fire rate framesBetweenShots = 3; - OffsetLengthFromArm -= 3f; + OffsetLengthFromArm -= 2.5f; //Here we detect which ammo the bullets will use Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); //Alternate between shooting bullets and water streams. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier @@ -100,7 +114,11 @@ namespace CalamityMod.Projectiles.Ranged shotCounter++; //Allow a pause before firing the rocket. This allows the final bullet a chance to hit before the rocket is fired. Lowering this number reduces the delay, but may also cause the gun to become inconsistent if (shotCounter == 50) - framesBetweenShots = 18; + { + framesBetweenShots = 150; + SoundStyle charge = new("CalamityMod/Sounds/Custom/MoonLordLaserCharge"); + SoundEngine.PlaySound(charge with { Volume = 1.5f }, Projectile.Center, _ => new ProjectileAudioTracker(Projectile).IsActiveAndInGame()); + } } if (framesBetweenShots > 0) framesBetweenShots--; @@ -150,7 +168,7 @@ namespace CalamityMod.Projectiles.Ranged Owner.Calamity().sharkGunDamageScaling++; } //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); //After firing the rocket, kill the projectile to allow left click to be held down Projectile.Kill(); From d82e5d5b1f79a0475dd2848553d2a4e6a54020cb Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sun, 5 Jan 2025 10:22:43 -0800 Subject: [PATCH 19/50] Void Blast visuals --- Items/Weapons/Ranged/Voidragon.cs | 2 +- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 7 +- Projectiles/CalamityGlobalProjectile.cs | 10 +- Projectiles/Ranged/VoidBlast.cs | 112 ++++++++---------- Projectiles/Ranged/VoidragonHoldout.cs | 12 +- 5 files changed, 65 insertions(+), 78 deletions(-) diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index 5f865a3a56..c564b46641 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 96; Item.height = 38; - Item.damage = 1404; + Item.damage = 2088; Item.DamageType = DamageClass.Ranged; Item.useTime = 5; Item.useAnimation = 5; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 9e5c00e61c..6756f53624 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1447,9 +1447,10 @@ Voidragon: { Tooltip: ''' Loads a 50 round magazine of bullets and concentrated void blasts - After firing, the gun unleashes a powerful homing rocket before reloading - Rocket damage is based on how many shots hit - 'Fade to black' + After firing, the gun unleashes a beam of abyssal fire that erases foes from existence + The beam grows more powerful based on the amount of shots hit + At maximum damage, abyssal portals rotate around the user that constantly summon creatures from beyond + 'Fade to black' ''' } diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 3953ea2929..fb8fdbc858 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -116,13 +116,13 @@ namespace CalamityMod.Projectiles /// If true, adds a fire trail to the projectile, and makes it inflict Hellfire.
/// Used by Thermocline Blaster. /// - - // Used by Megalodon, Seadragon & Voidragon, allows bullets to track their damage scaling - public bool sharkBullets = false; - - // Adds fire to bullets, currently used by Thermocline Blaster public bool fireBullet = false; ///

+ /// If true, allows projectiles to track damage scaling.
+ /// Used by Megalodon and Voidragon. + ///
+ public bool sharkBullets = false; + /// /// If true, adds an ice trail to the projectile, and makes it inflict Frostbite.
/// Used by Thermocline Blaster. ///
diff --git a/Projectiles/Ranged/VoidBlast.cs b/Projectiles/Ranged/VoidBlast.cs index a1bae89537..20133e89f6 100644 --- a/Projectiles/Ranged/VoidBlast.cs +++ b/Projectiles/Ranged/VoidBlast.cs @@ -1,8 +1,13 @@ -using CalamityMod.Buffs.DamageOverTime; +using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Dusts; using CalamityMod.Particles; using CalamityMod.Projectiles.Typeless; +using CalamityMod.Rarities; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; using Terraria.ID; @@ -14,78 +19,45 @@ namespace CalamityMod.Projectiles.Ranged { public new string LocalizationCategory => "Projectiles.Ranged"; public override string Texture => "CalamityMod/Projectiles/Melee/GalaxiaBolt"; + public int time = 0; public override void SetDefaults() { Projectile.width = 10; Projectile.height = 10; - Projectile.alpha = 150; Projectile.friendly = true; Projectile.DamageType = DamageClass.Ranged; - Projectile.extraUpdates = 1; + Projectile.extraUpdates = 2; Projectile.penetrate = 1; Projectile.timeLeft = 600; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 10; Projectile.ignoreWater = true; } public override void AI() { - Projectile.localAI[0] += 1f; - if (Projectile.localAI[0] == 12f) - { - Projectile.localAI[0] = 0f; - for (int l = 0; l < 12; l++) - { - Vector2 dustVel = Vector2.UnitX * (float)-(float)Projectile.width / 2f; - dustVel += -Vector2.UnitY.RotatedBy((double)((float)l * 3.14159274f / 6f), default) * new Vector2(8f, 16f); - dustVel = dustVel.RotatedBy((double)(Projectile.rotation - 1.57079637f), default); - int shadowDust = Dust.NewDust(Projectile.Center, 0, 0, DustID.ShadowbeamStaff, 0f, 0f, 160, default, 1f); - Main.dust[shadowDust].scale = 1.1f; - Main.dust[shadowDust].noGravity = true; - Main.dust[shadowDust].position = Projectile.Center + dustVel; - Main.dust[shadowDust].velocity = Projectile.velocity * 0.1f; - Main.dust[shadowDust].velocity = Vector2.Normalize(Projectile.Center - Projectile.velocity * 3f - Main.dust[shadowDust].position) * 1.25f; - } - } - Projectile.alpha -= 15; - int alphaControl = 150; - if (Projectile.Center.Y >= Projectile.ai[1]) - { - alphaControl = 0; - } - if (Projectile.alpha < alphaControl) - { - Projectile.alpha = alphaControl; - } Projectile.spriteDirection = Projectile.direction = (Projectile.velocity.X > 0).ToDirectionInt(); Projectile.rotation = Projectile.velocity.ToRotation() + (Projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) + MathHelper.ToRadians(90) * Projectile.direction; - if (Main.rand.NextBool(16)) - { - Vector2 value3 = Vector2.UnitX.RotatedByRandom(1.5707963705062866).RotatedBy((double)Projectile.velocity.ToRotation(), default); - int extraDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.ShadowbeamStaff, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f, 150, default, 1.2f); - Main.dust[extraDust].velocity = value3 * 0.66f; - Main.dust[extraDust].position = Projectile.Center + value3 * 12f; - } - if (Main.rand.NextBool(48) && !Main.dedServ) - { - int voidGore = Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center, new Vector2(Projectile.velocity.X * 0.2f, Projectile.velocity.Y * 0.2f), 16, 1f); - Main.gore[voidGore].velocity *= 0.66f; - Main.gore[voidGore].velocity += Projectile.velocity * 0.3f; - } - if (Projectile.ai[1] == 1f) - { - Projectile.light = 0.9f; - if (Main.rand.NextBool(10)) - { - Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.ShadowbeamStaff, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f, 150, default, 1.2f); - } - if (Main.rand.NextBool(20) && !Main.dedServ) - { - Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.position, new Vector2(Projectile.velocity.X * 0.2f, Projectile.velocity.Y * 0.2f), Main.rand.Next(16, 18), 1f); - } - } Lighting.AddLight(Projectile.Center, (255 - Projectile.alpha) * 0.1f / 255f, (255 - Projectile.alpha) * 0.7f / 255f, (255 - Projectile.alpha) * 0.15f / 255f); + + if (Projectile.timeLeft <= 597f) + { + Particle smoke = new HeavySmokeParticle(Projectile.Center, -Projectile.velocity * 0.5f, Color.Lerp(Color.MidnightBlue, Color.Indigo, (float)Math.Sin(Main.GlobalTimeWrappedHourly * 6f)), 20, Main.rand.NextFloat(0.4f, 0.7f) * Projectile.scale, 0.8f, 0, false, 0, true); + GeneralParticleHandler.SpawnParticle(smoke); + if (Main.rand.NextBool(2)) + { + Particle smokeGlow = new HeavySmokeParticle(Projectile.Center, -Projectile.velocity * 0.5f, Color.DarkOrchid, 20, Main.rand.NextFloat(0.4f, 0.8f) * Projectile.scale, 0.3f, 0, true, 0.005f, true); + GeneralParticleHandler.SpawnParticle(smokeGlow); + } + Particle spark2 = new CustomSpark(Projectile.Center, -Projectile.velocity * 0.05f, "CalamityMod/Particles/GlowSpark2", false, 5, 0.052f, Color.Black, new Vector2(0.6f, 1.3f), false); + GeneralParticleHandler.SpawnParticle(spark2); + SparkParticle spark = new SparkParticle(Projectile.Center - Projectile.velocity.SafeNormalize(Vector2.UnitY) * 3.5f, Projectile.velocity * 0.01f, false, 5, 1.2f * Projectile.scale, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet); + GeneralParticleHandler.SpawnParticle(spark); + } + time++; } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), 180); @@ -96,6 +68,7 @@ namespace CalamityMod.Projectiles.Ranged Owner.Calamity().sharkGunDamageScaling++; } } + public override void OnKill(int timeLeft) { SoundStyle fire = new("CalamityMod/Sounds/Item/OmicronBeam"); @@ -134,17 +107,28 @@ namespace CalamityMod.Projectiles.Ranged Particle spark = new CustomSpark(Projectile.Center, new Vector2(3, 3).RotatedByRandom(100) * Main.rand.NextFloat(2f, 4f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 27, Main.rand.NextFloat(1.1f, 1.3f), Color.Lerp(Color.MediumPurple, Color.Indigo, Main.rand.NextFloat(0.5f, 0.7f)), new Vector2(0.6f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.35f, 0.4f)); GeneralParticleHandler.SpawnParticle(spark); } - if (Main.rand.NextBool()) + for (int i = 0; i < 30; i++) { - for (int i = 0; i < 30; i++) - { - Dust dust = Dust.NewDustPerfect(Projectile.Center, Main.rand.Next(72, 73 + 1), Main.rand.NextVector2CircularEdge(8f, 8f) * (Main.rand.NextFloat(1f, 1.2f) + Projectile.scale)); - dust.noGravity = true; - dust.noLight = true; - dust.scale = Main.rand.NextFloat(0.8f, 1.2f) + Projectile.scale; - dust.alpha = Main.rand.Next(120, 180 + 1); - } + Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), Main.rand.NextVector2CircularEdge(8f, 8f) * (Main.rand.NextFloat(1f, 1.2f) + Projectile.scale)); + dust.noGravity = true; + dust.scale = Main.rand.NextFloat(0.8f, 1.2f) + Projectile.scale; + dust.alpha = Main.rand.Next(120, 180 + 1); + dust.color = Main.rand.NextBool() ? Color.Indigo : Color.DarkBlue; } } + public override bool PreDraw(ref Color lightColor) + { + if (time == 0) + return false; + Texture2D texture = ModContent.Request("CalamityMod/Particles/GlowSpark").Value; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + Color drawColor = Projectile.GetAlpha(lightColor); + float drawRotation = Projectile.rotation; + Vector2 rotationPoint = texture.Size() * 0.5f; + + Main.EntitySpriteDraw(texture, drawPosition, null, Color.Indigo with { A = 0 }, drawRotation, rotationPoint, new Vector2(0.5f, 1.4f) * 0.025f * Projectile.scale, SpriteEffects.None); + Main.EntitySpriteDraw(texture, drawPosition, null, Color.DeepSkyBlue with { A = 0 }, drawRotation, rotationPoint, new Vector2(0.5f, 1.4f) * 0.02f * Projectile.scale, SpriteEffects.None); + return false; + } } } diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index 8eadb4d13d..5dcbe1395d 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Ranged Dust dust = Dust.NewDustPerfect(GunTipPosition + (-Projectile.velocity.RotatedBy(0.15 * Projectile.direction) * 50), dustType); dust.scale = Main.rand.NextFloat(1.2f, 1.8f) * (Owner.Calamity().sharkGunDamageScaling * 0.02f) - rotMulti * 0.1f; dust.noGravity = true; - dust.velocity = new Vector2(-1.2f, -2).RotatedBy(-Owner.direction).RotatedByRandom(rotMulti * 0.8f) * (Main.rand.NextFloat(1f, 3.2f) - rotMulti) * (Owner.Calamity().sharkGunDamageScaling * 0.015f); + dust.velocity = new Vector2(-1.2f, -2).RotatedBy(Projectile.rotation).RotatedByRandom(rotMulti * 0.8f) * (Main.rand.NextFloat(1f, 3.2f) - rotMulti) * (Owner.Calamity().sharkGunDamageScaling * 0.015f); dust.alpha = Main.rand.Next(90, 150); dust.color = Main.rand.NextBool() ? Color.Indigo : Color.DarkBlue; } @@ -77,9 +77,11 @@ namespace CalamityMod.Projectiles.Ranged #endregion #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotTiny"); - SoundEngine.PlaySound(fire with { Volume = 0.3f, Pitch = 0.4f, PitchVariance = 0.1f, MaxInstances = -1 }, Projectile.Center); + SoundEngine.PlaySound(fire with { Volume = 0.4f, Pitch = 0.1f, PitchVariance = 0.1f, MaxInstances = -1 }, Projectile.Center); Particle sparker = new CritSpark(GunTipPosition, Vector2.Zero, Color.Gold, Color.LightGoldenrodYellow, 1.7f, 3, 0.5f, 3f); GeneralParticleHandler.SpawnParticle(sparker); + Particle spark2 = new GlowSparkParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.8f) * Main.rand.NextFloat(1.2f, 1.5f), false, 15, 0.017f, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet, new Vector2(1.5f, 0.7f), true, false, 1.3f); + GeneralParticleHandler.SpawnParticle(spark2); for (int i = 0; i <= 4; i++) { Dust dust = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(3) ? 303 : 244, (shootVelocity * Main.rand.NextFloat(0.2f, 1.1f)).RotatedByRandom(0.4f)); @@ -132,7 +134,7 @@ namespace CalamityMod.Projectiles.Ranged //Main.NewText(Owner.Calamity().sharkGunDamageScaling); #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); - SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = 0.2f }, Projectile.Center); + SoundEngine.PlaySound(fire with { Volume = 0.7f, Pitch = 0.15f }, Projectile.Center); for (int i = 0; i <= 13; i++) { Dust dust = Dust.NewDustPerfect(GunTipPosition, 303, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.2f, 1.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); @@ -153,7 +155,7 @@ namespace CalamityMod.Projectiles.Ranged Particle pulse = new DirectionalPulseRing(GunTipPosition, shootVelocity / 4, Color.Gray, new Vector2(1f, 2.5f), rotation, 0.03f, 0.3f, 20); GeneralParticleHandler.SpawnParticle(pulse); //Extra sound and muzzle flash if the scaling is at max - if (Owner.Calamity().sharkGunDamageScaling == 30) + if (Owner.Calamity().sharkGunDamageScaling == 50) { SoundStyle fireperfect = new("CalamityMod/Sounds/Item/ShadowboltReflect"); SoundEngine.PlaySound(fireperfect with { Volume = 0.6f, Pitch = 0f }, GunTipPosition); @@ -168,7 +170,7 @@ namespace CalamityMod.Projectiles.Ranged Owner.Calamity().sharkGunDamageScaling++; } //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 2.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); //After firing the rocket, kill the projectile to allow left click to be held down Projectile.Kill(); From e469cafb0e0c4e2871d40363a350ff1374ba84b5 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Mon, 3 Feb 2025 18:56:17 -0800 Subject: [PATCH 20/50] Voidragon Abyss Beam functionality --- Items/Weapons/Ranged/Seadragon.cs | 2 +- Items/Weapons/Ranged/Voidragon.cs | 2 +- Projectiles/Ranged/SeaDragonRocket.cs | 13 ------ Projectiles/Ranged/VoidBlast.cs | 1 - Projectiles/Ranged/VoidragonHoldout.cs | 57 +++++++------------------- 5 files changed, 16 insertions(+), 59 deletions(-) diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index c4513c0654..e49b5113c3 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 90; Item.height = 38; - Item.damage = 375; + Item.damage = 154; Item.DamageType = DamageClass.Ranged; Item.useTime = 3; Item.useAnimation = 3; diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index c564b46641..dae76655b2 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 96; Item.height = 38; - Item.damage = 2088; + Item.damage = 221; Item.DamageType = DamageClass.Ranged; Item.useTime = 5; Item.useAnimation = 5; diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index 83ee09dc7b..333118e0ea 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -98,19 +98,6 @@ namespace CalamityMod.Projectiles.Ranged SoundStyle hitSound2 = new("CalamityMod/Sounds/NPCHit/AnahitaHit", 3); SoundEngine.PlaySound(hitSound2 with { Volume = 1.1f }, Projectile.Center); SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode.WithPitchOffset(0.8f) with { Volume = 1.1f }, Projectile.position); - // Create Blast (If you want to know how to use this blast, check the projectile, it tells you exactly how to use it!) - float blastSize = 80; - float minMultiplier = 0.25f; - int hitsToMinMult = 5; - int debuff = ModContent.BuffType(); - int debuffTime = 120; - Projectile blast = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f), Projectile.knockBack, Projectile.owner, blastSize, minMultiplier, hitsToMinMult); - blast.localAI[0] = debuff; - blast.localAI[1] = debuffTime; - blast.timeLeft = 2; - blast.DamageType = Projectile.DamageType; - - // Add visuals here for (int i = 0; i < 3; i++) { Particle Star = new CritSpark(Projectile.Center, Vector2.One.RotatedByRandom(100) * Main.rand.NextFloat(4, 5), Color.SkyBlue, Main.rand.NextBool() ? Color.HotPink : Color.SeaGreen, Main.rand.NextFloat(0.6f, 0.9f), 30, 0.4f, 3f); diff --git a/Projectiles/Ranged/VoidBlast.cs b/Projectiles/Ranged/VoidBlast.cs index 20133e89f6..2c985c89e9 100644 --- a/Projectiles/Ranged/VoidBlast.cs +++ b/Projectiles/Ranged/VoidBlast.cs @@ -127,7 +127,6 @@ namespace CalamityMod.Projectiles.Ranged Vector2 rotationPoint = texture.Size() * 0.5f; Main.EntitySpriteDraw(texture, drawPosition, null, Color.Indigo with { A = 0 }, drawRotation, rotationPoint, new Vector2(0.5f, 1.4f) * 0.025f * Projectile.scale, SpriteEffects.None); - Main.EntitySpriteDraw(texture, drawPosition, null, Color.DeepSkyBlue with { A = 0 }, drawRotation, rotationPoint, new Vector2(0.5f, 1.4f) * 0.02f * Projectile.scale, SpriteEffects.None); return false; } } diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index 5dcbe1395d..48eb427d96 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -29,9 +29,11 @@ namespace CalamityMod.Projectiles.Ranged public override Vector2 GunTipPosition => Projectile.Center + (Projectile.velocity * 55).RotatedBy(-0.05f * Projectile.direction); public int Time = 0; + public int beamTimer = 500; public int shotCounter = 0; public int framesBetweenShots = 0; public bool swapType = false; + public bool firingBeam = false; public override void KillHoldoutLogic() { @@ -68,9 +70,9 @@ namespace CalamityMod.Projectiles.Ranged } if (Time >= 90) { - if (framesBetweenShots == 0 && shotCounter <= 51) + if (framesBetweenShots == 0 && shotCounter <= 50) { - Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 19; + Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 28; #region Debug Text Display //Main.NewText(shotCounter); //Main.NewText(Owner.Calamity().sharkGunDamageScaling); @@ -118,6 +120,7 @@ namespace CalamityMod.Projectiles.Ranged if (shotCounter == 50) { framesBetweenShots = 150; + shotCounter++; SoundStyle charge = new("CalamityMod/Sounds/Custom/MoonLordLaserCharge"); SoundEngine.PlaySound(charge with { Volume = 1.5f }, Projectile.Center, _ => new ProjectileAudioTracker(Projectile).IsActiveAndInGame()); } @@ -125,59 +128,27 @@ namespace CalamityMod.Projectiles.Ranged if (framesBetweenShots > 0) framesBetweenShots--; } - if (shotCounter == 50 && framesBetweenShots == 0) + if (shotCounter == 51 && framesBetweenShots == 0) { - if (framesBetweenShots == 0) + Main.NewText(beamTimer); + firingBeam = true; + if (firingBeam && beamTimer > 0) { Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; //Debug Text - //Main.NewText(Owner.Calamity().sharkGunDamageScaling); - #region Visuals and Sounds - SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); - SoundEngine.PlaySound(fire with { Volume = 0.7f, Pitch = 0.15f }, Projectile.Center); - for (int i = 0; i <= 13; i++) - { - Dust dust = Dust.NewDustPerfect(GunTipPosition, 303, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.2f, 1.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); - dust.noGravity = false; - dust.color = Color.White; - - Dust dust2 = Dust.NewDustPerfect(GunTipPosition, 278, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.1f, 0.8f)); - dust2.noGravity = true; - dust2.scale = Main.rand.NextFloat(0.52f, 0.72f); - dust2.color = Color.Lerp(Color.Orange, Color.Gold, Main.rand.NextFloat(0f, 1f)); - } - for (int i = 0; i < 14; i++) - { - Particle smoke = new HeavySmokeParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.6f) * Main.rand.NextFloat(0.2f, 1.5f), Color.RoyalBlue, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); - GeneralParticleHandler.SpawnParticle(smoke); - } - float rotation = Projectile.velocity.ToRotation(); - Particle pulse = new DirectionalPulseRing(GunTipPosition, shootVelocity / 4, Color.Gray, new Vector2(1f, 2.5f), rotation, 0.03f, 0.3f, 20); - GeneralParticleHandler.SpawnParticle(pulse); - //Extra sound and muzzle flash if the scaling is at max - if (Owner.Calamity().sharkGunDamageScaling == 50) - { - SoundStyle fireperfect = new("CalamityMod/Sounds/Item/ShadowboltReflect"); - SoundEngine.PlaySound(fireperfect with { Volume = 0.6f, Pitch = 0f }, GunTipPosition); - GenericSparkle sparker = new GenericSparkle(GunTipPosition, Vector2.Zero, Color.DarkGoldenrod, Color.Gold, Main.rand.NextFloat(1.1f, 1.8f), 10, 2f, 2.68f); - GeneralParticleHandler.SpawnParticle(sparker); - } - #endregion - //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage if (Owner.Calamity().sharkGunDamageScaling == 0) { Owner.Calamity().sharkGunDamageScaling++; } - //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 2.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); - - //After firing the rocket, kill the projectile to allow left click to be held down - Projectile.Kill(); + if (beamTimer % 2 == 0) + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitX) * 5, ModContent.ProjectileType(), (int)(Projectile.damage * 0.05f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner, 1, beamTimer, (Time % 15 < 10 ? 18 : 0)); + beamTimer--; } else { - framesBetweenShots--; + firingBeam = false; + Projectile.Kill(); } } Time++; From b44c5f3612298c4f0db7a4d5eaf39aa39c0d8e2a Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Mon, 28 Apr 2025 23:54:52 -0700 Subject: [PATCH 21/50] I hate this laser --- CalPlayer/CalamityPlayer.cs | 1 - .../Mods.CalamityMod.Projectiles.Ranged.hjson | 1 + Projectiles/Ranged/AbyssalFire.cs | 173 ++++++++++++++++++ Projectiles/Ranged/VoidBlast.cs | 11 +- Projectiles/Ranged/VoidragonHoldout.cs | 22 ++- 5 files changed, 204 insertions(+), 4 deletions(-) create mode 100644 Projectiles/Ranged/AbyssalFire.cs diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index ad7d26962a..a529c59d8c 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -367,7 +367,6 @@ namespace CalamityMod.CalPlayer public int tortShellPostHit = 0; public int RustyMedallionCooldown = 0; public int sharkGunDamageScaling = 0; - public int MiniSwamerCooldown = 0; public int MiniSwarmerCooldown = 0; public float SulphWaterPoisoningLevel; public float holyInfernoFadeIntensity; diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson index b4368e0ca2..6c8158e7a7 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson @@ -265,3 +265,4 @@ LeviatitanExplosion.DisplayName: Leviatitan Explosion SulphuricDrop.DisplayName: Sulphuric Drop AcidRocket.DisplayName: Acid Rocket MegalodonRocket.DisplayName: Megalodon Rocket +AbyssalFire.DisplayName: Abyssal Fire diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs new file mode 100644 index 0000000000..06e92ee2ff --- /dev/null +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -0,0 +1,173 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Graphics.Metaballs; +using CalamityMod.Graphics.Primitives; +using CalamityMod.World; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.Graphics.Shaders; +using Terraria.ModLoader; +using Terraria.WorldBuilding; + +namespace CalamityMod.Projectiles.Ranged +{ + public class AbyssalFire : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Ranged"; + public Player Owner => Main.player[Projectile.owner]; + public Projectile VoidragonHoldout + { + get + { + foreach (Projectile p in Main.ActiveProjectiles) + { + if (p.identity != Projectile.ai[0] || p.owner != Projectile.owner) + continue; + + return p; + } + return null; + } + } + public ref float LaserLength => ref Projectile.ai[1]; + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + + public const float MaxLaserLength = 3330f; + + public override void SetDefaults() + { + Projectile.width = Projectile.height = 32; + Projectile.friendly = true; + Projectile.DamageType = DamageClass.Ranged; + Projectile.penetrate = -1; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 2; + Projectile.tileCollide = false; + Projectile.ignoreWater = true; + Projectile.hide = true; + } + + public override void AI() + { + // If the owner is no longer able to cast the beam, kill it. + if (!Owner.channel || Owner.noItems || Owner.CCed || VoidragonHoldout is null) + { + Projectile.Kill(); + return; + } + + // Grow bigger up to a point. + Projectile.scale = MathHelper.Clamp(Projectile.scale + 0.15f, 0.05f, 2f); + + // Decide where to position the laserbeam. + Vector2 circlePointDirection = Projectile.velocity.SafeNormalize(Vector2.UnitX * Owner.direction); + Projectile.Center = VoidragonHoldout.Center; + + // Update the laser length. + float[] laserLengthSamplePoints = new float[24]; + Collision.LaserScan(Projectile.Center, Projectile.velocity, Projectile.scale * 8f, MaxLaserLength, laserLengthSamplePoints); + LaserLength = laserLengthSamplePoints.Average(); + + // Update aim. + UpdateAim(); + + // Create arms on surfaces. + if (Main.myPlayer == Projectile.owner && Main.rand.NextBool(8)) + CreateArmsOnSurfaces(); + + // Create hit effects at the end of the beam. + if (Main.myPlayer == Projectile.owner) + CreateTileHitEffects(); + + // Make the beam cast light along its length. The brightness of the light is reliant on the scale of the beam. + DelegateMethods.v3_1 = Color.DarkViolet.ToVector3() * Projectile.scale * 0.4f; + Utils.PlotTileLine(Projectile.Center, Projectile.Center + Projectile.velocity * LaserLength, Projectile.width * Projectile.scale, DelegateMethods.CastLight); + } + + public void UpdateAim() + { + // Only execute the aiming code for the owner. + if (Main.myPlayer != Projectile.owner) + return; + + Vector2 newAimDirection = VoidragonHoldout.velocity.SafeNormalize(Vector2.UnitY); + + // Sync if the direction is different from the old one. + // Spam caps are ignored due to the frequency of this happening. + if (newAimDirection != Projectile.velocity) + { + Projectile.netUpdate = true; + Projectile.netSpam = 0; + } + + Projectile.velocity = newAimDirection; + } + + public void CreateArmsOnSurfaces() + { + Vector2 endOfLaser = Projectile.Center + Projectile.velocity * LaserLength + Main.rand.NextVector2Circular(80f, 8f); + Vector2 idealCenter = endOfLaser; + if (WorldUtils.Find(idealCenter.ToTileCoordinates(), Searches.Chain(new Searches.Down(5), new CustomConditions.SolidOrPlatform()), out Point result)) + { + idealCenter = result.ToWorldCoordinates(); + } + Point endOfLaserTileCoords = idealCenter.ToTileCoordinates(); + Tile endTile = CalamityUtils.ParanoidTileRetrieval(endOfLaserTileCoords.X, endOfLaserTileCoords.Y); + + if (endTile.HasUnactuatedTile && (Main.tileSolid[endTile.TileType] || Main.tileSolidTop[endTile.TileType]) && !endTile.IsHalfBlock && endTile.Slope == 0) + { + Vector2 armSpawnPosition = endOfLaserTileCoords.ToWorldCoordinates(); + } + } + + public void CreateTileHitEffects() + { + Vector2 endOfLaser = Projectile.Center + Projectile.velocity * (LaserLength - Main.rand.NextFloat(12f, 72f)); + + if (Main.rand.NextBool()) + { + } + + RancorLavaMetaball.SpawnParticle(endOfLaser + Main.rand.NextVector2Circular(10f, 10f) + Projectile.velocity * 40f, 135f); + } + + private float PrimitiveWidthFunction(float completionRatio) => Projectile.scale * 20f; + + private Color PrimitiveColorFunction(float completionRatio) + { + Color vibrantColor = Color.Lerp(Color.Blue, Color.Red, (float)Math.Cos(Main.GlobalTimeWrappedHourly * 0.67f - completionRatio / LaserLength * 29f) * 0.5f + 0.5f); + float opacity = Projectile.Opacity * Utils.GetLerpValue(0.97f, 0.9f, completionRatio, true) * + Utils.GetLerpValue(0f, MathHelper.Clamp(15f / LaserLength, 0f, 0.5f), completionRatio, true) * + (float)Math.Pow(Utils.GetLerpValue(60f, 270f, LaserLength, true), 3D); + return Color.Lerp(vibrantColor, Color.White, 0.5f) * opacity * 2f; + } + + public override bool PreDraw(ref Color lightColor) + { + GameShaders.Misc["CalamityMod:Flame"].UseImage1("Images/Misc/Perlin"); + + Vector2[] basePoints = new Vector2[24]; + for (int i = 0; i < basePoints.Length; i++) + basePoints[i] = Projectile.Center + Projectile.velocity * i / (basePoints.Length - 1f) * LaserLength; + + PrimitiveRenderer.RenderTrail(basePoints, new(PrimitiveWidthFunction, PrimitiveColorFunction, shader: GameShaders.Misc["CalamityMod:Flame"]), 92); + return false; + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Projectile.Center, Projectile.Center + Projectile.velocity * LaserLength); + } + + public override void DrawBehind(int index, List behindNPCsAndTiles, List behindNPCs, List behindProjectiles, List overPlayers, List overWiresUI) + { + overWiresUI.Add(index); + } + + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.Calamity().ashesOnDeath = 10; + + public override bool ShouldUpdatePosition() => false; + } +} diff --git a/Projectiles/Ranged/VoidBlast.cs b/Projectiles/Ranged/VoidBlast.cs index 2c985c89e9..12a0713998 100644 --- a/Projectiles/Ranged/VoidBlast.cs +++ b/Projectiles/Ranged/VoidBlast.cs @@ -2,6 +2,7 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; +using CalamityMod.Packets.Entities; using CalamityMod.Particles; using CalamityMod.Projectiles.Typeless; using CalamityMod.Rarities; @@ -60,13 +61,21 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 180); target.AddBuff(ModContent.BuffType(), 180); if (Projectile.numHits == 0) { Player Owner = Main.player[Projectile.owner]; Owner.Calamity().sharkGunDamageScaling++; } + int bonusDamage = 10000; + if (target.Calamity().demonicFlamesBonusDamage <= bonusDamage) + { + target.Calamity().demonicFlamesBonusDamage = bonusDamage; + target.AddBuff(ModContent.BuffType(), 180); + // Demonic Flames damage must be synced, because OnHitNPC is only run for the client that hit the NPC + if (Main.netMode != NetmodeID.SinglePlayer) + DemonicFlamesSyncPacket.Send(target); + } } public override void OnKill(int timeLeft) diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index 48eb427d96..9db8b36a8c 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -16,6 +16,7 @@ using Mono.Cecil; using Newtonsoft.Json.Serialization; using CalamityMod.Dusts; using CalamityMod.Projectiles.DraedonsArsenal; +using CalamityMod.Projectiles.Magic; namespace CalamityMod.Projectiles.Ranged { @@ -136,13 +137,30 @@ namespace CalamityMod.Projectiles.Ranged { Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; //Debug Text + float orbScale = 0.2f * Main.rand.NextFloat(0.8f, 1.1f); + Color smokeColor = Color.Lerp(Color.DimGray, Color.DarkGray, Main.rand.NextFloat(0.2f, 0.6f)); + Particle orb = new CustomPulse(GunTipPosition, Vector2.Zero, smokeColor * 0.7f, "CalamityMod/ExtraTextures/GreyscaleVortex", new Vector2(1, 1), Projectile.ai[2] * 0.45f, orbScale, orbScale * 1.1f, 6, false); + GeneralParticleHandler.SpawnParticle(orb); + Particle orb3 = new CustomPulse(GunTipPosition, Vector2.Zero, Color.Indigo, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0.5f, 0.15f, 6); + GeneralParticleHandler.SpawnParticle(orb3); + Particle orb2 = new CustomPulse(GunTipPosition, Vector2.Zero, Color.White, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0.1f, 0.07f, 6); + GeneralParticleHandler.SpawnParticle(orb2); + + float offset = Main.rand.NextFloat(MathHelper.TwoPi); + for (int i = 0; i < 4; i++) + { + Vector2 velocity = (MathHelper.TwoPi * i / 4f + offset).ToRotationVector2(); + Particle cross = new GlowSparkParticle(GunTipPosition, velocity, false, 6, 0.4f, Color.BlueViolet * 0.7f, new Vector2(0.07f, 0.08f), true, false); + GeneralParticleHandler.SpawnParticle(cross); + } //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage if (Owner.Calamity().sharkGunDamageScaling == 0) { Owner.Calamity().sharkGunDamageScaling++; } - if (beamTimer % 2 == 0) - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitX) * 5, ModContent.ProjectileType(), (int)(Projectile.damage * 0.05f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner, 1, beamTimer, (Time % 15 < 10 ? 18 : 0)); + if (Main.myPlayer == Projectile.owner && beamTimer == 500) + //Spawn the beam ONCE why aren't you working holy shit + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitX) * 5, ModContent.ProjectileType(), (int)(Projectile.damage * 0.05f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner, 0); beamTimer--; } else From 591f89d1fa64277602277fe1655deb811d8a9a18 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sat, 10 May 2025 00:14:37 -0700 Subject: [PATCH 22/50] Archerfish start + a good amount of cleanup --- Items/Weapons/Ranged/Archerfish.cs | 52 ++---- Items/Weapons/Ranged/Megalodon.cs | 4 +- Items/Weapons/Ranged/Voidragon.cs | 4 +- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 5 +- .../Mods.CalamityMod.Projectiles.Ranged.hjson | 1 + Projectiles/Ranged/AbyssalFire.cs | 67 +++----- Projectiles/Ranged/ArcherfishHoldout.cs | 159 ++++++++++++++++++ Projectiles/Ranged/BlahajBlast.cs | 2 +- Projectiles/Ranged/SeadragonHoldout.cs | 14 +- Projectiles/Ranged/VoidBlast.cs | 11 +- Projectiles/Ranged/VoidBlastExplosion.cs | 55 ++++++ Projectiles/Ranged/VoidragonHoldout.cs | 17 +- 12 files changed, 282 insertions(+), 109 deletions(-) create mode 100644 Projectiles/Ranged/ArcherfishHoldout.cs create mode 100644 Projectiles/Ranged/VoidBlastExplosion.cs diff --git a/Items/Weapons/Ranged/Archerfish.cs b/Items/Weapons/Ranged/Archerfish.cs index 52ae3be18f..a8e861174a 100644 --- a/Items/Weapons/Ranged/Archerfish.cs +++ b/Items/Weapons/Ranged/Archerfish.cs @@ -17,56 +17,30 @@ namespace CalamityMod.Items.Weapons.Ranged Item.height = 36; Item.damage = 16; Item.DamageType = DamageClass.Ranged; - Item.useTime = 11; - Item.useAnimation = 11; + Item.useTime = 6; + Item.useAnimation = 6; + Item.channel = true; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; - Item.knockBack = 2f; + Item.knockBack = 2.5f; Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; - Item.UseSound = SoundID.Item85; + Item.UseSound = null; Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 11f; + Item.noUseGraphic = true; + Item.shoot = ModContent.ProjectileType(); + Item.shootSpeed = 2f; Item.useAmmo = AmmoID.Bullet; Item.Calamity().canFirePointBlankShots = true; } - - public override Vector2? HoldoutOffset() => new Vector2(-10, -5); - + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; + public override bool RangedPrefix() => true; //Can't scale with attack speed, but should still be able to recieve Unreal + public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - // Reposition to the gun's tip - Vector2 newPos = position + new Vector2(60f, player.direction * (Math.Abs(velocity.SafeNormalize(Vector2.Zero).X) < 0.02f ? -2f : -8f)).RotatedBy(velocity.ToRotation()); - - // Fires a spread of harmless bubbles - for (int i = 0; i < 4; i++) - { - Gore bubble = Gore.NewGorePerfect(source, newPos, velocity.RotatedByRandom(MathHelper.ToRadians(30f)) * 0.5f, 411); - bubble.timeLeft = 6 + Main.rand.Next(4); - bubble.scale = Main.rand.NextFloat(0.6f, 0.8f); - bubble.type = Main.rand.NextBool(3) ? 412 : 411; - } - - // Replaces standard bullets with water jets. - if (type == ProjectileID.Bullet) - Projectile.NewProjectile(source, newPos, velocity, Item.shoot, damage, knockback, player.whoAmI); - else - Projectile.NewProjectile(source, newPos, velocity, type, damage, knockback, player.whoAmI); - - // Always fires a close range water blast. - int waterRingDamage = (int)(damage * 0.5f); - float boostedKB = knockback + 5f; - Projectile.NewProjectile(source, newPos, velocity * 0.5f, ModContent.ProjectileType(), waterRingDamage, boostedKB, player.whoAmI); - + Projectile holdout = Projectile.NewProjectileDirect(source, position, velocity, Item.shoot, damage, knockback, player.whoAmI); + holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero); return false; } - - public override bool CanConsumeAmmo(Item ammo, Player player) - { - if (Main.rand.Next(0, 100) < 33) - return false; - return true; - } } } diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index f9b451e221..a93c30ba25 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Weapons.Ranged Item.height = 42; Item.damage = 58; Item.DamageType = DamageClass.Ranged; - Item.useTime = 3; - Item.useAnimation = 3; + Item.useTime = 4; + Item.useAnimation = 4; Item.channel = true; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index dae76655b2..ad5c4361a4 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -27,8 +27,8 @@ namespace CalamityMod.Items.Weapons.Ranged Item.height = 38; Item.damage = 221; Item.DamageType = DamageClass.Ranged; - Item.useTime = 5; - Item.useAnimation = 5; + Item.useTime = 3; + Item.useAnimation = 3; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index d151c582bb..99a11759b9 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1084,8 +1084,9 @@ Seadragon: { DisplayName: Seadragon Tooltip: ''' - Unleashes a deluge of alternating bullets and pressurized water jets - Additionally fires rockets and emits devastating muzzle blasts + Loads a 50 round deluge of alternating bullets and pressurized water jets + Water jets summon a small fish that swims around and follows you + After firing, all fish rush toward enemies and explode before the gun reloads Water jets consume no ammo ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson index e60cb1650b..9f2decb8c8 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson @@ -265,3 +265,4 @@ SulphuricDrop.DisplayName: Sulphuric Drop AcidRocket.DisplayName: Acid Rocket MegalodonRocket.DisplayName: Megalodon Rocket AbyssalFire.DisplayName: Abyssal Fire +VoidBlastExplosion.DisplayName: Void Blast Explosion diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index 06e92ee2ff..3ad6748b1a 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -2,12 +2,15 @@ using System.Collections.Generic; using System.Linq; using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Graphics.Metaballs; using CalamityMod.Graphics.Primitives; +using CalamityMod.Packets.Entities; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; +using Terraria.ID; using Terraria.ModLoader; using Terraria.WorldBuilding; @@ -65,22 +68,11 @@ namespace CalamityMod.Projectiles.Ranged Vector2 circlePointDirection = Projectile.velocity.SafeNormalize(Vector2.UnitX * Owner.direction); Projectile.Center = VoidragonHoldout.Center; - // Update the laser length. - float[] laserLengthSamplePoints = new float[24]; - Collision.LaserScan(Projectile.Center, Projectile.velocity, Projectile.scale * 8f, MaxLaserLength, laserLengthSamplePoints); - LaserLength = laserLengthSamplePoints.Average(); + LaserLength = MaxLaserLength; // Update aim. UpdateAim(); - // Create arms on surfaces. - if (Main.myPlayer == Projectile.owner && Main.rand.NextBool(8)) - CreateArmsOnSurfaces(); - - // Create hit effects at the end of the beam. - if (Main.myPlayer == Projectile.owner) - CreateTileHitEffects(); - // Make the beam cast light along its length. The brightness of the light is reliant on the scale of the beam. DelegateMethods.v3_1 = Color.DarkViolet.ToVector3() * Projectile.scale * 0.4f; Utils.PlotTileLine(Projectile.Center, Projectile.Center + Projectile.velocity * LaserLength, Projectile.width * Projectile.scale, DelegateMethods.CastLight); @@ -104,44 +96,15 @@ namespace CalamityMod.Projectiles.Ranged Projectile.velocity = newAimDirection; } - - public void CreateArmsOnSurfaces() - { - Vector2 endOfLaser = Projectile.Center + Projectile.velocity * LaserLength + Main.rand.NextVector2Circular(80f, 8f); - Vector2 idealCenter = endOfLaser; - if (WorldUtils.Find(idealCenter.ToTileCoordinates(), Searches.Chain(new Searches.Down(5), new CustomConditions.SolidOrPlatform()), out Point result)) - { - idealCenter = result.ToWorldCoordinates(); - } - Point endOfLaserTileCoords = idealCenter.ToTileCoordinates(); - Tile endTile = CalamityUtils.ParanoidTileRetrieval(endOfLaserTileCoords.X, endOfLaserTileCoords.Y); - - if (endTile.HasUnactuatedTile && (Main.tileSolid[endTile.TileType] || Main.tileSolidTop[endTile.TileType]) && !endTile.IsHalfBlock && endTile.Slope == 0) - { - Vector2 armSpawnPosition = endOfLaserTileCoords.ToWorldCoordinates(); - } - } - - public void CreateTileHitEffects() - { - Vector2 endOfLaser = Projectile.Center + Projectile.velocity * (LaserLength - Main.rand.NextFloat(12f, 72f)); - - if (Main.rand.NextBool()) - { - } - - RancorLavaMetaball.SpawnParticle(endOfLaser + Main.rand.NextVector2Circular(10f, 10f) + Projectile.velocity * 40f, 135f); - } - - private float PrimitiveWidthFunction(float completionRatio) => Projectile.scale * 20f; + private float PrimitiveWidthFunction(float completionRatio) => Projectile.scale * 25f; private Color PrimitiveColorFunction(float completionRatio) { - Color vibrantColor = Color.Lerp(Color.Blue, Color.Red, (float)Math.Cos(Main.GlobalTimeWrappedHourly * 0.67f - completionRatio / LaserLength * 29f) * 0.5f + 0.5f); + Color vibrantColor = Color.Lerp(Color.Indigo, Color.BlueViolet, (float)Math.Cos(Main.GlobalTimeWrappedHourly * 0.67f - completionRatio / LaserLength * 29f) * 0.5f + 0.5f); float opacity = Projectile.Opacity * Utils.GetLerpValue(0.97f, 0.9f, completionRatio, true) * Utils.GetLerpValue(0f, MathHelper.Clamp(15f / LaserLength, 0f, 0.5f), completionRatio, true) * (float)Math.Pow(Utils.GetLerpValue(60f, 270f, LaserLength, true), 3D); - return Color.Lerp(vibrantColor, Color.White, 0.5f) * opacity * 2f; + return Color.Lerp(vibrantColor, Color.Black, 0.5f) * opacity * 2f; } public override bool PreDraw(ref Color lightColor) @@ -165,8 +128,20 @@ namespace CalamityMod.Projectiles.Ranged { overWiresUI.Add(index); } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.Calamity().ashesOnDeath = 10; + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.Calamity().ashesOnDeath = 10; + target.AddBuff(ModContent.BuffType(), 180); + int bonusDamage = 10000; + if (target.Calamity().demonicFlamesBonusDamage <= bonusDamage) + { + target.Calamity().demonicFlamesBonusDamage = bonusDamage; + target.AddBuff(ModContent.BuffType(), 180); + // Demonic Flames damage must be synced, because OnHitNPC is only run for the client that hit the NPC + if (Main.netMode != NetmodeID.SinglePlayer) + DemonicFlamesSyncPacket.Send(target); + } + } public override bool ShouldUpdatePosition() => false; } diff --git a/Projectiles/Ranged/ArcherfishHoldout.cs b/Projectiles/Ranged/ArcherfishHoldout.cs new file mode 100644 index 0000000000..4f95375e2b --- /dev/null +++ b/Projectiles/Ranged/ArcherfishHoldout.cs @@ -0,0 +1,159 @@ +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Particles; +using CalamityMod.Projectiles.BaseProjectiles; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using ReLogic.Utilities; +using Terraria; +using Terraria.Audio; +using Terraria.GameContent; +using Terraria.ModLoader; +using Terraria.ID; +using Steamworks; +using CalamityMod.Projectiles.Turret; +using Mono.Cecil; + +namespace CalamityMod.Projectiles.Ranged +{ + public class ArcherfishHoldout : BaseGunHoldoutProjectile + { + public override int AssociatedItemID => ModContent.ItemType(); + public override float MaxOffsetLengthFromArm => 24f; + public override float OffsetXUpwards => -5f; + public override float BaseOffsetY => -1f; + public override float OffsetYDownwards => 5f; + + public int Time = 0; + public int shotCounter = 0; + public int framesBetweenShots = 0; + public bool swapType = false; + + public override void KillHoldoutLogic() + { + //If the player is dead, kill the holdout. + if (Owner.CantUseHoldout() || HeldItem.type != Owner.ActiveItem().type && shotCounter <= 19) + Projectile.Kill(); + } + + public override void HoldoutAI() + { + if (Time >= 10) + { + if (framesBetweenShots == 0 && shotCounter <= 31) + { + Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 15; + #region Debug Text Display + //Main.NewText(shotCounter); + //Main.NewText(Owner.Calamity().sharkGunDamageScaling); + #endregion + #region Visuals and Sounds + SoundEngine.PlaySound(SoundID.Item85, Projectile.Center); + Particle sparker = new CritSpark(GunTipPosition, Vector2.Zero, Color.Gold, Color.LightGoldenrodYellow, 1.7f, 3, 0.5f, 3f); + GeneralParticleHandler.SpawnParticle(sparker); + for (int i = 0; i <= 4; i++) + { + Dust dust = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(3) ? 303 : 244, (shootVelocity * Main.rand.NextFloat(0.2f, 1.1f)).RotatedByRandom(0.4f)); + dust.noGravity = true; + dust.scale = Main.rand.NextFloat(0.8f, 1.4f); + } + if (shotCounter > 14) + { + for (int i = 0; i < 3; ++i) + { + int bloodLifetime = Main.rand.Next(12, 15); + float bloodScale = Main.rand.NextFloat(0.4f, 0.6f); + Color bloodColor = Color.Lerp(Color.LightBlue * 0.7f, Color.LightBlue, Main.rand.NextFloat()); + bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); + + if (Main.rand.NextBool(20)) + bloodScale *= 1.5f; + + float randomSpeedMultiplier = Main.rand.NextFloat(0.8f, 1.5f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; + bloodVelocity.Y -= 3f; + BloodParticle blood = new BloodParticle(Projectile.Center + (Projectile.velocity * 14f).RotatedBy(-0.8f * Projectile.direction), bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } + } + #endregion + + //How many frames between firing projectiles, and how far the gun moves backward to give the effect of recoil. Change this number to edit fire rate + framesBetweenShots = 6; + OffsetLengthFromArm -= 3f; + //Here we detect which ammo the bullets will use + Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + shotCounter++; + //Allow a pause before firing the rocket. This allows the final bullet a chance to hit before the rocket is fired. Lowering this number reduces the delay, but may also cause the gun to become inconsistent + if (shotCounter == 20) + framesBetweenShots = 80; + } + if (framesBetweenShots > 0) + framesBetweenShots--; + } + if (shotCounter >= 19 && framesBetweenShots > 0) + { + Owner.channel = true; + if (framesBetweenShots % 6 == 0) + { + for (int i = 0; i < 2; ++i) + { + int bloodLifetime = Main.rand.Next(12, 15); + float bloodScale = Main.rand.NextFloat(0.4f, 0.6f); + Color bloodColor = Color.Lerp(Color.LightBlue * 0.7f, Color.LightBlue, Main.rand.NextFloat()); + bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); + + if (Main.rand.NextBool(20)) + bloodScale *= 1.5f; + + float randomSpeedMultiplier = Main.rand.NextFloat(0.8f, 1.5f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; + bloodVelocity.Y -= 3f; + BloodParticle blood = new BloodParticle(Projectile.Center + (Projectile.velocity * 14f).RotatedBy(-0.8f * Projectile.direction), bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } + } + if (framesBetweenShots % 25 == 0) + { + for (int i = 0; i < 4; i++) + { + Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 4; + Particle smoke = new HeavySmokeParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.6f) * Main.rand.NextFloat(0.2f, 1.5f), Color.White, Main.rand.Next(20, 40 + 1), Main.rand.NextFloat(0.2f, 0.3f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); + GeneralParticleHandler.SpawnParticle(smoke); + } + SoundEngine.PlaySound(SoundID.Item111 with { Pitch = 0.05f, PitchVariance = 0.25f, MaxInstances = -1 }, Projectile.Center); + OffsetLengthFromArm -= 4.5f; + } + + } + if (shotCounter == 20 && framesBetweenShots == 0) + { + if (framesBetweenShots == 0) + { + SoundEngine.PlaySound(SoundID.NPCDeath19, Projectile.Center); + //After firing the rocket, kill the projectile to allow left click to be held down + Projectile.Kill(); + } + else + { + framesBetweenShots--; + } + } + Time++; + } + public override bool PreDraw(ref Color lightColor) + { + if (Time < 2) + return false; + Texture2D texture = TextureAssets.Projectile[Type].Value; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); + Vector2 rotationPoint = texture.Size() * 0.5f; + SpriteEffects flipSprite = (Projectile.spriteDirection * Owner.gravDir == -1) ? SpriteEffects.FlipHorizontally : SpriteEffects.None; + + Main.EntitySpriteDraw(texture, drawPosition, null, Projectile.GetAlpha(lightColor), drawRotation, rotationPoint, Projectile.scale * Owner.gravDir, flipSprite); + return false; + } + } +} diff --git a/Projectiles/Ranged/BlahajBlast.cs b/Projectiles/Ranged/BlahajBlast.cs index ab0b5dd8e9..f432a806b8 100644 --- a/Projectiles/Ranged/BlahajBlast.cs +++ b/Projectiles/Ranged/BlahajBlast.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.penetrate = 4; Projectile.alpha = 255; Projectile.timeLeft = Lifetime; - Projectile.MaxUpdates = 3; + Projectile.MaxUpdates = 2; Projectile.usesLocalNPCImmunity = true; Projectile.tileCollide = false; Projectile.localNPCHitCooldown = -1; diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index 5afba098c8..c314ddde34 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -49,6 +49,7 @@ namespace CalamityMod.Projectiles.Ranged string goreType = Main.rand.NextBool() ? "EmptyAnimosityShell" : "EmptyAnimosityShell2"; Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center, Projectile.velocity.RotatedBy(2f * -Owner.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find(goreType).Type); } + //Set the scaling to 0 whenever it reloads Owner.Calamity().sharkGunDamageScaling = 0; } if (Time >= 90) @@ -76,11 +77,11 @@ namespace CalamityMod.Projectiles.Ranged #endregion //How many frames between firing projectiles, and how far the gun moves backward to give the effect of recoil. Change this number to edit fire rate - framesBetweenShots = 4; + framesBetweenShots = 3; OffsetLengthFromArm -= 3f; //Here we detect which ammo the bullets will use Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); - //Alternate between shooting bullets and water streams. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier + //Alternate between shooting bullets and water streams. Despite not having damage scaling, the fish gain movement speed based on the scaling, so we still need a Global Projectile if (!swapType) { Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); @@ -93,10 +94,9 @@ namespace CalamityMod.Projectiles.Ranged } swapType = !swapType; shotCounter++; + //Allow a pause before unleashing the fish. This allows the final bullet a chance to hit before the fish are unleashed. Lowering this number reduces the delay, but may also cause the gun to become inconsistent if (shotCounter == 50) - { framesBetweenShots = 18; - } if (Main.zenithWorld && shotCounter == 35) { SoundStyle joke = new("CalamityMod/Sounds/Custom/GFB/YouKnowWhatThatMeans"); @@ -111,18 +111,24 @@ namespace CalamityMod.Projectiles.Ranged if (framesBetweenShots == 0) { SoundStyle hitSound = new("CalamityMod/Sounds/Item/SevensStrikerTriples"); + + //Need to update this effect. Will probably move to PreDraw SoundEngine.PlaySound(hitSound with { Volume = 0.5f , Pitch = 0.8f }, Projectile.Center); Particle Star = new CritSpark(GunTipPosition + (-Projectile.velocity.RotatedBy(0.1 * Projectile.direction) * 28), Vector2.Zero, Color.Goldenrod, Color.OrangeRed, 2f, 20, 0.2f, 3f); GeneralParticleHandler.SpawnParticle(Star); + + //Kill the holdout to allow left click to be held down. Projectile.Kill(); for (int x = 0; x < Main.maxProjectiles; x++) { + //Activate all fish to rush at the cursor and home in on the nearest enemy Projectile projectile = Main.projectile[x]; if (projectile.active && projectile.type == ModContent.ProjectileType() && projectile.ai[1] < 5) { projectile.ai[1] = 5; projectile.velocity = Utils.DirectionTo(projectile.Center, Owner.Calamity().mouseWorld) * 12; } + //If on GFB, also turns ANY projectile on screen into a fish if (Main.zenithWorld && projectile.type != ModContent.ProjectileType()) { SoundStyle joke = new("CalamityMod/Sounds/Custom/GFB/FISH"); diff --git a/Projectiles/Ranged/VoidBlast.cs b/Projectiles/Ranged/VoidBlast.cs index 12a0713998..12e83a5f74 100644 --- a/Projectiles/Ranged/VoidBlast.cs +++ b/Projectiles/Ranged/VoidBlast.cs @@ -80,14 +80,12 @@ namespace CalamityMod.Projectiles.Ranged public override void OnKill(int timeLeft) { + //We can't set Demonic Flames damage with a Basic Burst projectile, so we'll have to use a new one + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f), Projectile.knockBack, Projectile.owner); + #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/OmicronBeam"); SoundEngine.PlaySound(fire with { Volume = 0.9f }, Projectile.Center); - float blastSize = 170; - float minMultiplier = 0.25f; - int hitsToMinMult = 5; - Projectile blast = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f), Projectile.knockBack, Projectile.owner, blastSize, minMultiplier, hitsToMinMult); - blast.timeLeft = 2; - blast.DamageType = Projectile.DamageType; + for (float k = 0; k < 3; k++) { float colorRando = Main.rand.NextFloat(0, 1); @@ -124,6 +122,7 @@ namespace CalamityMod.Projectiles.Ranged dust.alpha = Main.rand.Next(120, 180 + 1); dust.color = Main.rand.NextBool() ? Color.Indigo : Color.DarkBlue; } + #endregion } public override bool PreDraw(ref Color lightColor) { diff --git a/Projectiles/Ranged/VoidBlastExplosion.cs b/Projectiles/Ranged/VoidBlastExplosion.cs new file mode 100644 index 0000000000..9cc32bf48c --- /dev/null +++ b/Projectiles/Ranged/VoidBlastExplosion.cs @@ -0,0 +1,55 @@ +using System; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Dusts; +using CalamityMod.Packets.Entities; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.Audio; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Ranged +{ + public class VoidBlastExplosion : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Ranged"; + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + + public override void SetDefaults() + { + Projectile.width = 400; + Projectile.height = 365; + Projectile.friendly = true; + Projectile.ignoreWater = false; + Projectile.tileCollide = false; + Projectile.penetrate = -1; + Projectile.timeLeft = 20; + Projectile.DamageType = DamageClass.Ranged; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; + } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 180); + int bonusDamage = 10000; + if (target.Calamity().demonicFlamesBonusDamage <= bonusDamage) + { + target.Calamity().demonicFlamesBonusDamage = bonusDamage; + target.AddBuff(ModContent.BuffType(), 180); + // Demonic Flames damage must be synced, because OnHitNPC is only run for the client that hit the NPC + if (Main.netMode != NetmodeID.SinglePlayer) + DemonicFlamesSyncPacket.Send(target); + } + } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + if (Projectile.numHits > 0) + Projectile.damage = (int)(Projectile.damage * 0.8f); + if (Projectile.damage < 1) + Projectile.damage = 1; + } + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, Projectile.width * 0.5f * Projectile.scale, targetHitbox); + } +} diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index 9db8b36a8c..a1c7dd39e2 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -11,12 +11,9 @@ using Terraria.GameContent; using Terraria.ModLoader; using Terraria.ID; using Steamworks; -using CalamityMod.Projectiles.Turret; using Mono.Cecil; using Newtonsoft.Json.Serialization; using CalamityMod.Dusts; -using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Projectiles.Magic; namespace CalamityMod.Projectiles.Ranged { @@ -45,6 +42,7 @@ namespace CalamityMod.Projectiles.Ranged public override void HoldoutAI() { + //Spawn dust on the holdout's eyes based on the amount of damage scaling. Currently only works from one side for (int i = 0; i < 2; i++) { int dustType = ModContent.DustType(); @@ -98,7 +96,7 @@ namespace CalamityMod.Projectiles.Ranged OffsetLengthFromArm -= 2.5f; //Here we detect which ammo the bullets will use Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); - //Alternate between shooting bullets and water streams. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier + //Alternate between shooting bullets and void blasts. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier if (!swapType) { Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); @@ -117,7 +115,7 @@ namespace CalamityMod.Projectiles.Ranged } swapType = !swapType; shotCounter++; - //Allow a pause before firing the rocket. This allows the final bullet a chance to hit before the rocket is fired. Lowering this number reduces the delay, but may also cause the gun to become inconsistent + //Allow a pause before firing the laser. The long delay lets the laser's charge sound play in full if (shotCounter == 50) { framesBetweenShots = 150; @@ -135,8 +133,10 @@ namespace CalamityMod.Projectiles.Ranged firingBeam = true; if (firingBeam && beamTimer > 0) { + #region Visuals and Sounds Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; - //Debug Text + + //Extremely WIP visuals for the laser source float orbScale = 0.2f * Main.rand.NextFloat(0.8f, 1.1f); Color smokeColor = Color.Lerp(Color.DimGray, Color.DarkGray, Main.rand.NextFloat(0.2f, 0.6f)); Particle orb = new CustomPulse(GunTipPosition, Vector2.Zero, smokeColor * 0.7f, "CalamityMod/ExtraTextures/GreyscaleVortex", new Vector2(1, 1), Projectile.ai[2] * 0.45f, orbScale, orbScale * 1.1f, 6, false); @@ -153,13 +153,16 @@ namespace CalamityMod.Projectiles.Ranged Particle cross = new GlowSparkParticle(GunTipPosition, velocity, false, 6, 0.4f, Color.BlueViolet * 0.7f, new Vector2(0.07f, 0.08f), true, false); GeneralParticleHandler.SpawnParticle(cross); } + #endregion + //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage if (Owner.Calamity().sharkGunDamageScaling == 0) { Owner.Calamity().sharkGunDamageScaling++; } + //Spawn the laser. Change beamTimer to edit its lifetime + //I fucking hate this laser by the way if (Main.myPlayer == Projectile.owner && beamTimer == 500) - //Spawn the beam ONCE why aren't you working holy shit Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitX) * 5, ModContent.ProjectileType(), (int)(Projectile.damage * 0.05f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner, 0); beamTimer--; } From 5ca199cfacd92a33a5a959c5f39ef146d550f2c9 Mon Sep 17 00:00:00 2001 From: fryzahh Date: Sat, 10 May 2025 03:52:27 -0400 Subject: [PATCH 23/50] Fixed AbyssalFire behavior issues - Fixed an issue with the AbyssalFire projectile either not spawning when it's supposed to or not attaching to the VoidragonHoldout projectile --- Projectiles/Ranged/AbyssalFire.cs | 13 +++---------- Projectiles/Ranged/VoidragonHoldout.cs | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index 3ad6748b1a..427c19faad 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -24,14 +24,7 @@ namespace CalamityMod.Projectiles.Ranged { get { - foreach (Projectile p in Main.ActiveProjectiles) - { - if (p.identity != Projectile.ai[0] || p.owner != Projectile.owner) - continue; - - return p; - } - return null; + return Main.projectile[(int)Projectile.ai[0]]; } } public ref float LaserLength => ref Projectile.ai[1]; @@ -100,11 +93,11 @@ namespace CalamityMod.Projectiles.Ranged private Color PrimitiveColorFunction(float completionRatio) { - Color vibrantColor = Color.Lerp(Color.Indigo, Color.BlueViolet, (float)Math.Cos(Main.GlobalTimeWrappedHourly * 0.67f - completionRatio / LaserLength * 29f) * 0.5f + 0.5f); + Color vibrantColor = Color.Lerp(Color.Indigo, Color.Purple, (float)Math.Cos(Main.GlobalTimeWrappedHourly * 0.67f - completionRatio / LaserLength * 29f) * 0.5f + 0.5f); float opacity = Projectile.Opacity * Utils.GetLerpValue(0.97f, 0.9f, completionRatio, true) * Utils.GetLerpValue(0f, MathHelper.Clamp(15f / LaserLength, 0f, 0.5f), completionRatio, true) * (float)Math.Pow(Utils.GetLerpValue(60f, 270f, LaserLength, true), 3D); - return Color.Lerp(vibrantColor, Color.Black, 0.5f) * opacity * 2f; + return Color.Lerp(vibrantColor, Color.Violet, 0.5f) * opacity * 2f; } public override bool PreDraw(ref Color lightColor) diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index a1c7dd39e2..ae4037215b 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -163,7 +163,7 @@ namespace CalamityMod.Projectiles.Ranged //Spawn the laser. Change beamTimer to edit its lifetime //I fucking hate this laser by the way if (Main.myPlayer == Projectile.owner && beamTimer == 500) - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitX) * 5, ModContent.ProjectileType(), (int)(Projectile.damage * 0.05f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner, 0); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitX) * 5, ModContent.ProjectileType(), (int)(Projectile.damage * 0.05f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner, Projectile.whoAmI); beamTimer--; } else From 8f078b60cd3668a6684a47a0a78d46de32d2bc1e Mon Sep 17 00:00:00 2001 From: fryzahh Date: Sat, 10 May 2025 03:55:02 -0400 Subject: [PATCH 24/50] incredibly small code cleanup i forgot to do --- Projectiles/Ranged/AbyssalFire.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index 427c19faad..4eb1b96907 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -20,13 +20,7 @@ namespace CalamityMod.Projectiles.Ranged { public new string LocalizationCategory => "Projectiles.Ranged"; public Player Owner => Main.player[Projectile.owner]; - public Projectile VoidragonHoldout - { - get - { - return Main.projectile[(int)Projectile.ai[0]]; - } - } + public Projectile VoidragonHoldout => Main.projectile[(int)Projectile.ai[0]]; public ref float LaserLength => ref Projectile.ai[1]; public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; From 97ee0e9a85060d304c9da882128c50b0b3aa52f9 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sat, 10 May 2025 01:12:12 -0700 Subject: [PATCH 25/50] Removed AshesonDeath for now due to lag --- Items/Weapons/Ranged/Voidragon.cs | 2 +- Projectiles/Ranged/AbyssalFire.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index ad5c4361a4..7e241bed5a 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 96; Item.height = 38; - Item.damage = 221; + Item.damage = 450; Item.DamageType = DamageClass.Ranged; Item.useTime = 3; Item.useAnimation = 3; diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index 4eb1b96907..204a0ff8f8 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -117,7 +117,6 @@ namespace CalamityMod.Projectiles.Ranged } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.Calamity().ashesOnDeath = 10; target.AddBuff(ModContent.BuffType(), 180); int bonusDamage = 10000; if (target.Calamity().demonicFlamesBonusDamage <= bonusDamage) From aab48464b388921a8ea5418fdca59cef3cb8faa9 Mon Sep 17 00:00:00 2001 From: fryzahh Date: Sat, 10 May 2025 23:26:05 -0400 Subject: [PATCH 26/50] Improved visuals for Voidragon's deathray - Self explanatory, new shader and some visual updates for the AbyssalFire projectile --- Effects/AbyssalFireShader.fx | 71 ++++++++++++++++++++++ Effects/AbyssalFireShader.xnb | Bin 0 -> 2744 bytes Effects/CalamityShaders.cs | 12 ++++ Projectiles/Ranged/AbyssalFire.cs | 96 ++++++++++++++++++++++++++---- 4 files changed, 166 insertions(+), 13 deletions(-) create mode 100644 Effects/AbyssalFireShader.fx create mode 100644 Effects/AbyssalFireShader.xnb diff --git a/Effects/AbyssalFireShader.fx b/Effects/AbyssalFireShader.fx new file mode 100644 index 0000000000..503fcdeb5e --- /dev/null +++ b/Effects/AbyssalFireShader.fx @@ -0,0 +1,71 @@ +sampler noiseTexture1 : register(s1); +sampler noiseTexture2 : register(s2); + +float time; +float4 secondaryColor; +matrix uWorldViewProjection; + +struct VertexShaderInput +{ + float4 Position : POSITION0; + float4 Color : COLOR0; + float3 TextureCoordinates : TEXCOORD0; +}; + +struct VertexShaderOutput +{ + float4 Position : SV_POSITION; + float4 Color : COLOR0; + float3 TextureCoordinates : TEXCOORD0; +}; + +VertexShaderOutput VertexShaderFunction(in VertexShaderInput input) +{ + VertexShaderOutput output = (VertexShaderOutput) 0; + float4 pos = mul(input.Position, uWorldViewProjection); + output.Position = pos; + output.Color = input.Color; + output.TextureCoordinates = input.TextureCoordinates; + + return output; +} + +float InverseLerp(float from, float to, float x) +{ + return saturate((x - from) / (to - from)); +} + +float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0 +{ + float4 color = input.Color; + float2 coords = input.TextureCoordinates; + + // Account for texture distortion artifacts. + coords.y = (coords.y - 0.5) / input.TextureCoordinates.z + 0.5; + + // Read the fade map as a streak. + float bloomFadeout = pow(sin(coords.y * 3.141), 4); + float4 noiseColor = tex2D(noiseTexture1, float2(frac(coords.x * 5 - time * 3.5), coords.y - time * 1.5)); + float opacity = (0.5 + noiseColor.g) * bloomFadeout; + + // Calculate secondary noise colors. + float noiseFade2 = tex2D(noiseTexture2, float2(frac(coords.x * 2.5 - time * 2.75), coords.y)).r; + float4 noiseColor2 = InverseLerp(0.4, 0.5, noiseFade2 * bloomFadeout) * secondaryColor; + + // Fade out at the ends of the streak. + if (coords.x < 0.018) + opacity *= pow(coords.x / 0.018, 6); + if (coords.x > 0.95) + opacity *= pow(1 - (coords.x - 0.95) / 0.05, 6); + + return color * 1.4 * opacity + noiseColor2 * opacity; +} + +technique Technique1 +{ + pass LaserPass + { + VertexShader = compile vs_2_0 VertexShaderFunction(); + PixelShader = compile ps_2_0 PixelShaderFunction(); + } +} diff --git a/Effects/AbyssalFireShader.xnb b/Effects/AbyssalFireShader.xnb new file mode 100644 index 0000000000000000000000000000000000000000..ce29c6308db94036f1145af04a1266aea078a150 GIT binary patch literal 2744 zcmb_eOK%%h6h1SaBu*1>RfNO>iCMG~pvX#{1SNuyhue^dfI<@&OH@>@Gf_+(PZ--I zl~~L&>$3(C|_9lo|7g6aFq@s4;4GaH(N^Dqp_`Z8*Tw~fI6^?y8=XK9H_q&gA z{@umB0psQg5#w{?ol?k8x9+Ih9)a{MMFJtX*&ln~pbT zKQ8($udusaDptqri;h<`z)l2TdF!6 z&OXbYm72t{%iSm~^v7mkPDC-E_QbMeR8|Hc*GfAM-HfIEdnysJr#LpY@tFcwouXUW zEO^(lZrSzpcoX*1Jp(wN{9oyLB&fgddgaZFC1-EVb3ei=VqKV*<%ny49rnUL`|ZSU zwNQ1uwL-NDc?7)S6t^p-kLv(fVZxlmhL~{t3*eZ>A)Jd9JTHOwd-MayU-#(0KyLTw zeuNJnyOGRZzldVa!8Q-R9_g1L=X>HJvxK0?EN=|LYKCDaT#)R>!Xo$4T?WF&IYj%) zW-obg0;m}>DBF-p>^~tUY$t^MlWu@b6)Ex!4X(o zyKsKpF!M{D@N^fG4^W0S)>D`mViOOpDc6AZY49>wor_kh6{GdI9&7tg)88oiTVFw$ zF2!e+hPYO*trMP-?CQ!!vOD76gwc5&@#ma=4o12FpEI(QU(GVVA!`BWPKuwD*@Hy^ z6hEI7%kx5FEcr>X+^!_XaXt?~DNq=SyoaM_Nh*N(XYkxte}r#}1oN~Hz-_!H z%54#Q{87WdC9S^@la#ow=hP}Q~Mv{$-XpRT;p7TI|Ox2&OaIx=QNME2=a+QCMpyh!xdA!8KT%8FoxD>Y`M$<| zng9$IKFsld&?is%j)=~zAD?UdF93e}i~~cgSE@0r*37s~9KqN-Ttidoz%kM-rDM-V adQ$0J8_W^Qp1Oxv{?&s#^gH4jMENfVcCv5) literal 0 HcmV?d00001 diff --git a/Effects/CalamityShaders.cs b/Effects/CalamityShaders.cs index 5d9a73271a..b8720cf6a9 100644 --- a/Effects/CalamityShaders.cs +++ b/Effects/CalamityShaders.cs @@ -210,6 +210,13 @@ namespace CalamityMod.Effects internal static Effect FlipScreenShader; #endregion + // + // All below shaders created by fryzahh + // + #region fryzahh's Shaders + internal static Effect AbyssalFireShader; + #endregion + public override void PostSetupContent() { AssetRepository calAss = CalamityMod.Instance.Assets; @@ -417,6 +424,11 @@ namespace CalamityMod.Effects FlipScreenShader = LoadShader("ScreenShaders/FlipScreen"); RegisterScreenShader(FlipScreenShader, "FlipTheScreen", "FlipScreen",EffectPriority.VeryHigh); #endregion + + #region Loading fryzahh's Shaders + AbyssalFireShader = LoadShader("AbyssalFireShader"); + RegisterMiscShader(AbyssalFireShader, "LaserPass", "AbyssalFire"); + #endregion } // Shorthand to register a loaded shader in Terraria's graphics engine diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index 204a0ff8f8..223820e4ab 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -3,11 +3,17 @@ using System.Collections.Generic; using System.Linq; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.DataStructures; +using CalamityMod.Dusts; +using CalamityMod.Effects; using CalamityMod.Graphics.Metaballs; using CalamityMod.Graphics.Primitives; using CalamityMod.Packets.Entities; +using CalamityMod.Particles; using CalamityMod.World; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; @@ -19,16 +25,19 @@ namespace CalamityMod.Projectiles.Ranged public class AbyssalFire : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; + + public Vector2[] ControlPoints = new Vector2[32]; public Player Owner => Main.player[Projectile.owner]; public Projectile VoidragonHoldout => Main.projectile[(int)Projectile.ai[0]]; public ref float LaserLength => ref Projectile.ai[1]; + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; public const float MaxLaserLength = 3330f; public override void SetDefaults() { - Projectile.width = Projectile.height = 32; + Projectile.width = Projectile.height = 75; Projectile.friendly = true; Projectile.DamageType = DamageClass.Ranged; Projectile.penetrate = -1; @@ -48,18 +57,63 @@ namespace CalamityMod.Projectiles.Ranged return; } - // Grow bigger up to a point. - Projectile.scale = MathHelper.Clamp(Projectile.scale + 0.15f, 0.05f, 2f); + // Set the control points for the primitive drawing. + for (int i = 0; i < ControlPoints.Length; i++) + ControlPoints[i] = Projectile.Center + Projectile.velocity * i / (ControlPoints.Length - 1f) * LaserLength; + + // Grow and shrink depending on how long left the laser has to remain active. + int beamTimer = VoidragonHoldout.ModProjectile().beamTimer; + if (beamTimer <= 500 && beamTimer >= 425) + Projectile.scale += 0.1f; + else if (beamTimer <= 75 && beamTimer >= 0 && Projectile.scale > 0f) + Projectile.scale -= 0.1f; + Projectile.scale = MathHelper.Clamp(Projectile.scale, 0f, 2f); // Decide where to position the laserbeam. Vector2 circlePointDirection = Projectile.velocity.SafeNormalize(Vector2.UnitX * Owner.direction); - Projectile.Center = VoidragonHoldout.Center; + Projectile.Center = VoidragonHoldout.ModProjectile().GunTipPosition; LaserLength = MaxLaserLength; // Update aim. UpdateAim(); + // Spawn a bunch of particles along the length of the laser. + if (Projectile.scale >= 0.25f) + { + BezierCurve curve = new(ControlPoints); + for (int i = 0; i < 10; i++) + { + Vector2 fireSpawnPosition = curve.Evaluate(Main.rand.NextFloat(0.05f, 1f)); + Vector2 fireVelocity = Projectile.velocity + Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(10f, 15f); + + Color fireColor = Color.Lerp(Color.DarkOrchid, Color.DarkMagenta, Main.rand.NextFloat()); + int fireLifetime = Main.rand.Next(45, 60); + float fireScale = Main.rand.NextFloat(0.45f, 1f) * Projectile.scale; + float fireOpacity = Main.rand.NextFloat(0.65f, 0.95f); + + HeavySmokeParticle abyssalFlames = new(fireSpawnPosition, fireVelocity, fireColor, fireLifetime, fireScale, fireOpacity, 0.03f, true); + GeneralParticleHandler.SpawnParticle(abyssalFlames); + } + + for (int i = 0; i < 6; i++) + { + Vector2 sparkSpawnPosition = curve.Evaluate(Main.rand.NextFloat(0.05f, 1f)); + Vector2 sparkVelocity = Projectile.velocity.RotatedBy(MathHelper.PiOver2 * Main.rand.NextBool().ToDirectionInt()) * Main.rand.NextFloat(9f, 18f) * Main.rand.NextVector2Circular(1f, 1f); + + Dust dust = Dust.NewDustDirect(sparkSpawnPosition, 1, 1, ModContent.DustType()); + dust.noGravity = true; + dust.velocity = sparkVelocity; + dust.scale = Main.rand.NextFloat(0.8f, 1.2f) * Projectile.scale; + dust.color = Main.rand.NextBool() ? Color.MediumOrchid : Color.BlueViolet; + dust.noLightEmittence = true; + } + } + + // Shake the screen slightly. + if (Owner.Calamity().GeneralScreenShakePower < 1.15f) + Owner.Calamity().GeneralScreenShakePower = MathHelper.Lerp(0f, 1.15f, Projectile.scale / 2f); + // Make the beam cast light along its length. The brightness of the light is reliant on the scale of the beam. DelegateMethods.v3_1 = Color.DarkViolet.ToVector3() * Projectile.scale * 0.4f; Utils.PlotTileLine(Projectile.Center, Projectile.Center + Projectile.velocity * LaserLength, Projectile.width * Projectile.scale, DelegateMethods.CastLight); @@ -83,26 +137,42 @@ namespace CalamityMod.Projectiles.Ranged Projectile.velocity = newAimDirection; } - private float PrimitiveWidthFunction(float completionRatio) => Projectile.scale * 25f; + private float PrimitiveWidthFunction(float completionRatio) + { + float width; + float maxBodyWidth = Projectile.scale * 75f; + float shrinkRatio = 0.1f; + + if (completionRatio < shrinkRatio) + width = MathF.Sin(completionRatio / shrinkRatio * MathHelper.PiOver2) * maxBodyWidth + shrinkRatio; + else + width = Utils.Remap(completionRatio, shrinkRatio, 1f, maxBodyWidth, 0f); + + return width; + } private Color PrimitiveColorFunction(float completionRatio) { - Color vibrantColor = Color.Lerp(Color.Indigo, Color.Purple, (float)Math.Cos(Main.GlobalTimeWrappedHourly * 0.67f - completionRatio / LaserLength * 29f) * 0.5f + 0.5f); + Color vibrantColor = Color.Lerp(Color.Indigo, Color.MediumPurple, (float)Math.Cos(Main.GlobalTimeWrappedHourly * 0.67f - completionRatio / LaserLength * 29f) * 0.5f + 0.5f); float opacity = Projectile.Opacity * Utils.GetLerpValue(0.97f, 0.9f, completionRatio, true) * Utils.GetLerpValue(0f, MathHelper.Clamp(15f / LaserLength, 0f, 0.5f), completionRatio, true) * - (float)Math.Pow(Utils.GetLerpValue(60f, 270f, LaserLength, true), 3D); - return Color.Lerp(vibrantColor, Color.Violet, 0.5f) * opacity * 2f; + MathF.Pow(Utils.GetLerpValue(60f, 270f, LaserLength, true), 3f); + + return Color.Lerp(vibrantColor, Color.Black, 0.5f) * opacity * 2f; } public override bool PreDraw(ref Color lightColor) { - GameShaders.Misc["CalamityMod:Flame"].UseImage1("Images/Misc/Perlin"); + Asset mainStreakTexture = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons2"); + Asset secondaryStreakTexture = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons2"); - Vector2[] basePoints = new Vector2[24]; - for (int i = 0; i < basePoints.Length; i++) - basePoints[i] = Projectile.Center + Projectile.velocity * i / (basePoints.Length - 1f) * LaserLength; + MiscShaderData shader = GameShaders.Misc["CalamityMod:AbyssalFire"]; + shader.Shader.Parameters["time"].SetValue(Main.GlobalTimeWrappedHourly); + shader.Shader.Parameters["secondaryColor"].SetValue(Color.Lerp(Color.MediumPurple, Color.White, 0.65f).ToVector4()); + shader.SetShaderTexture(mainStreakTexture); + Main.instance.GraphicsDevice.Textures[2] = secondaryStreakTexture.Value; - PrimitiveRenderer.RenderTrail(basePoints, new(PrimitiveWidthFunction, PrimitiveColorFunction, shader: GameShaders.Misc["CalamityMod:Flame"]), 92); + PrimitiveRenderer.RenderTrail(ControlPoints, new(PrimitiveWidthFunction, PrimitiveColorFunction, shader: shader), ControlPoints.Length + 12); return false; } From edad1cf4905e92d11d3c0d41976e91bea330c641 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sun, 11 May 2025 13:28:45 -0700 Subject: [PATCH 27/50] Beam now fizzles out on time --- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- Projectiles/Ranged/AbyssalFire.cs | 2 +- Projectiles/Ranged/VoidragonHoldout.cs | 20 +------------------ 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 125ad7d2ac..61a6454153 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1434,7 +1434,7 @@ Voidragon: { After firing, the gun unleashes a beam of abyssal fire that erases foes from existence The beam grows more powerful based on the amount of shots hit At maximum damage, abyssal portals rotate around the user that constantly summon creatures from beyond - 'Fade to black' + [c/C843E2: 'Fade to black'] ''' } diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index 223820e4ab..ec9fd0f98c 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Ranged int beamTimer = VoidragonHoldout.ModProjectile().beamTimer; if (beamTimer <= 500 && beamTimer >= 425) Projectile.scale += 0.1f; - else if (beamTimer <= 75 && beamTimer >= 0 && Projectile.scale > 0f) + else if (beamTimer <= 25 && beamTimer >= 0 && Projectile.scale > 0f) Projectile.scale -= 0.1f; Projectile.scale = MathHelper.Clamp(Projectile.scale, 0f, 2f); diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index ae4037215b..2bb1d03063 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -129,30 +129,12 @@ namespace CalamityMod.Projectiles.Ranged } if (shotCounter == 51 && framesBetweenShots == 0) { - Main.NewText(beamTimer); + //Main.NewText(beamTimer); firingBeam = true; if (firingBeam && beamTimer > 0) { #region Visuals and Sounds Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; - - //Extremely WIP visuals for the laser source - float orbScale = 0.2f * Main.rand.NextFloat(0.8f, 1.1f); - Color smokeColor = Color.Lerp(Color.DimGray, Color.DarkGray, Main.rand.NextFloat(0.2f, 0.6f)); - Particle orb = new CustomPulse(GunTipPosition, Vector2.Zero, smokeColor * 0.7f, "CalamityMod/ExtraTextures/GreyscaleVortex", new Vector2(1, 1), Projectile.ai[2] * 0.45f, orbScale, orbScale * 1.1f, 6, false); - GeneralParticleHandler.SpawnParticle(orb); - Particle orb3 = new CustomPulse(GunTipPosition, Vector2.Zero, Color.Indigo, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0.5f, 0.15f, 6); - GeneralParticleHandler.SpawnParticle(orb3); - Particle orb2 = new CustomPulse(GunTipPosition, Vector2.Zero, Color.White, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0.1f, 0.07f, 6); - GeneralParticleHandler.SpawnParticle(orb2); - - float offset = Main.rand.NextFloat(MathHelper.TwoPi); - for (int i = 0; i < 4; i++) - { - Vector2 velocity = (MathHelper.TwoPi * i / 4f + offset).ToRotationVector2(); - Particle cross = new GlowSparkParticle(GunTipPosition, velocity, false, 6, 0.4f, Color.BlueViolet * 0.7f, new Vector2(0.07f, 0.08f), true, false); - GeneralParticleHandler.SpawnParticle(cross); - } #endregion //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage From 93bf030dac85ece9af811af9ccd84610ff85f016 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Thu, 5 Jun 2025 16:42:14 -0700 Subject: [PATCH 28/50] fucking merge conflicts --- CalPlayer/CalamityPlayer.cs | 1 - Effects/CalamityShaders.cs | 7 ------- 2 files changed, 8 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index a70a7a93ad..6358cd6b49 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -361,7 +361,6 @@ namespace CalamityMod.CalPlayer public int murasamaHitCooldown = 0; public int giantShellPostHit = 0; public int tortShellPostHit = 0; - public int RustyMedallionCooldown = 0; public int sharkGunDamageScaling = 0; public int MiniSwarmerCooldown = 0; public float SulphWaterPoisoningLevel; diff --git a/Effects/CalamityShaders.cs b/Effects/CalamityShaders.cs index 1f524f25a2..da4520cb04 100644 --- a/Effects/CalamityShaders.cs +++ b/Effects/CalamityShaders.cs @@ -225,12 +225,7 @@ namespace CalamityMod.Effects // The underwater rays seen at the top of the Sunken Sea Mod Menu. internal static Effect UnderwaterRaysShader; - #endregion - // - // All below shaders created by fryzahh - // - #region fryzahh's Shaders internal static Effect AbyssalFireShader; #endregion @@ -454,9 +449,7 @@ namespace CalamityMod.Effects UnderwaterRaysShader = LoadShader("UnderwaterRaysShader"); RegisterMiscShader(UnderwaterRaysShader, "UnderwaterRayPass", "UnderwaterRays"); - #endregion - #region Loading fryzahh's Shaders AbyssalFireShader = LoadShader("AbyssalFireShader"); RegisterMiscShader(AbyssalFireShader, "LaserPass", "AbyssalFire"); #endregion From 9fa98bbf4bbbdb43242065e8f058e88713ea2afd Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sat, 7 Jun 2025 03:03:08 -0700 Subject: [PATCH 29/50] voidragon visual work --- Items/Weapons/Ranged/Voidragon.cs | 3 +- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 16 +++--- Projectiles/Ranged/AbyssalFire.cs | 3 +- Projectiles/Ranged/ArcherfishHoldout.cs | 22 +++----- Projectiles/Ranged/ArcherfishShot.cs | 9 --- Projectiles/Ranged/SeadragonHoldout.cs | 4 +- Projectiles/Ranged/VoidBlast.cs | 23 ++++---- Projectiles/Ranged/VoidBlastExplosion.cs | 55 ------------------- Projectiles/Ranged/VoidragonHoldout.cs | 48 ++++++++++++++-- 9 files changed, 75 insertions(+), 108 deletions(-) delete mode 100644 Projectiles/Ranged/VoidBlastExplosion.cs diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index 7e241bed5a..71378aa8fb 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 96; Item.height = 38; - Item.damage = 450; + Item.damage = 800; Item.DamageType = DamageClass.Ranged; Item.useTime = 3; Item.useAnimation = 3; @@ -36,7 +36,6 @@ namespace CalamityMod.Items.Weapons.Ranged Item.autoReuse = true; Item.noUseGraphic = true; Item.channel = true; - Item.shoot = ProjectileID.PurificationPowder; Item.shootSpeed = 18f; Item.useAmmo = AmmoID.Bullet; Item.shoot = ModContent.ProjectileType(); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 0069c2fcb5..3209ff10aa 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1063,9 +1063,9 @@ Seadragon: { Tooltip: ''' Loads a 50 round deluge of alternating bullets and pressurized water jets - Water jets summon a small fish that swims around and follows you - After firing, all fish rush toward enemies and explode before the gun reloads - Water jets consume no ammo + Water jets summon small fish that swim around you + Once your mag runs empty, all fish rush toward enemies and explode before the gun can reload + Water jets do not consume ammo ''' } @@ -1419,11 +1419,11 @@ Voidragon: { DisplayName: Voidragon Tooltip: ''' - Loads a 50 round magazine of bullets and concentrated void blasts - After firing, the gun unleashes a beam of abyssal fire that erases foes from existence - The beam grows more powerful based on the amount of shots hit - At maximum damage, abyssal portals rotate around the user that constantly summon creatures from beyond - [c/C843E2: 'Fade to black'] + Loads a 50 round onslaught of bullets and concentrated void blasts + Once your mag runs empty, an eruption of abyssal fire eviscerates wherever you look + The beam grows increasingly powerful with the amount of shots you hit + At maximum power, rifts from beyond are torn around you which summon otherworldly creatures + [c/620BB0: 'Fade to black'] ''' } diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index ec9fd0f98c..f9c4024a25 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -187,8 +187,9 @@ namespace CalamityMod.Projectiles.Ranged } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { + Player Owner = Main.player[Projectile.owner]; target.AddBuff(ModContent.BuffType(), 180); - int bonusDamage = 10000; + int bonusDamage = 200 * Owner.Calamity().sharkGunDamageScaling; if (target.Calamity().demonicFlamesBonusDamage <= bonusDamage) { target.Calamity().demonicFlamesBonusDamage = bonusDamage; diff --git a/Projectiles/Ranged/ArcherfishHoldout.cs b/Projectiles/Ranged/ArcherfishHoldout.cs index 4f95375e2b..fc08e72562 100644 --- a/Projectiles/Ranged/ArcherfishHoldout.cs +++ b/Projectiles/Ranged/ArcherfishHoldout.cs @@ -27,14 +27,15 @@ namespace CalamityMod.Projectiles.Ranged public int Time = 0; public int shotCounter = 0; public int framesBetweenShots = 0; - public bool swapType = false; + public bool isTired = false; public override void KillHoldoutLogic() { //If the player is dead, kill the holdout. - if (Owner.CantUseHoldout() || HeldItem.type != Owner.ActiveItem().type && shotCounter <= 19) + if (!isTired && (Owner.CantUseHoldout() || HeldItem.type != Owner.ActiveItem().type)) Projectile.Kill(); } + public override void HoldoutAI() { @@ -49,15 +50,7 @@ namespace CalamityMod.Projectiles.Ranged #endregion #region Visuals and Sounds SoundEngine.PlaySound(SoundID.Item85, Projectile.Center); - Particle sparker = new CritSpark(GunTipPosition, Vector2.Zero, Color.Gold, Color.LightGoldenrodYellow, 1.7f, 3, 0.5f, 3f); - GeneralParticleHandler.SpawnParticle(sparker); - for (int i = 0; i <= 4; i++) - { - Dust dust = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(3) ? 303 : 244, (shootVelocity * Main.rand.NextFloat(0.2f, 1.1f)).RotatedByRandom(0.4f)); - dust.noGravity = true; - dust.scale = Main.rand.NextFloat(0.8f, 1.4f); - } - if (shotCounter > 14) + if (shotCounter > 20) { for (int i = 0; i < 3; ++i) { @@ -86,14 +79,15 @@ namespace CalamityMod.Projectiles.Ranged Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); shotCounter++; //Allow a pause before firing the rocket. This allows the final bullet a chance to hit before the rocket is fired. Lowering this number reduces the delay, but may also cause the gun to become inconsistent - if (shotCounter == 20) + if (shotCounter == 25) framesBetweenShots = 80; } if (framesBetweenShots > 0) framesBetweenShots--; } - if (shotCounter >= 19 && framesBetweenShots > 0) + if (shotCounter == 25 && framesBetweenShots > 0) { + isTired = true; Owner.channel = true; if (framesBetweenShots % 6 == 0) { @@ -127,7 +121,7 @@ namespace CalamityMod.Projectiles.Ranged } } - if (shotCounter == 20 && framesBetweenShots == 0) + if (shotCounter == 25 && framesBetweenShots == 0) { if (framesBetweenShots == 0) { diff --git a/Projectiles/Ranged/ArcherfishShot.cs b/Projectiles/Ranged/ArcherfishShot.cs index 918ebc8a95..f470473a7b 100644 --- a/Projectiles/Ranged/ArcherfishShot.cs +++ b/Projectiles/Ranged/ArcherfishShot.cs @@ -30,15 +30,6 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { - // Bubbles - if (Main.rand.NextBool()) - { - Gore bubble = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * 0.2f + Main.rand.NextVector2Circular(1f, 1f), 411); - bubble.timeLeft = 9 + Main.rand.Next(7); - bubble.scale = Main.rand.NextFloat(0.6f, 1f); - bubble.type = Main.rand.NextBool(3) ? 412 : 411; - } - // Water trail for (int i = 0; i < 6; i++) { diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index c314ddde34..bc3eba3cd0 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -64,7 +64,7 @@ namespace CalamityMod.Projectiles.Ranged #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotTiny"); SoundEngine.PlaySound(fire with { Volume = 0.3f, Pitch = 0.25f , PitchVariance = 0.1f, MaxInstances = -1 }, Projectile.Center); - Particle sparker = new CustomPulse(GunTipPosition, Vector2.Zero, Color.HotPink, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.02f, 0.5f, 10, true, 0.8f); + Particle sparker = new CustomPulse(GunTipPosition, Vector2.Zero, Color.HotPink, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.02f, 0.5f, 5, true, 0.8f); GeneralParticleHandler.SpawnParticle(sparker); GenericSparkle sparker2 = new GenericSparkle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.SeaShell : Color.Silver * 0.9f, Color.HotPink, Main.rand.NextFloat(0.8f, 1.2f), 2, 0, 2.68f); GeneralParticleHandler.SpawnParticle(sparker2); @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Ranged //How many frames between firing projectiles, and how far the gun moves backward to give the effect of recoil. Change this number to edit fire rate framesBetweenShots = 3; - OffsetLengthFromArm -= 3f; + OffsetLengthFromArm -= 2f; //Here we detect which ammo the bullets will use Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); //Alternate between shooting bullets and water streams. Despite not having damage scaling, the fish gain movement speed based on the scaling, so we still need a Global Projectile diff --git a/Projectiles/Ranged/VoidBlast.cs b/Projectiles/Ranged/VoidBlast.cs index 12e83a5f74..aa14c9d8d6 100644 --- a/Projectiles/Ranged/VoidBlast.cs +++ b/Projectiles/Ranged/VoidBlast.cs @@ -67,21 +67,20 @@ namespace CalamityMod.Projectiles.Ranged Player Owner = Main.player[Projectile.owner]; Owner.Calamity().sharkGunDamageScaling++; } - int bonusDamage = 10000; - if (target.Calamity().demonicFlamesBonusDamage <= bonusDamage) - { - target.Calamity().demonicFlamesBonusDamage = bonusDamage; - target.AddBuff(ModContent.BuffType(), 180); - // Demonic Flames damage must be synced, because OnHitNPC is only run for the client that hit the NPC - if (Main.netMode != NetmodeID.SinglePlayer) - DemonicFlamesSyncPacket.Send(target); - } } public override void OnKill(int timeLeft) { - //We can't set Demonic Flames damage with a Basic Burst projectile, so we'll have to use a new one - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f), Projectile.knockBack, Projectile.owner); + float blastSize = 170; + float minMultiplier = 0.25f; + int hitsToMinMult = -1; + int debuff1 = ModContent.BuffType(); + int debuffTime = 180; + Projectile blast = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f), Projectile.knockBack, Projectile.owner, blastSize, minMultiplier, hitsToMinMult); + blast.localAI[0] = debuff1; + blast.localAI[1] = debuffTime; + blast.timeLeft = 2; + blast.DamageType = Projectile.DamageType; #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/OmicronBeam"); SoundEngine.PlaySound(fire with { Volume = 0.9f }, Projectile.Center); @@ -126,8 +125,6 @@ namespace CalamityMod.Projectiles.Ranged } public override bool PreDraw(ref Color lightColor) { - if (time == 0) - return false; Texture2D texture = ModContent.Request("CalamityMod/Particles/GlowSpark").Value; Vector2 drawPosition = Projectile.Center - Main.screenPosition; Color drawColor = Projectile.GetAlpha(lightColor); diff --git a/Projectiles/Ranged/VoidBlastExplosion.cs b/Projectiles/Ranged/VoidBlastExplosion.cs deleted file mode 100644 index 9cc32bf48c..0000000000 --- a/Projectiles/Ranged/VoidBlastExplosion.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Buffs.StatDebuffs; -using CalamityMod.Dusts; -using CalamityMod.Packets.Entities; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.Audio; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Ranged -{ - public class VoidBlastExplosion : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Ranged"; - public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; - - public override void SetDefaults() - { - Projectile.width = 400; - Projectile.height = 365; - Projectile.friendly = true; - Projectile.ignoreWater = false; - Projectile.tileCollide = false; - Projectile.penetrate = -1; - Projectile.timeLeft = 20; - Projectile.DamageType = DamageClass.Ranged; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = -1; - } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(ModContent.BuffType(), 180); - int bonusDamage = 10000; - if (target.Calamity().demonicFlamesBonusDamage <= bonusDamage) - { - target.Calamity().demonicFlamesBonusDamage = bonusDamage; - target.AddBuff(ModContent.BuffType(), 180); - // Demonic Flames damage must be synced, because OnHitNPC is only run for the client that hit the NPC - if (Main.netMode != NetmodeID.SinglePlayer) - DemonicFlamesSyncPacket.Send(target); - } - } - public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) - { - if (Projectile.numHits > 0) - Projectile.damage = (int)(Projectile.damage * 0.8f); - if (Projectile.damage < 1) - Projectile.damage = 1; - } - public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, Projectile.width * 0.5f * Projectile.scale, targetHitbox); - } -} diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index 2bb1d03063..0c8c36018c 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -14,6 +14,9 @@ using Steamworks; using Mono.Cecil; using Newtonsoft.Json.Serialization; using CalamityMod.Dusts; +using static System.Net.Mime.MediaTypeNames; +using System; +using System.Runtime.CompilerServices; namespace CalamityMod.Projectiles.Ranged { @@ -24,7 +27,7 @@ namespace CalamityMod.Projectiles.Ranged public override float OffsetXUpwards => -5f; public override float BaseOffsetY => -1f; public override float OffsetYDownwards => 5f; - public override Vector2 GunTipPosition => Projectile.Center + (Projectile.velocity * 55).RotatedBy(-0.05f * Projectile.direction); + public override Vector2 GunTipPosition => Projectile.Center + (Projectile.velocity * 55).RotatedBy(-0.09f * Projectile.direction); public int Time = 0; public int beamTimer = 500; @@ -76,18 +79,36 @@ namespace CalamityMod.Projectiles.Ranged //Main.NewText(shotCounter); //Main.NewText(Owner.Calamity().sharkGunDamageScaling); #endregion + //Do not look in here if you value your sanity #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotTiny"); SoundEngine.PlaySound(fire with { Volume = 0.4f, Pitch = 0.1f, PitchVariance = 0.1f, MaxInstances = -1 }, Projectile.Center); - Particle sparker = new CritSpark(GunTipPosition, Vector2.Zero, Color.Gold, Color.LightGoldenrodYellow, 1.7f, 3, 0.5f, 3f); + Particle sparker = new CustomPulse(GunTipPosition, Vector2.Zero, Color.Purple, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.02f, 0.5f, 6, true, 0.8f); GeneralParticleHandler.SpawnParticle(sparker); - Particle spark2 = new GlowSparkParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.8f) * Main.rand.NextFloat(1.2f, 1.5f), false, 15, 0.017f, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet, new Vector2(1.5f, 0.7f), true, false, 1.3f); - GeneralParticleHandler.SpawnParticle(spark2); + Particle center = new SnowflakeSparkle(GunTipPosition, Vector2.Zero, Color.White, Color.Indigo, 0.8f, 2, Main.rand.NextFloat(-10, 10), 0.5f, 6); + GeneralParticleHandler.SpawnParticle(center); + GenericSparkle sparker2 = new GenericSparkle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet * 0.9f, Color.Indigo, Main.rand.NextFloat(1.4f, 1.6f), 2, 0, 2.22f); + GeneralParticleHandler.SpawnParticle(sparker2); + GenericSparkle sparker3 = new GenericSparkle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet * 0.9f, Color.Indigo, Main.rand.NextFloat(2.5f, 2.6f), 2, 0, 2.68f); + GeneralParticleHandler.SpawnParticle(sparker3); + for (int i = 0; i <= 2; i++) + { + Particle spark = new VoidSparkParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.8f) * Main.rand.NextFloat(1.2f, 1.5f), false, 25, 0.1f, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet); + GeneralParticleHandler.SpawnParticle(spark); + } for (int i = 0; i <= 4; i++) { Dust dust = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(3) ? 303 : 244, (shootVelocity * Main.rand.NextFloat(0.2f, 1.1f)).RotatedByRandom(0.4f)); dust.noGravity = true; dust.scale = Main.rand.NextFloat(0.8f, 1.4f); + Particle smoke = new HeavySmokeParticle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.Black : Color.Indigo * 0.6f, 10, 0.85f, 1.1f, 5f, false, 0, true); + GeneralParticleHandler.SpawnParticle(smoke); + } + if (swapType) + { + float rotation = Projectile.velocity.ToRotation(); + Particle pulse = new CustomPulse(GunTipPosition, shootVelocity, Color.Indigo, "CalamityMod/Particles/FlameExplosion", new Vector2(0.4f, 1f), rotation, 0f, 0.07f, 10, true, 1.4f); + GeneralParticleHandler.SpawnParticle(pulse); } #endregion @@ -127,6 +148,11 @@ namespace CalamityMod.Projectiles.Ranged if (framesBetweenShots > 0) framesBetweenShots--; } + if (shotCounter == 51 && !firingBeam) + { + Particle streak = new ManaDrainStreak(Owner, Main.rand.NextFloat(2f, 3f), Main.rand.NextVector2CircularEdge(20f, 20f) * Main.rand.NextFloat(2f, 4f), 0f, Color.Indigo, Color.BlueViolet, 7, GunTipPosition); + GeneralParticleHandler.SpawnParticle(streak); + } if (shotCounter == 51 && framesBetweenShots == 0) { //Main.NewText(beamTimer); @@ -161,12 +187,26 @@ namespace CalamityMod.Projectiles.Ranged if (Time < 2) return false; Texture2D texture = TextureAssets.Projectile[Type].Value; + Texture2D texture2 = ModContent.Request("CalamityMod/Particles/BloomCircle").Value; + Texture2D sparkle = ModContent.Request("CalamityMod/Particles/HalfStar").Value; Vector2 drawPosition = Projectile.Center - Main.screenPosition; float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); Vector2 rotationPoint = texture.Size() * 0.5f; SpriteEffects flipSprite = (Projectile.spriteDirection * Owner.gravDir == -1) ? SpriteEffects.FlipHorizontally : SpriteEffects.None; + Vector2 shake = Main.rand.NextVector2Circular(6, 6); + + for (int i = 0; i < 22; i++) + { + Color auraColor = Color.Lerp(Color.Indigo, Color.BlueViolet, i * 0.01f) with { A = 0 } * 0.6f; + Vector2 drawOffset = ((MathHelper.TwoPi * i / 22f).ToRotationVector2() * 5) + Main.rand.NextVector2Circular(7, 7); + Main.EntitySpriteDraw(texture, drawPosition + drawOffset, null, auraColor, drawRotation, rotationPoint, Projectile.scale * Main.rand.NextFloat(0.02f, 0.025f) * Owner.Calamity().sharkGunDamageScaling, flipSprite); + } Main.EntitySpriteDraw(texture, drawPosition, null, Projectile.GetAlpha(lightColor), drawRotation, rotationPoint, Projectile.scale * Owner.gravDir, flipSprite); + + if (firingBeam) + { + } return false; } } From 2a79b331a69b003b5e5059cb95e0964912906d00 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sun, 8 Jun 2025 19:25:40 -0700 Subject: [PATCH 30/50] seadragon is quite prideful on gfb --- Items/Weapons/Ranged/Voidragon.cs | 2 +- .../Mods.CalamityMod.Items.Weapons.Ranged.hjson | 4 ++-- Projectiles/Ranged/BlahajBlast.cs | 12 ++++++++++-- Projectiles/Ranged/VoidragonHoldout.cs | 6 +++--- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index 71378aa8fb..5ff101d186 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 96; Item.height = 38; - Item.damage = 800; + Item.damage = 2000; Item.DamageType = DamageClass.Ranged; Item.useTime = 3; Item.useAnimation = 3; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 3209ff10aa..79b92132e7 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1064,7 +1064,7 @@ Seadragon: { ''' Loads a 50 round deluge of alternating bullets and pressurized water jets Water jets summon small fish that swim around you - Once your mag runs empty, all fish rush toward enemies and explode before the gun can reload + Once the mag runs empty, all fish rush toward enemies and explode before the gun reloads Water jets do not consume ammo ''' } @@ -1420,7 +1420,7 @@ Voidragon: { Tooltip: ''' Loads a 50 round onslaught of bullets and concentrated void blasts - Once your mag runs empty, an eruption of abyssal fire eviscerates wherever you look + Once the mag runs empty, an eruption of abyssal fire eviscerates wherever you look The beam grows increasingly powerful with the amount of shots you hit At maximum power, rifts from beyond are torn around you which summon otherworldly creatures [c/620BB0: 'Fade to black'] diff --git a/Projectiles/Ranged/BlahajBlast.cs b/Projectiles/Ranged/BlahajBlast.cs index f432a806b8..488c7e67fb 100644 --- a/Projectiles/Ranged/BlahajBlast.cs +++ b/Projectiles/Ranged/BlahajBlast.cs @@ -45,8 +45,16 @@ namespace CalamityMod.Projectiles.Ranged } if (Projectile.timeLeft <= Lifetime - 4) { - Particle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 2, -Projectile.velocity * 0.05f, false, 10, 1.1f, Color.Aquamarine); - GeneralParticleHandler.SpawnParticle(spark); + if (Main.zenithWorld) + { + Particle transspark = new SparkParticle(Projectile.Center - Projectile.velocity * 2, -Projectile.velocity * 0.05f, false, 10, 1.1f, Main.rand.NextBool() ? Color.DeepSkyBlue : (Main.rand.NextBool() ? Color.White : Color.DeepPink)); + GeneralParticleHandler.SpawnParticle(transspark); + } + else + { + Particle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 2, -Projectile.velocity * 0.05f, false, 10, 1.1f, Color.Aquamarine); + GeneralParticleHandler.SpawnParticle(spark); + } if (Main.rand.NextBool(8)) { MediumMistParticle smoke = new MediumMistParticle(Projectile.Center + Main.rand.NextVector2Circular(25, 25), -Projectile.velocity * 0.05f, Main.rand.NextBool(3) ? Color.SeaGreen : Color.SkyBlue, Color.DarkBlue, 0.5f, 180, 3f); diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index 0c8c36018c..d842a7d304 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -85,7 +85,7 @@ namespace CalamityMod.Projectiles.Ranged SoundEngine.PlaySound(fire with { Volume = 0.4f, Pitch = 0.1f, PitchVariance = 0.1f, MaxInstances = -1 }, Projectile.Center); Particle sparker = new CustomPulse(GunTipPosition, Vector2.Zero, Color.Purple, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.02f, 0.5f, 6, true, 0.8f); GeneralParticleHandler.SpawnParticle(sparker); - Particle center = new SnowflakeSparkle(GunTipPosition, Vector2.Zero, Color.White, Color.Indigo, 0.8f, 2, Main.rand.NextFloat(-10, 10), 0.5f, 6); + Particle center = new SnowflakeSparkle(GunTipPosition, Vector2.Zero, Color.White, Color.Indigo, 0.8f, 2, Main.rand.NextFloat(-10, 10), 0.5f, 7); GeneralParticleHandler.SpawnParticle(center); GenericSparkle sparker2 = new GenericSparkle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet * 0.9f, Color.Indigo, Main.rand.NextFloat(1.4f, 1.6f), 2, 0, 2.22f); GeneralParticleHandler.SpawnParticle(sparker2); @@ -168,10 +168,10 @@ namespace CalamityMod.Projectiles.Ranged { Owner.Calamity().sharkGunDamageScaling++; } - //Spawn the laser. Change beamTimer to edit its lifetime + //Spawn the laser only once at the start of the timer. Change beamTimer to edit its lifetime //I fucking hate this laser by the way if (Main.myPlayer == Projectile.owner && beamTimer == 500) - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitX) * 5, ModContent.ProjectileType(), (int)(Projectile.damage * 0.05f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner, Projectile.whoAmI); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitX) * 5, ModContent.ProjectileType(), (int)(Projectile.damage * 0.03f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner, Projectile.whoAmI); beamTimer--; } else From 2d05af93f476756375d77f450e22a5cec8d4fc52 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Fri, 5 Sep 2025 19:00:10 -0700 Subject: [PATCH 31/50] Bye bye point blank --- Projectiles/Ranged/BlahajBlast.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Projectiles/Ranged/BlahajBlast.cs b/Projectiles/Ranged/BlahajBlast.cs index 488c7e67fb..8b3e681c0c 100644 --- a/Projectiles/Ranged/BlahajBlast.cs +++ b/Projectiles/Ranged/BlahajBlast.cs @@ -31,7 +31,6 @@ namespace CalamityMod.Projectiles.Ranged Projectile.usesLocalNPCImmunity = true; Projectile.tileCollide = false; Projectile.localNPCHitCooldown = -1; - Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration; } public override void AI() From 1218dd99b6acd563430f0a37a091bca12851d6ba Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sat, 6 Sep 2025 01:19:39 -0700 Subject: [PATCH 32/50] Archerfish updates --- Projectiles/Ranged/ArcherfishHoldout.cs | 76 ++++++++++----------- Projectiles/Ranged/ArcherfishShot.cs | 12 ++++ Projectiles/Ranged/MegalodonHoldout.cs | 87 ++++++++++++------------- Projectiles/Ranged/VoidragonHoldout.cs | 6 ++ 4 files changed, 94 insertions(+), 87 deletions(-) diff --git a/Projectiles/Ranged/ArcherfishHoldout.cs b/Projectiles/Ranged/ArcherfishHoldout.cs index fc08e72562..3496ec50b0 100644 --- a/Projectiles/Ranged/ArcherfishHoldout.cs +++ b/Projectiles/Ranged/ArcherfishHoldout.cs @@ -1,18 +1,14 @@ -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using ReLogic.Utilities; using Terraria; using Terraria.Audio; using Terraria.GameContent; using Terraria.ModLoader; using Terraria.ID; -using Steamworks; -using CalamityMod.Projectiles.Turret; -using Mono.Cecil; +using CalamityMod.Projectiles.Melee; namespace CalamityMod.Projectiles.Ranged { @@ -27,21 +23,25 @@ namespace CalamityMod.Projectiles.Ranged public int Time = 0; public int shotCounter = 0; public int framesBetweenShots = 0; - public bool isTired = false; + public bool PostVolley = false; public override void KillHoldoutLogic() { //If the player is dead, kill the holdout. - if (!isTired && (Owner.CantUseHoldout() || HeldItem.type != Owner.ActiveItem().type)) + if (Owner.CantUseHoldout() || !PostVolley && HeldItem.type != Owner.ActiveItem().type) Projectile.Kill(); } - public override void HoldoutAI() { + //Set the scaling to 0 as soon as the holdout spawns + if (Time == 1) + { + Owner.Calamity().sharkGunDamageScaling = 0; + } if (Time >= 10) { - if (framesBetweenShots == 0 && shotCounter <= 31) + if (framesBetweenShots == 0 && shotCounter <= 25) { Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 15; #region Debug Text Display @@ -50,25 +50,6 @@ namespace CalamityMod.Projectiles.Ranged #endregion #region Visuals and Sounds SoundEngine.PlaySound(SoundID.Item85, Projectile.Center); - if (shotCounter > 20) - { - for (int i = 0; i < 3; ++i) - { - int bloodLifetime = Main.rand.Next(12, 15); - float bloodScale = Main.rand.NextFloat(0.4f, 0.6f); - Color bloodColor = Color.Lerp(Color.LightBlue * 0.7f, Color.LightBlue, Main.rand.NextFloat()); - bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); - - if (Main.rand.NextBool(20)) - bloodScale *= 1.5f; - - float randomSpeedMultiplier = Main.rand.NextFloat(0.8f, 1.5f); - Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; - bloodVelocity.Y -= 3f; - BloodParticle blood = new BloodParticle(Projectile.Center + (Projectile.velocity * 14f).RotatedBy(-0.8f * Projectile.direction), bloodVelocity, bloodLifetime, bloodScale, bloodColor); - GeneralParticleHandler.SpawnParticle(blood); - } - } #endregion //How many frames between firing projectiles, and how far the gun moves backward to give the effect of recoil. Change this number to edit fire rate @@ -78,18 +59,35 @@ namespace CalamityMod.Projectiles.Ranged Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); shotCounter++; - //Allow a pause before firing the rocket. This allows the final bullet a chance to hit before the rocket is fired. Lowering this number reduces the delay, but may also cause the gun to become inconsistent + //Frame time is much longer due to Archerfish working differently, and handling both the shot and the "reload" on the same step if (shotCounter == 25) - framesBetweenShots = 80; + framesBetweenShots = 100; } if (framesBetweenShots > 0) framesBetweenShots--; } if (shotCounter == 25 && framesBetweenShots > 0) - { - isTired = true; + { + //Holdout cannot be killed during the final shot and cooldown + PostVolley = true; Owner.channel = true; - if (framesBetweenShots % 6 == 0) + //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the final shot doing 0 damage + if (Owner.Calamity().sharkGunDamageScaling == 0) + { + Owner.Calamity().sharkGunDamageScaling++; + } + //Pauses before triggering the final water blast. This allows extra water streams time to hit. Increasing this number reduces the delay, but may also cause the gun to become inconsistent + if (framesBetweenShots == 80) + { + SoundEngine.PlaySound((Main.rand.NextBool(2) ? SoundID.Item85 : SoundID.Item86).WithPitchOffset(-0.5f), Owner.Center); + SoundEngine.PlaySound(SoundID.NPCDeath14.WithPitchOffset(1f), Owner.Center); + //Fires the water jet. Damage is 20% of base, multiplied by how many shots hit. + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30, ModContent.ProjectileType(), (int)(Projectile.damage * 0.2f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); + } + #region Post Firing Visuals and Sounds + //After the water blast is fired, make the fish "sweat" during the reload + //I don't think this is how science works + if (framesBetweenShots % 6 == 0 && framesBetweenShots <= 80) { for (int i = 0; i < 2; ++i) { @@ -108,7 +106,8 @@ namespace CalamityMod.Projectiles.Ranged GeneralParticleHandler.SpawnParticle(blood); } } - if (framesBetweenShots % 25 == 0) + //Takes a heavy breath every 25 frames after the final shot is fired + if (framesBetweenShots % 25 == 0 && framesBetweenShots <= 75) { for (int i = 0; i < 4; i++) { @@ -119,6 +118,7 @@ namespace CalamityMod.Projectiles.Ranged SoundEngine.PlaySound(SoundID.Item111 with { Pitch = 0.05f, PitchVariance = 0.25f, MaxInstances = -1 }, Projectile.Center); OffsetLengthFromArm -= 4.5f; } + #endregion } if (shotCounter == 25 && framesBetweenShots == 0) @@ -126,13 +126,9 @@ namespace CalamityMod.Projectiles.Ranged if (framesBetweenShots == 0) { SoundEngine.PlaySound(SoundID.NPCDeath19, Projectile.Center); - //After firing the rocket, kill the projectile to allow left click to be held down + //After firing the water blast, kill the projectile to allow left click to be held down Projectile.Kill(); } - else - { - framesBetweenShots--; - } } Time++; } diff --git a/Projectiles/Ranged/ArcherfishShot.cs b/Projectiles/Ranged/ArcherfishShot.cs index e527d34098..635bf3d620 100644 --- a/Projectiles/Ranged/ArcherfishShot.cs +++ b/Projectiles/Ranged/ArcherfishShot.cs @@ -54,11 +54,23 @@ namespace CalamityMod.Projectiles.Ranged { target.AddBuff(BuffID.Wet, 120); target.AddBuff(ModContent.BuffType(), 120); + //Only increase damage on the first hit + if (Projectile.numHits == 0) + { + Player Owner = Main.player[Projectile.owner]; + Owner.Calamity().sharkGunDamageScaling++; + } } public override void OnHitPlayer(Player target, Player.HurtInfo info) { target.AddBuff(BuffID.Wet, 120); target.AddBuff(ModContent.BuffType(), 120); + //Only increase damage on the first hit + if (Projectile.numHits == 0) + { + Player Owner = Main.player[Projectile.owner]; + Owner.Calamity().sharkGunDamageScaling++; + } } } } diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs index 404b7187f3..934c8aa921 100644 --- a/Projectiles/Ranged/MegalodonHoldout.cs +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -107,58 +107,51 @@ namespace CalamityMod.Projectiles.Ranged } if (shotCounter == 30 && framesBetweenShots == 0) { - if (framesBetweenShots == 0) + Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; + //Debug Text + //Main.NewText(Owner.Calamity().sharkGunDamageScaling); + #region Visuals and Sounds + SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); + SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = 0.2f }, Projectile.Center); + for (int i = 0; i <= 13; i++) { - Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; - //Debug Text - //Main.NewText(Owner.Calamity().sharkGunDamageScaling); - #region Visuals and Sounds - SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotHeavy"); - SoundEngine.PlaySound(fire with { Volume = 0.6f, Pitch = 0.2f }, Projectile.Center); - for (int i = 0; i <= 13; i++) - { - Dust dust = Dust.NewDustPerfect(GunTipPosition, 303, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.2f, 1.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); - dust.noGravity = false; - dust.color = Color.White; + Dust dust = Dust.NewDustPerfect(GunTipPosition, 303, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.2f, 1.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); + dust.noGravity = false; + dust.color = Color.White; - Dust dust2 = Dust.NewDustPerfect(GunTipPosition, 278, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.1f, 0.8f)); - dust2.noGravity = true; - dust2.scale = Main.rand.NextFloat(0.52f, 0.72f); - dust2.color = Color.Lerp(Color.Orange, Color.Gold, Main.rand.NextFloat(0f, 1f)); - } - for (int i = 0; i < 14; i++) - { - Particle smoke = new HeavySmokeParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.6f) * Main.rand.NextFloat(0.2f, 1.5f), Color.RoyalBlue, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); - GeneralParticleHandler.SpawnParticle(smoke); - } - float rotation = Projectile.velocity.ToRotation(); - Particle pulse = new DirectionalPulseRing(GunTipPosition, shootVelocity / 4, Color.Gray, new Vector2(1f, 2.5f), rotation, 0.03f, 0.3f, 20); - GeneralParticleHandler.SpawnParticle(pulse); - //Extra sound and muzzle flash if the scaling is at max - if (Owner.Calamity().sharkGunDamageScaling == 30) - { - SoundStyle fireperfect = new("CalamityMod/Sounds/Item/ShadowboltReflect"); - SoundEngine.PlaySound(fireperfect with { Volume = 0.6f, Pitch = 0f }, GunTipPosition); - GenericSparkle sparker = new GenericSparkle(GunTipPosition, Vector2.Zero, Color.DarkGoldenrod, Color.Gold, Main.rand.NextFloat(1.1f, 1.8f), 10, 2f, 2.68f); - GeneralParticleHandler.SpawnParticle(sparker); - } - #endregion - - //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage - if (Owner.Calamity().sharkGunDamageScaling == 0) - { - Owner.Calamity().sharkGunDamageScaling++; - } - //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); - - //After firing the rocket, kill the projectile to allow left click to be held down - Projectile.Kill(); + Dust dust2 = Dust.NewDustPerfect(GunTipPosition, 278, shootVelocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.1f, 0.8f)); + dust2.noGravity = true; + dust2.scale = Main.rand.NextFloat(0.52f, 0.72f); + dust2.color = Color.Lerp(Color.Orange, Color.Gold, Main.rand.NextFloat(0f, 1f)); } - else + for (int i = 0; i < 14; i++) { - framesBetweenShots--; + Particle smoke = new HeavySmokeParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.6f) * Main.rand.NextFloat(0.2f, 1.5f), Color.RoyalBlue, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); + GeneralParticleHandler.SpawnParticle(smoke); } + float rotation = Projectile.velocity.ToRotation(); + Particle pulse = new DirectionalPulseRing(GunTipPosition, shootVelocity / 4, Color.Gray, new Vector2(1f, 2.5f), rotation, 0.03f, 0.3f, 20); + GeneralParticleHandler.SpawnParticle(pulse); + //Extra sound and muzzle flash if the scaling is at max + if (Owner.Calamity().sharkGunDamageScaling == 30) + { + SoundStyle fireperfect = new("CalamityMod/Sounds/Item/ShadowboltReflect"); + SoundEngine.PlaySound(fireperfect with { Volume = 0.6f, Pitch = 0f }, GunTipPosition); + GenericSparkle sparker = new GenericSparkle(GunTipPosition, Vector2.Zero, Color.DarkGoldenrod, Color.Gold, Main.rand.NextFloat(1.1f, 1.8f), 10, 2f, 2.68f); + GeneralParticleHandler.SpawnParticle(sparker); + } + #endregion + + //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage + if (Owner.Calamity().sharkGunDamageScaling == 0) + { + Owner.Calamity().sharkGunDamageScaling++; + } + //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); + + //After firing the rocket, kill the projectile to allow left click to be held down + Projectile.Kill(); } Time++; } diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index d842a7d304..f68e344160 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -57,6 +57,12 @@ namespace CalamityMod.Projectiles.Ranged dust.alpha = Main.rand.Next(90, 150); dust.color = Main.rand.NextBool() ? Color.Indigo : Color.DarkBlue; } + //Smoothly scale down the gun visuals before reloading + if (Time < 30) + { + if (Owner.Calamity().sharkGunDamageScaling > 0) + Owner.Calamity().sharkGunDamageScaling--; + } //Pause to give the effect of reloading if (Time == 30) { From 266adbc07cf2d846d448ffbadb05b96c10acf715 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sun, 7 Sep 2025 21:18:42 -0700 Subject: [PATCH 33/50] Seadragon updates --- Projectiles/Ranged/SeaDragonRocket.cs | 4 +- Projectiles/Ranged/SeadragonHoldout.cs | 75 +++++++++++++------------- Projectiles/Ranged/VoidragonHoldout.cs | 2 +- 3 files changed, 42 insertions(+), 39 deletions(-) diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index 333118e0ea..44324115d9 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -94,10 +94,10 @@ namespace CalamityMod.Projectiles.Ranged // Explode on kill if attacking, else just poof out if (attacking) { - SoundEngine.PlaySound(SoundID.NPCDeath19 with { Volume = 2.5f }, Projectile.position); + SoundEngine.PlaySound(SoundID.NPCDeath19, Projectile.position); SoundStyle hitSound2 = new("CalamityMod/Sounds/NPCHit/AnahitaHit", 3); SoundEngine.PlaySound(hitSound2 with { Volume = 1.1f }, Projectile.Center); - SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode.WithPitchOffset(0.8f) with { Volume = 1.1f }, Projectile.position); + SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode.WithPitchOffset(0.8f) with { Volume = 1.1f , MaxInstances = 2}, Projectile.position); for (int i = 0; i < 3; i++) { Particle Star = new CritSpark(Projectile.Center, Vector2.One.RotatedByRandom(100) * Main.rand.NextFloat(4, 5), Color.SkyBlue, Main.rand.NextBool() ? Color.HotPink : Color.SeaGreen, Main.rand.NextFloat(0.6f, 0.9f), 30, 0.4f, 3f); diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index bc3eba3cd0..423686d507 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -1,19 +1,13 @@ -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using ReLogic.Utilities; using Terraria; using Terraria.Audio; using Terraria.GameContent; using Terraria.ModLoader; using Terraria.ID; -using Steamworks; -using CalamityMod.Projectiles.Turret; -using Mono.Cecil; -using CalamityMod.Projectiles.Rogue; namespace CalamityMod.Projectiles.Ranged { @@ -108,39 +102,29 @@ namespace CalamityMod.Projectiles.Ranged } if (shotCounter == 50 && framesBetweenShots == 0) { - if (framesBetweenShots == 0) + //Kill the holdout to allow left click to be held down. + Projectile.Kill(); + for (int x = 0; x < Main.maxProjectiles; x++) { - SoundStyle hitSound = new("CalamityMod/Sounds/Item/SevensStrikerTriples"); - - //Need to update this effect. Will probably move to PreDraw - SoundEngine.PlaySound(hitSound with { Volume = 0.5f , Pitch = 0.8f }, Projectile.Center); - Particle Star = new CritSpark(GunTipPosition + (-Projectile.velocity.RotatedBy(0.1 * Projectile.direction) * 28), Vector2.Zero, Color.Goldenrod, Color.OrangeRed, 2f, 20, 0.2f, 3f); - GeneralParticleHandler.SpawnParticle(Star); - - //Kill the holdout to allow left click to be held down. - Projectile.Kill(); - for (int x = 0; x < Main.maxProjectiles; x++) + //Activate all fish to rush at the cursor and home in on the nearest enemy + Projectile projectile = Main.projectile[x]; + if (projectile.active && projectile.type == ModContent.ProjectileType() && projectile.ai[1] < 5) { - //Activate all fish to rush at the cursor and home in on the nearest enemy - Projectile projectile = Main.projectile[x]; - if (projectile.active && projectile.type == ModContent.ProjectileType() && projectile.ai[1] < 5) + projectile.ai[1] = 5; + projectile.velocity = Utils.DirectionTo(projectile.Center, Owner.Calamity().mouseWorld) * 12; + } + //If on GFB, also turns ANY projectile on screen into a fish + if (Main.zenithWorld && projectile.type != ModContent.ProjectileType()) + { + SoundStyle joke = new("CalamityMod/Sounds/Custom/GFB/FISH"); + SoundEngine.PlaySound(joke with { Volume = 0.35f, MaxInstances = -1 }, projectile.Center); + for (int i = 0; i < 2; i++) { - projectile.ai[1] = 5; - projectile.velocity = Utils.DirectionTo(projectile.Center, Owner.Calamity().mouseWorld) * 12; - } - //If on GFB, also turns ANY projectile on screen into a fish - if (Main.zenithWorld && projectile.type != ModContent.ProjectileType()) - { - SoundStyle joke = new("CalamityMod/Sounds/Custom/GFB/FISH"); - SoundEngine.PlaySound(joke with { Volume = 0.35f, MaxInstances = -1 }, projectile.Center); - for (int i = 0; i < 2; i++) - { - Projectile fishy = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), projectile.Center, (Vector2.One * 10).RotatedByRandom(100), ModContent.ProjectileType(), (int)(Projectile.damage + projectile.damage) * 3, Projectile.knockBack, Projectile.owner); - fishy.ai[2] = Main.rand.NextFloat(0.1f, 0.4f); - fishy.ai[1] = 5; - } - projectile.timeLeft = 1; + Projectile fishy = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), projectile.Center, (Vector2.One * 10).RotatedByRandom(100), ModContent.ProjectileType(), (int)(Projectile.damage + projectile.damage) * 3, Projectile.knockBack, Projectile.owner); + fishy.ai[2] = Main.rand.NextFloat(0.1f, 0.4f); + fishy.ai[1] = 5; } + projectile.timeLeft = 1; } } } @@ -151,12 +135,31 @@ namespace CalamityMod.Projectiles.Ranged if (Time < 2) return false; Texture2D texture = TextureAssets.Projectile[Type].Value; + Texture2D texture2 = ModContent.Request("CalamityMod/Particles/ThinSparkle").Value; Vector2 drawPosition = Projectile.Center - Main.screenPosition; float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); Vector2 rotationPoint = texture.Size() * 0.5f; SpriteEffects flipSprite = (Projectile.spriteDirection * Owner.gravDir == -1) ? SpriteEffects.FlipHorizontally : SpriteEffects.None; Main.EntitySpriteDraw(texture, drawPosition, null, Projectile.GetAlpha(lightColor), drawRotation, rotationPoint, Projectile.scale * Owner.gravDir, flipSprite); + //This bit ensures that the eye glint at the moment the fish are unleashed is snapped to the gun + //Due to the holdout only existing for 1 frame then getting killed, it has to be tied to the newly spawned holdout + //This runs a check to see if any fish are present, then triggers the eye glint and sound + //This prevents the eye gint from showing up when there are no fish present, such as when the player first spawns the holdout + //A little hacky, but it works + if (Owner.ownedProjectileCounts[ModContent.ProjectileType()] > 0) + { + if (Time == 3) + { + SoundStyle hitSound = new("CalamityMod/Sounds/Item/SevensStrikerTriples"); + SoundEngine.PlaySound(hitSound with { Volume = 0.5f, Pitch = 0.8f }, Projectile.Center); + } + if (Time > 2 && Time < 16) + { + for (int i = 0; i <= 2; i++) + Main.EntitySpriteDraw(texture2, GunTipPosition - Main.screenPosition + (-Projectile.velocity.RotatedBy(0.1 * Projectile.direction) * 30f), null, Color.Lerp(Color.Goldenrod, Color.OrangeRed, 0.5f) with { A = 1 }, Time * 0.25f, texture2.Size() * 0.5f, 1.1f, flipSprite); + } + } return false; } } diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index f68e344160..aa89082778 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -169,7 +169,7 @@ namespace CalamityMod.Projectiles.Ranged Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; #endregion - //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the rocket doing 0 damage + //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the laser doing 0 damage if (Owner.Calamity().sharkGunDamageScaling == 0) { Owner.Calamity().sharkGunDamageScaling++; From 446a0e4036e9eb6f2d8e29b04bb84411da5c4387 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Sat, 3 Jan 2026 07:02:33 -0500 Subject: [PATCH 34/50] minor vfx tweaks - AbyssalFire projectile starts closer to muzzle and has a thinner initial width - Seadragon rockets have a smol spawn animation --- Projectiles/Ranged/AbyssalFire.cs | 4 +- Projectiles/Ranged/SeaDragonRocket.cs | 70 +++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 2 deletions(-) diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index f9c4024a25..11a896ff63 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Ranged // Decide where to position the laserbeam. Vector2 circlePointDirection = Projectile.velocity.SafeNormalize(Vector2.UnitX * Owner.direction); - Projectile.Center = VoidragonHoldout.ModProjectile().GunTipPosition; + Projectile.Center = VoidragonHoldout.ModProjectile().GunTipPosition - ((Projectile.velocity * 55).RotatedBy(-0.02f * Projectile.direction)); LaserLength = MaxLaserLength; @@ -141,7 +141,7 @@ namespace CalamityMod.Projectiles.Ranged { float width; float maxBodyWidth = Projectile.scale * 75f; - float shrinkRatio = 0.1f; + float shrinkRatio = 0.275f; if (completionRatio < shrinkRatio) width = MathF.Sin(completionRatio / shrinkRatio * MathHelper.PiOver2) * maxBodyWidth + shrinkRatio; diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index 44324115d9..b19846ef10 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -6,11 +6,13 @@ using CalamityMod.Particles; using CalamityMod.Projectiles.Typeless; using CalamityMod.Tiles.Abyss; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using static tModPorter.ProgressUpdate; namespace CalamityMod.Projectiles.Ranged { public class SeaDragonRocket : ModProjectile, ILocalizedModType @@ -18,6 +20,8 @@ namespace CalamityMod.Projectiles.Ranged public new string LocalizationCategory => "Projectiles.Ranged"; public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true; public ref float time => ref Projectile.ai[0]; + private bool beginStretchAnim = false; + private float progress = -1; public bool attacking => Projectile.ai[1] == 5; // If the missile is launched at the enemy public ref float moveSpeed => ref Projectile.ai[2]; // Some speed variation applied to the missiles based on spawn order public override void SetDefaults() @@ -31,6 +35,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.DamageType = DamageClass.Ranged; Projectile.ignoreWater = true; Projectile.tileCollide = false; + Projectile.scale = 0.25f; } public override void AI() @@ -74,6 +79,13 @@ namespace CalamityMod.Projectiles.Ranged Particle Star = new CritSpark(Projectile.Center, -Projectile.velocity * Main.rand.NextFloat(0.3f, 0.5f), Color.SkyBlue, Main.rand.NextBool(3) ? Color.SeaGreen : Color.SkyBlue, Main.rand.NextFloat(0.4f, 0.7f), 30, 0.1f, 3f); GeneralParticleHandler.SpawnParticle(Star); } + + if (progress >= 0f && progress < 1f) // For spawn animation + progress += 0.04f; + + if (Projectile.scale < 1f) + Projectile.scale += 0.05f; + time++; } @@ -87,6 +99,7 @@ namespace CalamityMod.Projectiles.Ranged ring.scale = Main.rand.NextFloat(0.5f, 0.7f); ring.color = Color.CornflowerBlue; } + beginStretchAnim = true; } public override void OnKill(int timeLeft) @@ -127,5 +140,62 @@ namespace CalamityMod.Projectiles.Ranged } } public override bool? CanDamage() => (attacking ? null : false); // Can't hit if not attacking + + + public override bool PreDraw(ref Color lightColor) + { + if (beginStretchAnim) + { + progress = 0f; + beginStretchAnim = false; + } + + if (progress >= 0f) // Squash n' stretch on spawn + { + float stretchFactorX, stretchFactorY; + + if (progress < 0.5f) // Stretch + { + float completion = progress / 0.5f; + stretchFactorX = MathHelper.Lerp(1.6f, 0.7f, completion); + stretchFactorY = MathHelper.Lerp(0.7f, 1.6f, completion); + } + else // Squash + { + float completion = (progress - 0.5f) / 0.5f; + stretchFactorX = MathHelper.Lerp(0.7f, 1f, completion); + stretchFactorY = MathHelper.Lerp(1.6f, 1f, completion); + } + + if (progress >= 1f) + { + stretchFactorX = 1f; + stretchFactorY = 1f; + progress = -1f; + } + + Texture2D texture = ModContent.Request(Texture).Value; + Vector2 origin = new Vector2(texture.Width * 0.5f, texture.Height * 0.5f); + Vector2 finalScale = new Vector2(stretchFactorX, stretchFactorY) * Projectile.scale; + Vector2 finalPos = Projectile.Center - Main.screenPosition; + + Main.spriteBatch.Draw(texture, finalPos, null, lightColor, Projectile.rotation, origin, finalScale, SpriteEffects.None, 0f); + + return false; + } + + Texture2D mainTexture = ModContent.Request(Texture).Value; + SpriteEffects spriteEffects = SpriteEffects.None; + Vector2 drawOrigin = mainTexture.Size() / 2f; + float drawScale = Projectile.scale; + float drawRotation = Projectile.rotation; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + + Main.spriteBatch.Draw(mainTexture, drawPosition, null, lightColor * (1f - Projectile.alpha / 255f), drawRotation, drawOrigin, drawScale, spriteEffects, 0f); + + return false; + } + + } } From f275e0372138122e897a1159747f2c28b39a8a92 Mon Sep 17 00:00:00 2001 From: fryzahh Date: Fri, 13 Feb 2026 21:11:35 -0400 Subject: [PATCH 35/50] AbyssalFire shader updates * Made adjustments to AbyssalFire's shader and particle visuals * Removed all leftover instances of ActiveItem --- Effects/AbyssalFireShader.fx | 44 +++-- Effects/AbyssalFireShader.xnb | Bin 2744 -> 3552 bytes Effects/CalamityShaders.cs | 6 + .../Mods.CalamityMod.Projectiles.Ranged.hjson | 4 + Projectiles/Ranged/AbyssalFire.cs | 163 +++++++++++------- Projectiles/Ranged/ArcherfishHoldout.cs | 4 +- Projectiles/Ranged/MegalodonHoldout.cs | 4 +- Projectiles/Ranged/SeadragonHoldout.cs | 4 +- Projectiles/Ranged/VoidragonHoldout.cs | 4 +- 9 files changed, 146 insertions(+), 87 deletions(-) diff --git a/Effects/AbyssalFireShader.fx b/Effects/AbyssalFireShader.fx index 503fcdeb5e..6a4a7a5e01 100644 --- a/Effects/AbyssalFireShader.fx +++ b/Effects/AbyssalFireShader.fx @@ -1,8 +1,15 @@ -sampler noiseTexture1 : register(s1); +sampler noiseTexture : register(s1); sampler noiseTexture2 : register(s2); float time; -float4 secondaryColor; +float glowPower; +float overallColorStrength; +float2 noiseScale; +float2 edgeFadeoutThreshold; +float3 innerColor; +float3 outerColor; +float3 overallColor; +float3 tipColor; matrix uWorldViewProjection; struct VertexShaderInput @@ -42,30 +49,31 @@ float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0 // Account for texture distortion artifacts. coords.y = (coords.y - 0.5) / input.TextureCoordinates.z + 0.5; + + // Fade out at the horizontal and vertical ends of the streak. + float horizonatalDistanceFromCenter = distance(0.5, coords.y); + float opacity = smoothstep(0.5, 0.5 - edgeFadeoutThreshold, horizonatalDistanceFromCenter); + + // Calculate the main nosie color and distortion. + float4 noiseDistortion = tex2D(noiseTexture, coords * float2(4, 2) + float2(time * -0.72, time * 0.51)); + float4 noiseColor = tex2D(noiseTexture, coords * noiseScale + float2(time * -2.42 - noiseDistortion.r * 0.8, time * -1.33 + noiseDistortion.r * 0.8)); - // Read the fade map as a streak. - float bloomFadeout = pow(sin(coords.y * 3.141), 4); - float4 noiseColor = tex2D(noiseTexture1, float2(frac(coords.x * 5 - time * 3.5), coords.y - time * 1.5)); - float opacity = (0.5 + noiseColor.g) * bloomFadeout; + // Calculate how much a pixel should glow from the center outwards. + float glow = pow(0.1 / horizonatalDistanceFromCenter, glowPower); - // Calculate secondary noise colors. - float noiseFade2 = tex2D(noiseTexture2, float2(frac(coords.x * 2.5 - time * 2.75), coords.y)).r; - float4 noiseColor2 = InverseLerp(0.4, 0.5, noiseFade2 * bloomFadeout) * secondaryColor; + // Render as white near the tip of the flame jet, then ease into the inner and outer colors of the jet. + float3 flameBodyColor = lerp(tipColor, lerp(outerColor, innerColor, opacity), InverseLerp(0, 0.092, coords.x)); + float3 finalFlameColor = lerp(flameBodyColor, overallColor, overallColorStrength); - // Fade out at the ends of the streak. - if (coords.x < 0.018) - opacity *= pow(coords.x / 0.018, 6); - if (coords.x > 0.95) - opacity *= pow(1 - (coords.x - 0.95) / 0.05, 6); - - return color * 1.4 * opacity + noiseColor2 * opacity; + float4 returnColor = (color * float4(finalFlameColor, 1) + noiseColor * glow) * opacity; + return returnColor; } technique Technique1 { pass LaserPass { - VertexShader = compile vs_2_0 VertexShaderFunction(); - PixelShader = compile ps_2_0 PixelShaderFunction(); + VertexShader = compile vs_3_0 VertexShaderFunction(); + PixelShader = compile ps_3_0 PixelShaderFunction(); } } diff --git a/Effects/AbyssalFireShader.xnb b/Effects/AbyssalFireShader.xnb index ce29c6308db94036f1145af04a1266aea078a150..9ebdc9a6d26b6a24751f91e0b97ae122b62a76f8 100644 GIT binary patch literal 3552 zcmc&$O>7fK6rS}O?EH{Go2nd8>m#jFD}gjK4xc^@`YTvH*s3p<$_fj8A$f=*PBRHi>F4yJPdUFR$FaUvwK9{pWjSvZ=Q*J6Ukmlu7~8ebZ=qC@wu*YA-`&5^4?dsj zrzRE*zMVg=aX3$;YTjE+N+253HtRN&N?|F8)bGbG*FyccuUP)AFt^n+mR+1bU69L@ zw)HMf63zz4Woo#$xB6ii-P_>YOX+M`+LPIG89H-5BXjvu;k~LnAYSf-%`v$@Id6`; z7ez}Slq1?eJ%_RqvOk7?HDup_{!_?ahrTe@Fr(sFdzOwA*wHkm-3%Pm0vcp~Jj8 z-eDs!HU)P{;tVjJ=?JpP=I>DMpfDd15mQ(rz#gMEff!<^A1rL`{oeI-FPAaT@6K~@Vsn@kP(6*J(`L7!)vWOash*e5bfS$vUqWXw=*yV} zZJ~Q<)8T7fQms?9R6cv~Y@cX76^Z>*uO%kZ)9J)?p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D*@Hy^ z6hEI7%kx5FEcr>X+^!_XaXt?~DNq=SyoaM_Nh*N(XYkxte}r#}1oN~Hz-_!H z%54#Q{87WdC9S^@la#ow=hP}Q~Mv{$-XpRT;p7TI|Ox2&OaIx=QNME2=a+QCMpyh!xdA!8KT%8FoxD>Y`M$<| zng9$IKFsld&?is%j)=~zAD?UdF93e}i~~cgSE@0r*37s~9KqN-Ttidoz%kM-rDM-V adQ$0J8_W^Qp1Oxv{?&s#^gH4jMENfVcCv5) diff --git a/Effects/CalamityShaders.cs b/Effects/CalamityShaders.cs index 5dd18a0419..ea510e21cc 100644 --- a/Effects/CalamityShaders.cs +++ b/Effects/CalamityShaders.cs @@ -252,6 +252,9 @@ namespace CalamityMod.Effects // The distorted circular effect seen emanating from the distortion rift during DoG's fight. internal static Asset DoGRiftAuraShader; + + // The shader effect used for Voidragon's Abyssal Fire laser projectile. + internal static Asset AbyssalFireShader; #endregion #region Big E's Shaders @@ -503,6 +506,9 @@ namespace CalamityMod.Effects DoGRiftAuraShader = LoadShader("DoGRiftAuraShader"); RegisterMiscShader(DoGRiftAuraShader, "DoGRiftAuraPass", "DoGRiftAura"); + + AbyssalFireShader = LoadShader("AbyssalFireShader"); + RegisterMiscShader(AbyssalFireShader, "LaserPass", "AbyssalFire"); #endregion #region Loading Big E's Shaders diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson index 7d68549da7..7c48daa51c 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson @@ -268,3 +268,7 @@ WaterSpout.DisplayName: Spout WildfireBloomFire.DisplayName: Wildfire Fire WildfireBloomFlare.DisplayName: Wildfire Flare WulfrumScrapBullet.DisplayName: High Speed Scrap +AbyssalFire.DisplayName: Abyssal Fire +BlahajBlast.DisplayName: Blahaj Blast +MegalodonRocket.DisplayName: Megalodon Rocket +VoidBlast.DisplayName: Void Blast diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index 11a896ff63..3d92ee4af8 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -6,10 +6,13 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.DataStructures; using CalamityMod.Dusts; using CalamityMod.Effects; +using CalamityMod.Enums; using CalamityMod.Graphics.Metaballs; using CalamityMod.Graphics.Primitives; using CalamityMod.Packets.Entities; using CalamityMod.Particles; +using CalamityMod.Utilities.Daybreak; +using CalamityMod.Utilities.Daybreak.Buffers; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -22,22 +25,30 @@ using Terraria.WorldBuilding; namespace CalamityMod.Projectiles.Ranged { - public class AbyssalFire : ModProjectile, ILocalizedModType + public class AbyssalFire : ModProjectile, ILocalizedModType, IPixelatedPrimitiveRenderer { public new string LocalizationCategory => "Projectiles.Ranged"; - public Vector2[] ControlPoints = new Vector2[32]; + public Vector2[] ControlPoints; + + public static int MaxLaserControlPoints => 32; + + public static int MaxLaserLength => 3330; + + public static int MaxLaserWidth => 90; + public Player Owner => Main.player[Projectile.owner]; + public Projectile VoidragonHoldout => Main.projectile[(int)Projectile.ai[0]]; + public ref float LaserLength => ref Projectile.ai[1]; public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; - public const float MaxLaserLength = 3330f; public override void SetDefaults() { - Projectile.width = Projectile.height = 75; + Projectile.width = Projectile.height = MaxLaserWidth; Projectile.friendly = true; Projectile.DamageType = DamageClass.Ranged; Projectile.penetrate = -1; @@ -45,36 +56,34 @@ namespace CalamityMod.Projectiles.Ranged Projectile.localNPCHitCooldown = 2; Projectile.tileCollide = false; Projectile.ignoreWater = true; - Projectile.hide = true; + LaserLength = 0.05f; } public override void AI() { // If the owner is no longer able to cast the beam, kill it. - if (!Owner.channel || Owner.noItems || Owner.CCed || VoidragonHoldout is null) + if (Owner.CantUseHoldout() || VoidragonHoldout is null) { Projectile.Kill(); return; } - // Set the control points for the primitive drawing. - for (int i = 0; i < ControlPoints.Length; i++) - ControlPoints[i] = Projectile.Center + Projectile.velocity * i / (ControlPoints.Length - 1f) * LaserLength; - - // Grow and shrink depending on how long left the laser has to remain active. - int beamTimer = VoidragonHoldout.ModProjectile().beamTimer; - if (beamTimer <= 500 && beamTimer >= 425) - Projectile.scale += 0.1f; - else if (beamTimer <= 25 && beamTimer >= 0 && Projectile.scale > 0f) - Projectile.scale -= 0.1f; - Projectile.scale = MathHelper.Clamp(Projectile.scale, 0f, 2f); - // Decide where to position the laserbeam. Vector2 circlePointDirection = Projectile.velocity.SafeNormalize(Vector2.UnitX * Owner.direction); - Projectile.Center = VoidragonHoldout.ModProjectile().GunTipPosition - ((Projectile.velocity * 55).RotatedBy(-0.02f * Projectile.direction)); + Projectile.Center = VoidragonHoldout.ModProjectile().GunTipPosition - ((Projectile.velocity * 12f).RotatedBy(-0.02f * Projectile.direction)); - LaserLength = MaxLaserLength; + int beamTimer = VoidragonHoldout.ModProjectile().beamTimer; + float beamWidthInterpolant = Utils.GetLerpValue(500, 475, beamTimer, true) * Utils.GetLerpValue(0, 25, beamTimer, true); + // Set the control points for the primitive drawing. + ControlPoints ??= new Vector2[MaxLaserControlPoints]; + for (int i = 0; i < MaxLaserControlPoints; i++) + ControlPoints[i] = Projectile.Center + Projectile.velocity * i / (ControlPoints.Length - 1f) * MaxLaserLength; + + // Grow and shrink depending on how long left the laser has to remain active. + Projectile.scale = MathHelper.Lerp(0f, 1f, CalamityUtils.ExpOutEasing(beamWidthInterpolant, 2)); + LaserLength = MathHelper.Lerp(LaserLength, 1f, 0.032f); + // Update aim. UpdateAim(); @@ -82,31 +91,34 @@ namespace CalamityMod.Projectiles.Ranged if (Projectile.scale >= 0.25f) { BezierCurve curve = new(ControlPoints); + float tipRatio = 0.042f; for (int i = 0; i < 10; i++) { - Vector2 fireSpawnPosition = curve.Evaluate(Main.rand.NextFloat(0.05f, 1f)); - Vector2 fireVelocity = Projectile.velocity + Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(10f, 15f); + Vector2 tipSpawnPosition = curve.Evaluate(Main.rand.NextFloat(0f, tipRatio)); + Vector2 bodySpawnPosition = curve.Evaluate(Main.rand.NextFloat(tipRatio, 1f)); + Vector2 fireVelocity = Owner.SafeDirectionTo(Main.MouseWorld).RotatedByRandom(MathHelper.ToRadians(20f)) * Main.rand.NextFloat(25f, 30f); + + Color fireColorBackground = Color.Lerp(Color.DarkViolet, Color.Black, 0.25f); - Color fireColor = Color.Lerp(Color.DarkOrchid, Color.DarkMagenta, Main.rand.NextFloat()); int fireLifetime = Main.rand.Next(45, 60); - float fireScale = Main.rand.NextFloat(0.45f, 1f) * Projectile.scale; + float fireScale = Main.rand.NextFloat(1.75f, 2.25f) * Projectile.scale; float fireOpacity = Main.rand.NextFloat(0.65f, 0.95f); - HeavySmokeParticle abyssalFlames = new(fireSpawnPosition, fireVelocity, fireColor, fireLifetime, fireScale, fireOpacity, 0.03f, true); - GeneralParticleHandler.SpawnParticle(abyssalFlames); + HeavySmokeParticle abyssalFlamesBodyBackground = new(bodySpawnPosition, fireVelocity, fireColorBackground, fireLifetime, fireScale, 1f, Main.rand.NextFloat(0.02f, 0.1f) * Main.rand.NextBool().ToDirectionInt(), false); + GeneralParticleHandler.SpawnParticle(abyssalFlamesBodyBackground, true, GeneralDrawLayer.BeforeProjectiles); + + HeavySmokeParticle abyssalFlamesBodyForeground = new(bodySpawnPosition, fireVelocity, Main.rand.NextBool(4) ? Color.White : Color.Purple, fireLifetime, fireScale * 0.6f, 0.8f, Main.rand.NextFloat(0.02f, 0.1f) * Main.rand.NextBool().ToDirectionInt(), true); + GeneralParticleHandler.SpawnParticle(abyssalFlamesBodyForeground, true, GeneralDrawLayer.AfterProjectiles); + + HeavySmokeParticle abyssFlamesTip = new(tipSpawnPosition, fireVelocity, Color.White, fireLifetime, fireScale * 0.52f, 0.3f, Main.rand.NextFloat(0.02f, 0.1f) * Main.rand.NextBool().ToDirectionInt(), true); + GeneralParticleHandler.SpawnParticle(abyssFlamesTip, true, GeneralDrawLayer.AfterProjectiles); } - for (int i = 0; i < 6; i++) + for (int i = 0; i < 3; i++) { - Vector2 sparkSpawnPosition = curve.Evaluate(Main.rand.NextFloat(0.05f, 1f)); - Vector2 sparkVelocity = Projectile.velocity.RotatedBy(MathHelper.PiOver2 * Main.rand.NextBool().ToDirectionInt()) * Main.rand.NextFloat(9f, 18f) * Main.rand.NextVector2Circular(1f, 1f); - - Dust dust = Dust.NewDustDirect(sparkSpawnPosition, 1, 1, ModContent.DustType()); - dust.noGravity = true; - dust.velocity = sparkVelocity; - dust.scale = Main.rand.NextFloat(0.8f, 1.2f) * Projectile.scale; - dust.color = Main.rand.NextBool() ? Color.MediumOrchid : Color.BlueViolet; - dust.noLightEmittence = true; + Vector2 fireVelocity = Owner.SafeDirectionTo(Main.MouseWorld).RotatedByRandom(MathHelper.ToRadians(20f)) * Main.rand.NextFloat(15f, 20f); + HeavySmokeParticle whiteFlames = new(Projectile.Center - Projectile.velocity * 8f, fireVelocity, Color.White, Main.rand.Next(15, 20), 0.64f, 0.7f, Main.rand.NextFloat(0.02f, 0.1f) * Main.rand.NextBool().ToDirectionInt(), true); + GeneralParticleHandler.SpawnParticle(whiteFlames, true, GeneralDrawLayer.AfterDusts); } } @@ -116,7 +128,7 @@ namespace CalamityMod.Projectiles.Ranged // Make the beam cast light along its length. The brightness of the light is reliant on the scale of the beam. DelegateMethods.v3_1 = Color.DarkViolet.ToVector3() * Projectile.scale * 0.4f; - Utils.PlotTileLine(Projectile.Center, Projectile.Center + Projectile.velocity * LaserLength, Projectile.width * Projectile.scale, DelegateMethods.CastLight); + Utils.PlotTileLine(Projectile.Center, Projectile.Center + Projectile.velocity * MaxLaserLength, Projectile.width * Projectile.scale, DelegateMethods.CastLight); } public void UpdateAim() @@ -137,53 +149,82 @@ namespace CalamityMod.Projectiles.Ranged Projectile.velocity = newAimDirection; } - private float PrimitiveWidthFunction(float completionRatio) + private float PrimitiveWidthFunction(float completionRatio, Vector2 vertexPos) { float width; - float maxBodyWidth = Projectile.scale * 75f; - float shrinkRatio = 0.275f; + float maxBodyWidth = Projectile.scale * MaxLaserWidth; + float shrinkRatio = 0.018f; - if (completionRatio < shrinkRatio) - width = MathF.Sin(completionRatio / shrinkRatio * MathHelper.PiOver2) * maxBodyWidth + shrinkRatio; - else - width = Utils.Remap(completionRatio, shrinkRatio, 1f, maxBodyWidth, 0f); + //if (completionRatio < shrinkRatio) + // width = MathF.Sin(completionRatio / shrinkRatio * MathHelper.PiOver2) * maxBodyWidth + shrinkRatio; + //else + // width = Utils.Remap(completionRatio, shrinkRatio, 1f, maxBodyWidth, 0f); - return width; + return maxBodyWidth * Utils.GetLerpValue(0f, 0.05f, completionRatio, true) * Utils.GetLerpValue(LaserLength, LaserLength - 0.1f, completionRatio, true); } - private Color PrimitiveColorFunction(float completionRatio) + private Color PrimitiveColorFunction(float completionRatio, Vector2 vertexPos) { - Color vibrantColor = Color.Lerp(Color.Indigo, Color.MediumPurple, (float)Math.Cos(Main.GlobalTimeWrappedHourly * 0.67f - completionRatio / LaserLength * 29f) * 0.5f + 0.5f); - float opacity = Projectile.Opacity * Utils.GetLerpValue(0.97f, 0.9f, completionRatio, true) * - Utils.GetLerpValue(0f, MathHelper.Clamp(15f / LaserLength, 0f, 0.5f), completionRatio, true) * - MathF.Pow(Utils.GetLerpValue(60f, 270f, LaserLength, true), 3f); - return Color.Lerp(vibrantColor, Color.Black, 0.5f) * opacity * 2f; + return Color.White * Projectile.Opacity; } public override bool PreDraw(ref Color lightColor) { - Asset mainStreakTexture = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons2"); - Asset secondaryStreakTexture = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons2"); + Asset mainStreakTexture = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/HarshNoise"); + int beamTimer = VoidragonHoldout.ModProjectile().beamTimer; + float beamWidthInterpolant = Utils.GetLerpValue(500, 460, beamTimer, true); - MiscShaderData shader = GameShaders.Misc["CalamityMod:AbyssalFire"]; - shader.Shader.Parameters["time"].SetValue(Main.GlobalTimeWrappedHourly); - shader.Shader.Parameters["secondaryColor"].SetValue(Color.Lerp(Color.MediumPurple, Color.White, 0.65f).ToVector4()); - shader.SetShaderTexture(mainStreakTexture); - Main.instance.GraphicsDevice.Textures[2] = secondaryStreakTexture.Value; + Main.spriteBatch.End(out var snapshot); + + var device = Main.instance.GraphicsDevice; + using var lease = RenderTargetPool.Shared.Rent( + device, + Main.screenWidth / 2, + Main.screenHeight / 2, + RenderTargetDescriptor.Default + ); + + using (lease.Scope(clearColor: Color.Transparent)) + { + MiscShaderData shader = GameShaders.Misc["CalamityMod:AbyssalFire"]; + shader.Shader.Parameters["time"].SetValue(Main.GlobalTimeWrappedHourly); + shader.Shader.Parameters["glowPower"].SetValue(0.8f); + shader.Shader.Parameters["overallColorStrength"].SetValue(1f - beamWidthInterpolant); + shader.Shader.Parameters["edgeFadeoutThreshold"].SetValue(0.46f); + shader.Shader.Parameters["noiseScale"].SetValue(new Vector2(4f, 0.5f)); + shader.Shader.Parameters["innerColor"].SetValue(Color.DarkViolet.ToVector3()); + shader.Shader.Parameters["outerColor"].SetValue(Color.Black.ToVector3()); + shader.Shader.Parameters["overallColor"].SetValue(Color.White.ToVector3()); + shader.Shader.Parameters["tipColor"].SetValue(Color.White.ToVector3()); + + device.Textures[1] = mainStreakTexture.Value; + + PrimitiveRenderer.RenderTrail(ControlPoints, new(PrimitiveWidthFunction, PrimitiveColorFunction, shader: shader, useUnscaledMatrices: true, capStyle: PrimitiveCapStyle.Flat), ControlPoints.Length); + } + + Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + Main.spriteBatch.Draw(lease.Target, Vector2.Zero, null, Color.White, 0f, Vector2.Zero, 2f, SpriteEffects.None, 0f); + Main.spriteBatch.End(); + + Main.spriteBatch.Begin(snapshot); - PrimitiveRenderer.RenderTrail(ControlPoints, new(PrimitiveWidthFunction, PrimitiveColorFunction, shader: shader), ControlPoints.Length + 12); return false; } + public void RenderPixelatedPrimitives(SpriteBatch spriteBatch, GeneralDrawLayer layerToRenderTo) + { + + } + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) { - return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Projectile.Center, Projectile.Center + Projectile.velocity * LaserLength); + return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Projectile.Center, Projectile.Center + Projectile.velocity * MaxLaserLength); } public override void DrawBehind(int index, List behindNPCsAndTiles, List behindNPCs, List behindProjectiles, List overPlayers, List overWiresUI) { - overWiresUI.Add(index); + } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { diff --git a/Projectiles/Ranged/ArcherfishHoldout.cs b/Projectiles/Ranged/ArcherfishHoldout.cs index 3496ec50b0..d239529cfa 100644 --- a/Projectiles/Ranged/ArcherfishHoldout.cs +++ b/Projectiles/Ranged/ArcherfishHoldout.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Ranged public override void KillHoldoutLogic() { //If the player is dead, kill the holdout. - if (Owner.CantUseHoldout() || !PostVolley && HeldItem.type != Owner.ActiveItem().type) + if (Owner.CantUseHoldout() || !PostVolley && HeldItem.type != Owner.HeldItem.type) Projectile.Kill(); } @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Ranged framesBetweenShots = 6; OffsetLengthFromArm -= 3f; //Here we detect which ammo the bullets will use - Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); shotCounter++; //Frame time is much longer due to Archerfish working differently, and handling both the shot and the "reload" on the same step diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs index 934c8aa921..3303d73d71 100644 --- a/Projectiles/Ranged/MegalodonHoldout.cs +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Ranged public override void KillHoldoutLogic() { //If the player is dead, kill the holdout. - if (Owner.CantUseHoldout() || HeldItem.type != Owner.ActiveItem().type) + if (Owner.CantUseHoldout() || HeldItem.type != AssociatedItemID) Projectile.Kill(); } @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Ranged framesBetweenShots = 4; OffsetLengthFromArm -= 3f; //Here we detect which ammo the bullets will use - Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); //Alternate between shooting bullets and water streams. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier if (!swapType) { diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index 423686d507..12b08670f3 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Ranged public override void KillHoldoutLogic() { //If the player is dead, kill the holdout. - if (Owner.CantUseHoldout() || HeldItem.type != Owner.ActiveItem().type) + if (Owner.CantUseHoldout() || HeldItem.type != AssociatedItemID) Projectile.Kill(); } @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Ranged framesBetweenShots = 3; OffsetLengthFromArm -= 2f; //Here we detect which ammo the bullets will use - Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); //Alternate between shooting bullets and water streams. Despite not having damage scaling, the fish gain movement speed based on the scaling, so we still need a Global Projectile if (!swapType) { diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index aa89082778..1e6b57385d 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Ranged public override void KillHoldoutLogic() { //If the player is dead, kill the holdout. - if (Owner.CantUseHoldout() || HeldItem.type != Owner.ActiveItem().type) + if (Owner.CantUseHoldout() || HeldItem.type != AssociatedItemID) Projectile.Kill(); } @@ -122,7 +122,7 @@ namespace CalamityMod.Projectiles.Ranged framesBetweenShots = 3; OffsetLengthFromArm -= 2.5f; //Here we detect which ammo the bullets will use - Owner.PickAmmo(Owner.ActiveItem(), out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); //Alternate between shooting bullets and void blasts. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier if (!swapType) { From db9f5bcc371d165c8725881db78d437f481459a3 Mon Sep 17 00:00:00 2001 From: fryzahh Date: Fri, 13 Feb 2026 23:16:08 -0400 Subject: [PATCH 36/50] AbyssalFire drawing fixes * Added a null check at the start of AbyssalFire.PreDraw to ensure ControlPoints can be filled before the flame jet is drawn. * Removed unnecessary primitive pixelation code. --- Projectiles/Ranged/AbyssalFire.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index 3d92ee4af8..095cdebee7 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -25,7 +25,7 @@ using Terraria.WorldBuilding; namespace CalamityMod.Projectiles.Ranged { - public class AbyssalFire : ModProjectile, ILocalizedModType, IPixelatedPrimitiveRenderer + public class AbyssalFire : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; @@ -175,6 +175,9 @@ namespace CalamityMod.Projectiles.Ranged int beamTimer = VoidragonHoldout.ModProjectile().beamTimer; float beamWidthInterpolant = Utils.GetLerpValue(500, 460, beamTimer, true); + if (ControlPoints is null) + return false; + Main.spriteBatch.End(out var snapshot); var device = Main.instance.GraphicsDevice; @@ -212,20 +215,11 @@ namespace CalamityMod.Projectiles.Ranged return false; } - public void RenderPixelatedPrimitives(SpriteBatch spriteBatch, GeneralDrawLayer layerToRenderTo) - { - - } - public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) { return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Projectile.Center, Projectile.Center + Projectile.velocity * MaxLaserLength); } - public override void DrawBehind(int index, List behindNPCsAndTiles, List behindNPCs, List behindProjectiles, List overPlayers, List overWiresUI) - { - - } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { Player Owner = Main.player[Projectile.owner]; From 6d8d8129fbd683a0d3ebfe166ee42586a3773011 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sun, 15 Feb 2026 13:06:55 -0800 Subject: [PATCH 37/50] killer archerfish (rework) with HAMMERS --- Gores/SeadragonCasing.png | Bin 0 -> 228 bytes Gores/SeadragonMag.png | Bin 0 -> 312 bytes Items/Weapons/Ranged/Archerfish.cs | 51 +++++++++++++----- Items/Weapons/Ranged/Megalodon.cs | 7 ++- Items/Weapons/Ranged/Megalodon.png | Bin 1727 -> 1376 bytes Items/Weapons/Ranged/Seadragon.cs | 5 +- Items/Weapons/Ranged/Voidragon.cs | 5 +- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 21 +++++--- Projectiles/Magic/RancorFog.cs | 2 +- Projectiles/Ranged/AbyssalFire.cs | 2 + Projectiles/Ranged/ArcherfishShot.cs | 21 ++++---- Projectiles/Ranged/MegalodonHoldout.cs | 2 +- Projectiles/Ranged/SeadragonHoldout.cs | 10 +++- Projectiles/Ranged/VoidBlast.cs | 5 ++ Projectiles/Ranged/VoidragonHoldout.cs | 2 +- Systems/Collections/CalamityProjectileSets.cs | 3 +- 16 files changed, 93 insertions(+), 43 deletions(-) create mode 100644 Gores/SeadragonCasing.png create mode 100644 Gores/SeadragonMag.png diff --git a/Gores/SeadragonCasing.png b/Gores/SeadragonCasing.png new file mode 100644 index 0000000000000000000000000000000000000000..7faaa79ce6f7abba6e6ad371450f5058d9a672a8 GIT binary patch literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^96-#&!3HGb=lz)rq!^2X+?^QKos)S9_j$TFhG+yQr!+LpcyQ^zff+M1^WjNb@AmKjfzOGi8w}h&=|8rpumM3E z@AC*r2_SfLf6uS;4pTV$@9#-U00N7c%Fae0aFo#6_~}y|8(Wf3gSJQV&l3}leVTai z;o)Gmc7A_D(FaTgtoQHsNbcJ$X}qHIg8>jHXdPgcsBB3Ia1xLeFkxhv^hj<`yGgG< P&}9ssu6{1-oD!MPx#1ZP1_K>z@;j|==^1poj5;z>k7R5(wilCcW`Q5?rVCzeYoVYuACa2f2fDkWJ= zHu(b-(+&O;lfvL1knBiI76URIDJAO}^e*1H$oow1ec$``>HT^d61iN>m9tl-)2;>( zk`I0*EC+&SzYV}>5qZn!>#>W9QIiAlMx)RGz})NrI9_J}j3zx$F$NZOD~WC;<=7*z z_zhptOr$UqDekKi_tnYE_h*Ow+41(i;;(p9jmFb1K(RG|57QJj<)7m-mhx2qj93 "Items.Weapons.Ranged"; + + public static int AmmoSavedPercent = 33; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); + public override void SetDefaults() { Item.width = 78; Item.height = 36; Item.damage = 16; Item.DamageType = DamageClass.Ranged; - Item.useTime = 6; - Item.useAnimation = 6; - Item.channel = true; + Item.useTime = 11; + Item.useAnimation = 11; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; - Item.knockBack = 2.5f; + Item.knockBack = 2f; Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; - Item.UseSound = null; + Item.UseSound = SoundID.Item85; Item.autoReuse = true; - Item.noUseGraphic = true; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 2f; + Item.shoot = ModContent.ProjectileType(); + Item.shootSpeed = 11f; Item.useAmmo = AmmoID.Bullet; } - public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; - public override bool RangedPrefix() => true; //Can't scale with attack speed, but should still be able to recieve Unreal - public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; + + public override Vector2? HoldoutOffset() => new Vector2(-10, -5); + public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - Projectile holdout = Projectile.NewProjectileDirect(source, position, velocity, Item.shoot, damage, knockback, player.whoAmI); - holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero); + // Reposition to the gun's tip + Vector2 newPos = position + new Vector2(60f, player.direction * (Math.Abs(velocity.SafeNormalize(Vector2.Zero).X) < 0.02f ? -2f : -8f)).RotatedBy(velocity.ToRotation()); + + // Fires a spread of harmless bubbles + for (int i = 0; i < 4; i++) + { + Gore bubble = Gore.NewGorePerfect(source, newPos, velocity.RotatedByRandom(MathHelper.ToRadians(30f)) * 0.5f, 411); + bubble.timeLeft = 6 + Main.rand.Next(4); + bubble.scale = Main.rand.NextFloat(0.6f, 0.8f); + bubble.type = Main.rand.NextBool(3) ? 412 : 411; + } + + // Replaces standard bullets with water jets. + if (type == ProjectileID.Bullet) + Projectile.NewProjectile(source, newPos, velocity, Item.shoot, damage, knockback, player.whoAmI); + else + Projectile.NewProjectile(source, newPos, velocity, type, damage, knockback, player.whoAmI); + + // Always fires a close range water blast. + int waterRingDamage = (int)(damage * 0.5f); + float boostedKB = knockback + 5f; + Projectile.NewProjectile(source, newPos, velocity * 0.5f, ModContent.ProjectileType(), waterRingDamage, boostedKB, player.whoAmI); + return false; } + public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.Next(100) >= AmmoSavedPercent; } } diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index caaf31a6e4..e4fe7564e0 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -8,6 +8,7 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Localization; namespace CalamityMod.Items.Weapons.Ranged { @@ -15,11 +16,13 @@ namespace CalamityMod.Items.Weapons.Ranged { public new string LocalizationCategory => "Items.Weapons.Ranged"; public int sharkGunDamageScaling = 0; + public static int AmmoSavedPercent = 50; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); public override void SetDefaults() { Item.width = 102; - Item.height = 42; + Item.height = 43; Item.damage = 58; Item.DamageType = DamageClass.Ranged; Item.useTime = 4; @@ -39,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Ranged } public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; public override bool RangedPrefix() => true; //Can't scale with attack speed, but should still be able to recieve Unreal - public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; + public override bool CanConsumeAmmo(Item ammo, Player player) => player.ownedProjectileCounts[Item.shoot] > 0 && Main.rand.Next(100) >= AmmoSavedPercent; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { Projectile holdout = Projectile.NewProjectileDirect(source, position, velocity, Item.shoot, damage, knockback, player.whoAmI); diff --git a/Items/Weapons/Ranged/Megalodon.png b/Items/Weapons/Ranged/Megalodon.png index f90b9be703bacfcdd5027867dd61a8b457439f42..6d3e45d1aa3ea44130ec5b1d8b67162557b69da6 100644 GIT binary patch delta 1343 zcmV-F1;F~h4d4op7YZu~1^@s6iW&XTks%*{1qw+-K~#8N?V4Xqm1P{qKh%|xrY4Bi zIVKQPY9#azEr<+_W}92(!mXQHTbqk@lWmnNw(6owo3okgqAn<^%`G=mGSout4@??V z5MV+mf&bEotsA;{`m*i))BxUI#z5`wiuaSK?-;?wYa2Ixe=>{tiIqoLMl5DOvG_01Wk>uwoY-7p^%% zIZC-n{Zgu{yT}+%$#6UIl}k;3hrQvYoe=0N65-~Mys}K|xLaKbb@ZbCofZK899a&) z?5w%gaaCir)}TYbrx-2Aw;-qY0!0YikF zJ6zmc5{7b2W#RRI5U8$Xf^v>>s{U^J4TGMi+@o0N^&(?DWt=g>ofapHj9I(Vz9%mh z#peL<u11ktyP? zdme-|+;dMVH<2-(lJ?yvV}z=vWOLMXB{IfS{sz}{4b1)steyY>002ovPDHLkV1jyp Bs15)C delta 1697 zcmV;S244B#3cn4I7YZr}1^@s6K}9Zgks%*{22V*uK~#8N?VDR{6lEBOyU@}-l^$#t zDD<$jwo(mph)Sqd(GY|{LSjNF(W^#c0&+#T&=@?0D3=;Tf)+1KsPT#f2oh8fg$P(^ z6AQLd7CH2=tu3W&yWMTo_WkBV{+XY-z`Q_4Z6?up}MV7&_aD z`J>_-$1yhLzB%TmSYo0n9Dz2sMc|kn-z~?SeDy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ACi7lC9L7{1x*-M_@k*%#hzAhnp{B{-8U<3db=v zW!xQ8I#24CXk45?3UcJ#cjIO0C9$sYxJ8M_BM!65y2!)o6yi9>mLw$n560-46HE#{ r4*&oF4rN$LW=%~1DgXcg2mk;800000(o>TR00000NkvXXu0mjf@;yb< diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index 1a3657a7a2..c1b5fdcf3d 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -8,6 +8,7 @@ using Terraria; using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged @@ -15,6 +16,8 @@ namespace CalamityMod.Items.Weapons.Ranged public class Seadragon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public static int AmmoSavedPercent = 66; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); public override void SetDefaults() { @@ -41,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override Vector2? HoldoutOffset() => new Vector2(-10, 0); public override bool RangedPrefix() => true; //Can't scale with attack speed, but should still be able to recieve Unreal public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; - public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; + public override bool CanConsumeAmmo(Item ammo, Player player) => player.ownedProjectileCounts[Item.shoot] > 0 && Main.rand.Next(100) >= AmmoSavedPercent; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { Projectile holdout = Projectile.NewProjectileDirect(source, position, velocity, Item.shoot, damage, knockback, player.whoAmI); diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index 935173c4b5..5a4f7bd84d 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -6,6 +6,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged @@ -15,6 +16,8 @@ namespace CalamityMod.Items.Weapons.Ranged { public new string LocalizationCategory => "Items.Weapons.Ranged"; public int sharkGunDamageScaling = 0; + public static int AmmoSavedPercent = 66; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); public override void SetStaticDefaults() { @@ -47,7 +50,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; public override bool RangedPrefix() => true; //Can't scale with attack speed, but should still be able to recieve Unreal - public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; + public override bool CanConsumeAmmo(Item ammo, Player player) => player.ownedProjectileCounts[Item.shoot] > 0 && Main.rand.Next(100) >= AmmoSavedPercent; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { Projectile holdout = Projectile.NewProjectileDirect(source, position, velocity, Item.shoot, damage, knockback, player.whoAmI); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index ee926c25be..a07c595b6d 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -712,8 +712,10 @@ Megalodon: { DisplayName: Megalodon Tooltip: ''' - Rapidly fires alternating bullets and pressurized water jets - Water jets consume no ammo + Loads a 30 round magazine of bullets and pressurized water streams that are rapidly unleashed + After firing, the gun unleashes a powerful homing rocket before reloading + Rocket damage is based on how many shots hit + {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -1058,9 +1060,10 @@ Seadragon: { DisplayName: Seadragon Tooltip: ''' - Unleashes a deluge of alternating bullets and pressurized water jets - Additionally fires rockets and emits devastating muzzle blasts - Water jets consume no ammo + Loads a 50 round deluge of alternating bullets and pressurized water jets + Water jets summon small fish that swim around you + Once your mag runs empty, all fish rush towards the cursor before reloading + {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -1474,9 +1477,11 @@ Voidragon: { DisplayName: Voidragon Tooltip: ''' - Fires void blasts that explode every other shot - Shoots demon flame tentacles alongside every shot - Void blasts consume no ammo and bullets have a {0}% chance to save ammo + Loads a 50 round onslaught of alternating bullets and void blasts + Once your mag runs empty, the gun unleashes a jet of abyssal fire that annihilates anything in its path + The abyssal fire and lingering flames grow increasingly powerful with the amount of shots you hit + {$CommonItemTooltip.PercentChanceToSaveAmmo} + [c/620BB0: 'Fade to black'] ''' } diff --git a/Projectiles/Magic/RancorFog.cs b/Projectiles/Magic/RancorFog.cs index bc4ee599e4..aefe9a2e09 100644 --- a/Projectiles/Magic/RancorFog.cs +++ b/Projectiles/Magic/RancorFog.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Magic Vector2 origin = texture.Size() * 0.5f; Vector2 drawPosition = Projectile.Center - Main.screenPosition; float opacity = Utils.GetLerpValue(0f, 0.08f, LightPower, true) * Projectile.Opacity * 0.5f; - Color drawColor = new Color(236, 0, 68) * opacity; + Color drawColor = Projectile.localAI[0] == 2f ? new Color(236, 0, 68) : Color.Indigo * opacity; Vector2 scale = Projectile.Size / texture.Size() * Projectile.scale; Main.EntitySpriteDraw(texture, drawPosition, null, drawColor, Projectile.rotation, origin, scale, SpriteEffects.None, 0); diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index 095cdebee7..4f73421d4e 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -9,6 +9,7 @@ using CalamityMod.Effects; using CalamityMod.Enums; using CalamityMod.Graphics.Metaballs; using CalamityMod.Graphics.Primitives; +using CalamityMod.NPCs; using CalamityMod.Packets.Entities; using CalamityMod.Particles; using CalamityMod.Utilities.Daybreak; @@ -25,6 +26,7 @@ using Terraria.WorldBuilding; namespace CalamityMod.Projectiles.Ranged { + [PierceResistException] public class AbyssalFire : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; diff --git a/Projectiles/Ranged/ArcherfishShot.cs b/Projectiles/Ranged/ArcherfishShot.cs index 220786a5ec..0f128affa3 100644 --- a/Projectiles/Ranged/ArcherfishShot.cs +++ b/Projectiles/Ranged/ArcherfishShot.cs @@ -28,6 +28,15 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { + // Bubbles + if (Main.rand.NextBool()) + { + Gore bubble = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * 0.2f + Main.rand.NextVector2Circular(1f, 1f), 411); + bubble.timeLeft = 9 + Main.rand.Next(7); + bubble.scale = Main.rand.NextFloat(0.6f, 1f); + bubble.type = Main.rand.NextBool(3) ? 412 : 411; + } + // Water trail for (int i = 0; i < 6; i++) { @@ -53,23 +62,11 @@ namespace CalamityMod.Projectiles.Ranged { target.AddBuff(BuffID.Wet, 120); target.AddBuff(ModContent.BuffType(), 120); - //Only increase damage on the first hit - if (Projectile.numHits == 0) - { - Player Owner = Main.player[Projectile.owner]; - Owner.Calamity().sharkGunDamageScaling++; - } } public override void OnHitPlayer(Player target, Player.HurtInfo info) { target.AddBuff(BuffID.Wet, 120); target.AddBuff(ModContent.BuffType(), 120); - //Only increase damage on the first hit - if (Projectile.numHits == 0) - { - Player Owner = Main.player[Projectile.owner]; - Owner.Calamity().sharkGunDamageScaling++; - } } } } diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs index 3303d73d71..5e0324fffd 100644 --- a/Projectiles/Ranged/MegalodonHoldout.cs +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Ranged framesBetweenShots = 4; OffsetLengthFromArm -= 3f; //Here we detect which ammo the bullets will use - Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _); //Alternate between shooting bullets and water streams. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier if (!swapType) { diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index 12b08670f3..f6aa8abe8b 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Projectiles.Ranged SoundEngine.PlaySound(SoundID.Item149, Projectile.Center); if (Main.netMode != NetmodeID.Server) { - string goreType = Main.rand.NextBool() ? "EmptyAnimosityShell" : "EmptyAnimosityShell2"; + string goreType = "SeadragonMag"; Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center, Projectile.velocity.RotatedBy(2f * -Owner.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find(goreType).Type); } //Set the scaling to 0 whenever it reloads @@ -74,13 +74,19 @@ namespace CalamityMod.Projectiles.Ranged framesBetweenShots = 3; OffsetLengthFromArm -= 2f; //Here we detect which ammo the bullets will use - Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _); //Alternate between shooting bullets and water streams. Despite not having damage scaling, the fish gain movement speed based on the scaling, so we still need a Global Projectile if (!swapType) { Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); CalamityGlobalProjectile cgp = scalingShot.Calamity(); cgp.sharkBullets = true; + //Only eject casings from the gun if bullets are fired, preventing too many at once + if (Main.netMode != NetmodeID.Server) + { + string goreType = "SeadragonCasing"; + Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 6), -Projectile.velocity * 4f, Mod.Find(goreType).Type); + } } if (swapType) { diff --git a/Projectiles/Ranged/VoidBlast.cs b/Projectiles/Ranged/VoidBlast.cs index aa14c9d8d6..6b88761727 100644 --- a/Projectiles/Ranged/VoidBlast.cs +++ b/Projectiles/Ranged/VoidBlast.cs @@ -4,6 +4,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Packets.Entities; using CalamityMod.Particles; +using CalamityMod.Projectiles.Magic; using CalamityMod.Projectiles.Typeless; using CalamityMod.Rarities; using Microsoft.Xna.Framework; @@ -81,6 +82,10 @@ namespace CalamityMod.Projectiles.Ranged blast.localAI[1] = debuffTime; blast.timeLeft = 2; blast.DamageType = Projectile.DamageType; + for (int i = 0; i < 2; i++) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Main.rand.NextVector2Circular(6f, 6f), ModContent.ProjectileType(), 0, 0f, Projectile.owner, 0f, 2f); + } #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/OmicronBeam"); SoundEngine.PlaySound(fire with { Volume = 0.9f }, Projectile.Center); diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index 1e6b57385d..7a4f92290b 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -122,7 +122,7 @@ namespace CalamityMod.Projectiles.Ranged framesBetweenShots = 3; OffsetLengthFromArm -= 2.5f; //Here we detect which ammo the bullets will use - Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _, !Main.rand.NextBool(4)); + Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _); //Alternate between shooting bullets and void blasts. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier if (!swapType) { diff --git a/Systems/Collections/CalamityProjectileSets.cs b/Systems/Collections/CalamityProjectileSets.cs index 740bf59a91..82b46cd708 100644 --- a/Systems/Collections/CalamityProjectileSets.cs +++ b/Systems/Collections/CalamityProjectileSets.cs @@ -75,7 +75,8 @@ namespace CalamityMod.Systems.Collections /// Defaults to . /// public static bool[] DoesNotGetHomingWithGrapeBeer = Factory.CreateBoolSet(ProjectileType(), ProjectileType(), ProjectileType(), - ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType()); + ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), + ProjectileType(), ProjectileType(), ProjectileType()); /// /// Determines what other projectiles this projectile will share ID-static immunity frames with. Defaults to -1, which means that it does not share immunity frames.
From 25b3273357f44ded07ac7262ad57a3b98beb2649 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sun, 15 Feb 2026 13:43:05 -0800 Subject: [PATCH 38/50] small touch ups --- .../en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 6 +++--- Projectiles/Ranged/BlahajBlast.cs | 2 +- Projectiles/Ranged/SeaDragonRocket.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index a07c595b6d..ba12561474 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -712,7 +712,7 @@ Megalodon: { DisplayName: Megalodon Tooltip: ''' - Loads a 30 round magazine of bullets and pressurized water streams that are rapidly unleashed + Loads a 30 round magazine of bullets and pressurized water jets that are rapidly unleashed After firing, the gun unleashes a powerful homing rocket before reloading Rocket damage is based on how many shots hit {$CommonItemTooltip.PercentChanceToSaveAmmo} @@ -1477,9 +1477,9 @@ Voidragon: { DisplayName: Voidragon Tooltip: ''' - Loads a 50 round onslaught of alternating bullets and void blasts + Loads a 50 round onslaught of alternating bullets and concentrated void blasts Once your mag runs empty, the gun unleashes a jet of abyssal fire that annihilates anything in its path - The abyssal fire and lingering flames grow increasingly powerful with the amount of shots you hit + The abyssal fire and lingering flames grow increasingly powerful with the amount of shots hit {$CommonItemTooltip.PercentChanceToSaveAmmo} [c/620BB0: 'Fade to black'] ''' diff --git a/Projectiles/Ranged/BlahajBlast.cs b/Projectiles/Ranged/BlahajBlast.cs index 8b3e681c0c..3de24b935f 100644 --- a/Projectiles/Ranged/BlahajBlast.cs +++ b/Projectiles/Ranged/BlahajBlast.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.penetrate = 4; Projectile.alpha = 255; Projectile.timeLeft = Lifetime; - Projectile.MaxUpdates = 2; + Projectile.MaxUpdates = 3; Projectile.usesLocalNPCImmunity = true; Projectile.tileCollide = false; Projectile.localNPCHitCooldown = -1; diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index b19846ef10..2655a36a13 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Ranged if (attacking) // Fly at the enemy { NPC chosenTarget = Projectile.Center.ClosestNPCAt(600); - CalamityUtils.HomeInOnSelectedNPC(Projectile, chosenTarget, true, 1.5f + moveSpeed, 25, 0.985f); + CalamityUtils.HomeInOnSelectedNPC(Projectile, chosenTarget, true, 1.25f + moveSpeed, 25, 0.985f); if (chosenTarget != null) Projectile.timeLeft++; // Don't die if you have a target to home in on } From 86a38e3f3ddd990612fb23e73e970bc2e0222523 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Thu, 19 Mar 2026 01:12:44 -0400 Subject: [PATCH 39/50] VoidBlast drawing fixes --- Projectiles/Ranged/VoidBlast.cs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Projectiles/Ranged/VoidBlast.cs b/Projectiles/Ranged/VoidBlast.cs index 6b88761727..36c78aca93 100644 --- a/Projectiles/Ranged/VoidBlast.cs +++ b/Projectiles/Ranged/VoidBlast.cs @@ -86,10 +86,18 @@ namespace CalamityMod.Projectiles.Ranged { Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Main.rand.NextVector2Circular(6f, 6f), ModContent.ProjectileType(), 0, 0f, Projectile.owner, 0f, 2f); } + #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/OmicronBeam"); SoundEngine.PlaySound(fire with { Volume = 0.9f }, Projectile.Center); + for (int i = 0; i < 3; i++) + { + Particle blastRing = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Black, "CalamityMod/Particles/SmallBloom", Vector2.One, Main.rand.NextFloat(-10, 10), 1f, 1.2f, 15, false); + GeneralParticleHandler.SpawnParticle(blastRing); + blastRing.DrawLayer = Enums.GeneralDrawLayer.BeforeProjectiles; + } + for (float k = 0; k < 3; k++) { float colorRando = Main.rand.NextFloat(0, 1); @@ -99,19 +107,18 @@ namespace CalamityMod.Projectiles.Ranged Particle blastRing = new CustomPulse(spawnPos, Vector2.Zero, Color.Lerp(Color.DarkOrchid, Color.Indigo, colorRando) * 0.6f, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(-10, 10), 0.07f, scale, partLifetime); GeneralParticleHandler.SpawnParticle(blastRing); } - for (int i = 0; i < 3; i++) - { - Particle blastRing = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Black, "CalamityMod/Particles/SmallBloom", Vector2.One, Main.rand.NextFloat(-10, 10), 1f, 1.2f, 15, false); - GeneralParticleHandler.SpawnParticle(blastRing); - } + Particle innerGlow = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Indigo, "CalamityMod/Particles/BloomCircle", Vector2.One, 0f, 0.03f, 1f, 24, true); GeneralParticleHandler.SpawnParticle(innerGlow); + innerGlow.DrawLayer = Enums.GeneralDrawLayer.AfterEverything; + float offset = Main.rand.NextFloat(MathHelper.TwoPi); for (int i = 0; i < 4; i++) { Vector2 velocity = (MathHelper.TwoPi * i / 4f + offset).ToRotationVector2(); Particle cross = new GlowSparkParticle(Projectile.Center, velocity, false, 12, 0.4f, Color.BlueViolet * 0.7f, new Vector2(0.07f, 0.08f), true, false); GeneralParticleHandler.SpawnParticle(cross); + cross.DrawLayer = Enums.GeneralDrawLayer.AfterEverything; } for (float k = 0; k < 10; k++) { @@ -126,6 +133,7 @@ namespace CalamityMod.Projectiles.Ranged dust.alpha = Main.rand.Next(120, 180 + 1); dust.color = Main.rand.NextBool() ? Color.Indigo : Color.DarkBlue; } + #endregion } public override bool PreDraw(ref Color lightColor) From da58e143b8d17fe728a1291fea59dc0e247f794a Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Thu, 19 Mar 2026 01:21:48 -0400 Subject: [PATCH 40/50] Fixed alignment on Seadragon's GunTipPosition override --- Projectiles/Ranged/SeadragonHoldout.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index f6aa8abe8b..ccf69a9f0a 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -24,6 +24,9 @@ namespace CalamityMod.Projectiles.Ranged public int framesBetweenShots = 0; public bool swapType = false; + public override Vector2 GunTipPosition => Projectile.Center - Vector2.UnitY + Vector2.UnitX.RotatedBy(Projectile.rotation) * Projectile.width * 0.5f; + + public override void KillHoldoutLogic() { //If the player is dead, kill the holdout. From 01f704647729753f0db7c4e536f273960c74d914 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Thu, 19 Mar 2026 01:48:12 -0400 Subject: [PATCH 41/50] Properly aligned Voidragon's eye dust --- Projectiles/Ranged/VoidragonHoldout.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index 7a4f92290b..d71241531e 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Ranged Dust dust = Dust.NewDustPerfect(GunTipPosition + (-Projectile.velocity.RotatedBy(0.15 * Projectile.direction) * 50), dustType); dust.scale = Main.rand.NextFloat(1.2f, 1.8f) * (Owner.Calamity().sharkGunDamageScaling * 0.02f) - rotMulti * 0.1f; dust.noGravity = true; - dust.velocity = new Vector2(-1.2f, -2).RotatedBy(Projectile.rotation).RotatedByRandom(rotMulti * 0.8f) * (Main.rand.NextFloat(1f, 3.2f) - rotMulti) * (Owner.Calamity().sharkGunDamageScaling * 0.015f); + dust.velocity = new Vector2(-1.2f, -2).RotatedBy(Projectile.rotation + (Projectile.direction == -1 ? MathHelper.TwoPi * 0.75f : 0)).RotatedByRandom(rotMulti * 0.8f) * (Main.rand.NextFloat(1f, 3.2f) - rotMulti) * (Owner.Calamity().sharkGunDamageScaling * 0.015f); dust.alpha = Main.rand.Next(90, 150); dust.color = Main.rand.NextBool() ? Color.Indigo : Color.DarkBlue; } From 8c1e59c47b33d071441e33e6ed7b7725207f1f12 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Thu, 19 Mar 2026 00:39:34 -0700 Subject: [PATCH 42/50] Voidragon now has aimlag --- Projectiles/Magic/RancorFog.cs | 2 +- Projectiles/Ranged/MegalodonHoldout.cs | 12 ++---- Projectiles/Ranged/SeaDragonRocket.cs | 2 +- Projectiles/Ranged/SeadragonHoldout.cs | 5 ++- Projectiles/Ranged/VoidBlast.cs | 23 +--------- Projectiles/Ranged/VoidragonHoldout.cs | 58 ++++++++++++++++---------- 6 files changed, 47 insertions(+), 55 deletions(-) diff --git a/Projectiles/Magic/RancorFog.cs b/Projectiles/Magic/RancorFog.cs index aefe9a2e09..bc4ee599e4 100644 --- a/Projectiles/Magic/RancorFog.cs +++ b/Projectiles/Magic/RancorFog.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Magic Vector2 origin = texture.Size() * 0.5f; Vector2 drawPosition = Projectile.Center - Main.screenPosition; float opacity = Utils.GetLerpValue(0f, 0.08f, LightPower, true) * Projectile.Opacity * 0.5f; - Color drawColor = Projectile.localAI[0] == 2f ? new Color(236, 0, 68) : Color.Indigo * opacity; + Color drawColor = new Color(236, 0, 68) * opacity; Vector2 scale = Projectile.Size / texture.Size() * Projectile.scale; Main.EntitySpriteDraw(texture, drawPosition, null, drawColor, Projectile.rotation, origin, scale, SpriteEffects.None, 0); diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs index 5e0324fffd..49e300cf0e 100644 --- a/Projectiles/Ranged/MegalodonHoldout.cs +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -1,18 +1,13 @@ -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using ReLogic.Utilities; using Terraria; using Terraria.Audio; using Terraria.GameContent; using Terraria.ModLoader; using Terraria.ID; -using Steamworks; -using CalamityMod.Projectiles.Turret; -using Mono.Cecil; namespace CalamityMod.Projectiles.Ranged { @@ -150,8 +145,9 @@ namespace CalamityMod.Projectiles.Ranged //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); - //After firing the rocket, kill the projectile to allow left click to be held down - Projectile.Kill(); + //After firing the rocket, reset all variables to allow left click to be held down + Time = 2; + shotCounter = 0; } Time++; } diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index 2655a36a13..5ea7e67898 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Ranged if (attacking) // Fly at the enemy { NPC chosenTarget = Projectile.Center.ClosestNPCAt(600); - CalamityUtils.HomeInOnSelectedNPC(Projectile, chosenTarget, true, 1.25f + moveSpeed, 25, 0.985f); + CalamityUtils.HomeInOnSelectedNPC(Projectile, chosenTarget, true, 1.4f + moveSpeed, 25, 0.985f); if (chosenTarget != null) Projectile.timeLeft++; // Don't die if you have a target to home in on } diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index ccf69a9f0a..9d6744f2a3 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -111,8 +111,9 @@ namespace CalamityMod.Projectiles.Ranged } if (shotCounter == 50 && framesBetweenShots == 0) { - //Kill the holdout to allow left click to be held down. - Projectile.Kill(); + //Reset all variables to allow left click to be held down + Time = 2; + shotCounter = 0; for (int x = 0; x < Main.maxProjectiles; x++) { //Activate all fish to rush at the cursor and home in on the nearest enemy diff --git a/Projectiles/Ranged/VoidBlast.cs b/Projectiles/Ranged/VoidBlast.cs index 36c78aca93..f369071a6b 100644 --- a/Projectiles/Ranged/VoidBlast.cs +++ b/Projectiles/Ranged/VoidBlast.cs @@ -1,18 +1,11 @@ using System; -using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; -using CalamityMod.Dusts; -using CalamityMod.Packets.Entities; using CalamityMod.Particles; -using CalamityMod.Projectiles.Magic; using CalamityMod.Projectiles.Typeless; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; -using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged @@ -82,11 +75,6 @@ namespace CalamityMod.Projectiles.Ranged blast.localAI[1] = debuffTime; blast.timeLeft = 2; blast.DamageType = Projectile.DamageType; - for (int i = 0; i < 2; i++) - { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Main.rand.NextVector2Circular(6f, 6f), ModContent.ProjectileType(), 0, 0f, Projectile.owner, 0f, 2f); - } - #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/OmicronBeam"); SoundEngine.PlaySound(fire with { Volume = 0.9f }, Projectile.Center); @@ -95,7 +83,6 @@ namespace CalamityMod.Projectiles.Ranged { Particle blastRing = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Black, "CalamityMod/Particles/SmallBloom", Vector2.One, Main.rand.NextFloat(-10, 10), 1f, 1.2f, 15, false); GeneralParticleHandler.SpawnParticle(blastRing); - blastRing.DrawLayer = Enums.GeneralDrawLayer.BeforeProjectiles; } for (float k = 0; k < 3; k++) @@ -106,6 +93,7 @@ namespace CalamityMod.Projectiles.Ranged Vector2 spawnPos = Projectile.Center + (Main.rand.NextVector2Circular(20, 20) * (k + 1)); Particle blastRing = new CustomPulse(spawnPos, Vector2.Zero, Color.Lerp(Color.DarkOrchid, Color.Indigo, colorRando) * 0.6f, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(-10, 10), 0.07f, scale, partLifetime); GeneralParticleHandler.SpawnParticle(blastRing); + blastRing.DrawLayer = Enums.GeneralDrawLayer.AfterEverything; } Particle innerGlow = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Indigo, "CalamityMod/Particles/BloomCircle", Vector2.One, 0f, 0.03f, 1f, 24, true); @@ -124,14 +112,7 @@ namespace CalamityMod.Projectiles.Ranged { Particle spark = new CustomSpark(Projectile.Center, new Vector2(3, 3).RotatedByRandom(100) * Main.rand.NextFloat(2f, 4f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 27, Main.rand.NextFloat(1.1f, 1.3f), Color.Lerp(Color.MediumPurple, Color.Indigo, Main.rand.NextFloat(0.5f, 0.7f)), new Vector2(0.6f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.35f, 0.4f)); GeneralParticleHandler.SpawnParticle(spark); - } - for (int i = 0; i < 30; i++) - { - Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), Main.rand.NextVector2CircularEdge(8f, 8f) * (Main.rand.NextFloat(1f, 1.2f) + Projectile.scale)); - dust.noGravity = true; - dust.scale = Main.rand.NextFloat(0.8f, 1.2f) + Projectile.scale; - dust.alpha = Main.rand.Next(120, 180 + 1); - dust.color = Main.rand.NextBool() ? Color.Indigo : Color.DarkBlue; + spark.DrawLayer = Enums.GeneralDrawLayer.AfterEverything; } #endregion diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index d71241531e..9993528b29 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -1,22 +1,14 @@ -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using ReLogic.Utilities; using Terraria; using Terraria.Audio; using Terraria.GameContent; using Terraria.ModLoader; using Terraria.ID; -using Steamworks; -using Mono.Cecil; -using Newtonsoft.Json.Serialization; using CalamityMod.Dusts; -using static System.Net.Mime.MediaTypeNames; -using System; -using System.Runtime.CompilerServices; namespace CalamityMod.Projectiles.Ranged { @@ -28,6 +20,7 @@ namespace CalamityMod.Projectiles.Ranged public override float BaseOffsetY => -1f; public override float OffsetYDownwards => 5f; public override Vector2 GunTipPosition => Projectile.Center + (Projectile.velocity * 55).RotatedBy(-0.09f * Projectile.direction); + public const float LaserAimLag = 0.92f; // Last Prism-esque aim lag. Higher = Slower. Last Prism is 0.92f. public int Time = 0; public int beamTimer = 500; @@ -89,19 +82,6 @@ namespace CalamityMod.Projectiles.Ranged #region Visuals and Sounds SoundStyle fire = new("CalamityMod/Sounds/Item/GunShotTiny"); SoundEngine.PlaySound(fire with { Volume = 0.4f, Pitch = 0.1f, PitchVariance = 0.1f, MaxInstances = -1 }, Projectile.Center); - Particle sparker = new CustomPulse(GunTipPosition, Vector2.Zero, Color.Purple, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.02f, 0.5f, 6, true, 0.8f); - GeneralParticleHandler.SpawnParticle(sparker); - Particle center = new SnowflakeSparkle(GunTipPosition, Vector2.Zero, Color.White, Color.Indigo, 0.8f, 2, Main.rand.NextFloat(-10, 10), 0.5f, 7); - GeneralParticleHandler.SpawnParticle(center); - GenericSparkle sparker2 = new GenericSparkle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet * 0.9f, Color.Indigo, Main.rand.NextFloat(1.4f, 1.6f), 2, 0, 2.22f); - GeneralParticleHandler.SpawnParticle(sparker2); - GenericSparkle sparker3 = new GenericSparkle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet * 0.9f, Color.Indigo, Main.rand.NextFloat(2.5f, 2.6f), 2, 0, 2.68f); - GeneralParticleHandler.SpawnParticle(sparker3); - for (int i = 0; i <= 2; i++) - { - Particle spark = new VoidSparkParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.8f) * Main.rand.NextFloat(1.2f, 1.5f), false, 25, 0.1f, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet); - GeneralParticleHandler.SpawnParticle(spark); - } for (int i = 0; i <= 4; i++) { Dust dust = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(3) ? 303 : 244, (shootVelocity * Main.rand.NextFloat(0.2f, 1.1f)).RotatedByRandom(0.4f)); @@ -110,6 +90,23 @@ namespace CalamityMod.Projectiles.Ranged Particle smoke = new HeavySmokeParticle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.Black : Color.Indigo * 0.6f, 10, 0.85f, 1.1f, 5f, false, 0, true); GeneralParticleHandler.SpawnParticle(smoke); } + for (int i = 0; i <= 2; i++) + { + Particle spark = new VoidSparkParticle(GunTipPosition, shootVelocity.RotatedByRandom(0.8f) * Main.rand.NextFloat(1.2f, 1.5f), false, 25, 0.1f, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet); + GeneralParticleHandler.SpawnParticle(spark); + } + Particle sparker = new CustomPulse(GunTipPosition, Vector2.Zero, Color.Purple, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.02f, 0.5f, 2, true, 0.8f); + GeneralParticleHandler.SpawnParticle(sparker); + sparker.DrawLayer = Enums.GeneralDrawLayer.AfterEverything; + GenericSparkle sparker2 = new GenericSparkle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet * 0.9f, Color.Indigo, Main.rand.NextFloat(1.4f, 1.6f), 2, 0, 2.22f); + GeneralParticleHandler.SpawnParticle(sparker2); + sparker2.DrawLayer = Enums.GeneralDrawLayer.AfterEverything; + GenericSparkle sparker3 = new GenericSparkle(GunTipPosition, Vector2.Zero, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet * 0.9f, Color.Indigo, Main.rand.NextFloat(2.5f, 2.6f), 2, 0, 2.68f); + GeneralParticleHandler.SpawnParticle(sparker3); + Particle center = new SnowflakeSparkle(GunTipPosition, Vector2.Zero, Color.GhostWhite, Color.Indigo, 0.8f, 2, Main.rand.NextFloat(-10, 10), 0.5f, 7); + GeneralParticleHandler.SpawnParticle(center); + center.DrawLayer = Enums.GeneralDrawLayer.AfterEverything; + sparker3.DrawLayer = Enums.GeneralDrawLayer.AfterEverything; if (swapType) { float rotation = Projectile.velocity.ToRotation(); @@ -188,6 +185,23 @@ namespace CalamityMod.Projectiles.Ranged } Time++; } + public override void ManageHoldout() + { + Vector2 storedVelocity = Projectile.velocity; + base.ManageHoldout(); + + if (firingBeam) + { + Vector2 aimVector = (Main.MouseWorld - Owner.RotatedRelativePoint(Owner.MountedCenter, true)).SafeNormalize(Vector2.UnitY); + aimVector = Vector2.Normalize(Vector2.Lerp(aimVector, Vector2.Normalize(storedVelocity), LaserAimLag)); + + if (aimVector != storedVelocity) + Projectile.netUpdate = true; + Projectile.velocity = aimVector; + + Projectile.rotation = Projectile.velocity.ToRotation(); + } + } public override bool PreDraw(ref Color lightColor) { if (Time < 2) From 1d1154de01f9e7d1e6a7e486243f3173c438a10d Mon Sep 17 00:00:00 2001 From: Xyk Date: Sun, 24 May 2026 15:47:21 -0700 Subject: [PATCH 43/50] Charge Anim and Sounds --- Projectiles/Ranged/AbyssalFire.cs | 4 +- Projectiles/Ranged/VoidragonHoldout.cs | 82 ++++++++++++++++++++++--- Sounds/Item/VoidragonCharge.ogg | Bin 0 -> 16505 bytes Sounds/Item/VoidragonLaser.ogg | Bin 0 -> 17808 bytes Sounds/Item/VoidragonStrongStart.ogg | Bin 0 -> 70444 bytes 5 files changed, 75 insertions(+), 11 deletions(-) create mode 100644 Sounds/Item/VoidragonCharge.ogg create mode 100644 Sounds/Item/VoidragonLaser.ogg create mode 100644 Sounds/Item/VoidragonStrongStart.ogg diff --git a/Projectiles/Ranged/AbyssalFire.cs b/Projectiles/Ranged/AbyssalFire.cs index 4f73421d4e..039a95a092 100644 --- a/Projectiles/Ranged/AbyssalFire.cs +++ b/Projectiles/Ranged/AbyssalFire.cs @@ -75,7 +75,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.Center = VoidragonHoldout.ModProjectile().GunTipPosition - ((Projectile.velocity * 12f).RotatedBy(-0.02f * Projectile.direction)); int beamTimer = VoidragonHoldout.ModProjectile().beamTimer; - float beamWidthInterpolant = Utils.GetLerpValue(500, 475, beamTimer, true) * Utils.GetLerpValue(0, 25, beamTimer, true); + float beamWidthInterpolant = Utils.GetLerpValue(0, 25, beamTimer, true); // Set the control points for the primitive drawing. ControlPoints ??= new Vector2[MaxLaserControlPoints]; @@ -154,7 +154,7 @@ namespace CalamityMod.Projectiles.Ranged private float PrimitiveWidthFunction(float completionRatio, Vector2 vertexPos) { float width; - float maxBodyWidth = Projectile.scale * MaxLaserWidth; + float maxBodyWidth = Projectile.scale * MaxLaserWidth * (1 + MathF.Pow(Utils.GetLerpValue(450, 500, VoidragonHoldout.ModProjectile().beamTimer, true), 3.5f) * 4); float shrinkRatio = 0.018f; //if (completionRatio < shrinkRatio) diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index 9993528b29..b909764a62 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -1,14 +1,17 @@ -using CalamityMod.Items.Weapons.Ranged; +using System; +using System.Runtime.InteropServices; +using CalamityMod.Dusts; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Utilities; using Terraria; using Terraria.Audio; using Terraria.GameContent; -using Terraria.ModLoader; using Terraria.ID; -using CalamityMod.Dusts; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -28,6 +31,12 @@ namespace CalamityMod.Projectiles.Ranged public int framesBetweenShots = 0; public bool swapType = false; public bool firingBeam = false; + public float chargeVisTimer = 0; + public float maxChargeSpeed = 2; + public float chargePulseTimer = 0; + public bool playChargeSound = true; + + public SlotId soundSlot; public override void KillHoldoutLogic() { @@ -35,9 +44,16 @@ namespace CalamityMod.Projectiles.Ranged if (Owner.CantUseHoldout() || HeldItem.type != AssociatedItemID) Projectile.Kill(); } - + public override void OnKill(int timeLeft) + { + if (SoundEngine.TryGetActiveSound(soundSlot, out var ChargeSound)) + ChargeSound?.Stop(); + } public override void HoldoutAI() { + if (SoundEngine.TryGetActiveSound(soundSlot, out var ChargeSound) && ChargeSound.IsPlaying) + ChargeSound.Position = Projectile.Center; + //Spawn dust on the holdout's eyes based on the amount of damage scaling. Currently only works from one side for (int i = 0; i < 2; i++) { @@ -144,21 +160,50 @@ namespace CalamityMod.Projectiles.Ranged { framesBetweenShots = 150; shotCounter++; - SoundStyle charge = new("CalamityMod/Sounds/Custom/MoonLordLaserCharge"); - SoundEngine.PlaySound(charge with { Volume = 1.5f }, Projectile.Center, _ => new ProjectileAudioTracker(Projectile).IsActiveAndInGame()); } } if (framesBetweenShots > 0) framesBetweenShots--; } - if (shotCounter == 51 && !firingBeam) + if (shotCounter == 51 && !firingBeam) //Charging { - Particle streak = new ManaDrainStreak(Owner, Main.rand.NextFloat(2f, 3f), Main.rand.NextVector2CircularEdge(20f, 20f) * Main.rand.NextFloat(2f, 4f), 0f, Color.Indigo, Color.BlueViolet, 7, GunTipPosition); - GeneralParticleHandler.SpawnParticle(streak); + SoundStyle charge = new("CalamityMod/Sounds/Item/VoidragonCharge"); + if (playChargeSound) + soundSlot = SoundEngine.PlaySound(charge with { Volume = 0.7f, IsLooped = true, pitch = -0.5f }, Projectile.Center); + playChargeSound = false; + float chargeCompletion = Utils.GetLerpValue(150, 0, framesBetweenShots, true); + chargeVisTimer = MathHelper.Lerp(0, maxChargeSpeed, chargeCompletion); + chargePulseTimer += 0.6f + MathHelper.Lerp(0, maxChargeSpeed, MathF.Pow(chargeCompletion, 2.5f)); + + if (SoundEngine.TryGetActiveSound(soundSlot, out var sSound) && sSound.IsPlaying) + sSound.Pitch = -0.85f + 1.5f * chargeCompletion; + } + else + { + chargePulseTimer = 0; + chargeVisTimer = MathHelper.Lerp(chargeVisTimer, 0, 0.12f); } if (shotCounter == 51 && framesBetweenShots == 0) { //Main.NewText(beamTimer); + float beamCompletion = Utils.GetLerpValue(500, 0, beamTimer, true); + if (!firingBeam) + { + Owner.Calamity().GeneralScreenShakePower = 10f; + if (SoundEngine.TryGetActiveSound(soundSlot, out var cSound)) + cSound?.Stop(); + SoundStyle start = new("CalamityMod/Sounds/Item/VoidragonStrongStart"); + SoundStyle start2 = new("CalamityMod/Sounds/Item/MagnaCannonShot"); + for (int i = 0; i < 3; i++) + SoundEngine.PlaySound((i > 0 ? start2 : start) with { Volume = 1f, pitch = 0f - 0.5f * i, MaxInstances = 3 }, Projectile.Center); + SoundStyle fire = new("CalamityMod/Sounds/Item/VoidragonLaser"); + soundSlot = SoundEngine.PlaySound(fire with { Volume = 1f, IsLooped = true, pitch = 0f }, Projectile.Center); + } + if (SoundEngine.TryGetActiveSound(soundSlot, out var sSound) && sSound.IsPlaying) + { + sSound.Pitch = 1f - 1.5f * MathF.Pow(beamCompletion, 4f) + 0.9f * beamCompletion; + sSound.Volume = 1f - 1 * MathF.Pow(beamCompletion, 10f); + } firingBeam = true; if (firingBeam && beamTimer > 0) { @@ -208,6 +253,8 @@ namespace CalamityMod.Projectiles.Ranged return false; Texture2D texture = TextureAssets.Projectile[Type].Value; Texture2D texture2 = ModContent.Request("CalamityMod/Particles/BloomCircle").Value; + Texture2D texture3 = ModContent.Request("CalamityMod/Particles/RoarPulse").Value; + Texture2D texture4 = ModContent.Request("CalamityMod/Particles/GlowOrbParticle").Value; Texture2D sparkle = ModContent.Request("CalamityMod/Particles/HalfStar").Value; Vector2 drawPosition = Projectile.Center - Main.screenPosition; float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); @@ -215,6 +262,23 @@ namespace CalamityMod.Projectiles.Ranged SpriteEffects flipSprite = (Projectile.spriteDirection * Owner.gravDir == -1) ? SpriteEffects.FlipHorizontally : SpriteEffects.None; Vector2 shake = Main.rand.NextVector2Circular(6, 6); + float chargeVisual = MathF.Pow(Utils.GetLerpValue(0, maxChargeSpeed / 1.5f, chargeVisTimer, true), 1.5f); + float finalChargeVisual = MathF.Pow(Utils.GetLerpValue(maxChargeSpeed / 1.5f, maxChargeSpeed, chargeVisTimer, true), 3f); + + int max = 30; + float ringScaling = MathF.Pow(1 - Utils.GetLerpValue(0, max, chargePulseTimer % max, true), 1.15f); + float ringOpacity = 1 - MathF.Abs(Utils.GetLerpValue(0.5f, 1, ringScaling, false)); + + //Black aura + for (int i = 0; i < 15; i++) + Main.EntitySpriteDraw(texture4, GunTipPosition - Main.screenPosition, null, Color.Lerp(Color.Black, Color.Indigo with { A = 0 }, finalChargeVisual) * (0.35f + ringOpacity * 0.65f), drawRotation + Main.rand.NextFloat(-4f, 4f), texture4.Size() / 2, new Vector2(0.85f + i * 0.065f, 0.85f - i * 0.065f) * (Projectile.scale + finalChargeVisual * 1.8f) * Owner.gravDir * chargeVisual * (4.25f - ringScaling * 2.5f), flipSprite); + + for (int i = 0; i < 3; i ++) //Glow aura + Main.EntitySpriteDraw(texture2, GunTipPosition - Main.screenPosition, null, Color.Lerp(Color.BlueViolet, Color.White, (i == 0 ? 0.8f : 0)) with { A = 0 }, drawRotation + Main.rand.NextFloat(-4f, 4f), texture2.Size() / 2, (Projectile.scale + finalChargeVisual * 1.8f) * Owner.gravDir * chargeVisual * 0.5f * (i == 0 ? 0.75f : 1), flipSprite); + + //Pulse Rings + Main.EntitySpriteDraw(texture3, GunTipPosition - Main.screenPosition, null, Color.BlueViolet with { A = 0 } * ringOpacity * 0.5f, drawRotation + Main.rand.NextFloat(-4f, 4f), texture3.Size() / 2, Projectile.scale * Owner.gravDir * chargeVisual * ringScaling * 0.5f, flipSprite); + for (int i = 0; i < 22; i++) { Color auraColor = Color.Lerp(Color.Indigo, Color.BlueViolet, i * 0.01f) with { A = 0 } * 0.6f; diff --git a/Sounds/Item/VoidragonCharge.ogg b/Sounds/Item/VoidragonCharge.ogg new file mode 100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ode 100644 index 0000000000000000000000000000000000000000..e4acc4fbca33e492c0e83a18eeb81a42b0169022 GIT binary patch literal 70444 zcmeFZby!u;_b9v%9Y>@aq`ME@-Q6u6qNsETf(im6-QWS~lI}*jyHhD?C8ghue!kz| z_x|4d-1|Pyecu1>eui=O%$iwyR?J#!W{w*6_BsFp@XwQI|F_`&LEa8R3GsODV&&+1 zUxfg8LjE+}-re2Z7wRAy_dWmp-1oePD3Wao#WeL(>+HsSKQb=(C#No>AuFdX z26lCIwy|@3Y70UBJ2JDhj6MWF17WyTsk#D2qx1j(8vrcmn6YB*l$dkkJ~MeI#VOvG zy0}7<;zGNKt;4yy|CLek+7JK$5)it6R zgSB&RRj!lsFf%>c10&>nvPddY2jOeqXI3H9!Ng$pp4_FEIxo!ygC#%X4F*py)mv4b z?d(`};qCma2;m*3s!?f7_NsAZRqiQ$>yl;^vsbReLR)G7Waxk9K?Qz`Gzy6gwlv!P z@FC2(NiN_}f2TzS1c1{76r%B!%JB!v$%n@1G>+J`@c71Hayq(ddf?-3X5e8vWY7vFtTAWOkY;`t%0zq@T#NwN z+>?X~J%)xkCQB*T?n#MbYK=ot&9i|Dwt))h9}tk~NcUd@WH_ee{=br)QG)INK1n+C zvH+4GEqh*)_q?Q&)28cjVMF~x;a&jbsiZbrmkY0gD{qghD3}!7Wc%V&hfY)<{)-9s zYzF{IZt|{|d zmiRN84D>H15Fq69I#tSO%JGm8R?0?30eK_h19VS@=dCAQ-`D+j@sR}iW;sjT{pk&rUj&L3K6Ng2 zETvl{R%`}$FLO5K#|U}lg14I5B#b$3Z~n}j3IN_=|B>QkpCq);9;mK+7s_77zjS;v{5ZdbSn@#Z9PUzWAdDza?*qYS(8P)uwFn`r%WybwKH0NGL zXoMox6l0M7OLH=qBEAbo&??2y8O1PoC)kIk6ePp93o-A&^E>^i67QXh zL}R*;G2VZ0fmqsLa+18DCHX&p{wKJ!_#hhpflHECO;T6w{~Xi*9pV2{;D1X2P{biv z;2)v%XKGf206_@weoZolO6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IjUGFxIs7368z0}JJtz_Pgwwc@hfeojtcC2qMAJRuM zo@DeBE|07(81?9jalN2RG{MHpkHdomEg)w|y#c2^uO%Im67!^|U$d8)=bN{R^B>gS zwTtfTp|Ww!^N4ex_Z(0UKo+a)PH}`-Jk|SS!40z@%fkNPpGsW4>wpLUKiF}mtqy~s z!6Apc^gF+<_qM*2e(*7va>GrIak%{c!hLz8wk>5s+^IrK9P7!IXCBVkv7-aOyWi#Z zSPR~gcUN+M^CZ)$-lqQD)$*yoM7nA4#%|hH=3%P+8M?*6*CmNZk0!ntv={Jk4J_4e zUH!sa_r@&@B{6h_TTqzMsX2o~b%T+?$l`mzkM|Gf2|KzncG|dSs_(C&YC#eR8+eK; z^TvjQlEcHl?Mmh0_Qmnq@d4*MOY57*ye)*@HAB23C)MNV?xhM{Jn9sOrqXq%`chgv z#4~?R3guX=OZjjZ8Pu4GxsE8h7qju?hmwGqgqB7&7e+9b z7AiPR!Keb$H1s*SR&1h~c0>-#4_M+F&NEfw=h}$^X)KW+W4^G_)9M4M9_ Date: Sun, 24 May 2026 23:16:56 -0700 Subject: [PATCH 44/50] casing sprites and other misc changes --- Gores/VoidragonCasing.png | Bin 0 -> 212 bytes Gores/VoidragonMag.png | Bin 0 -> 315 bytes Items/Weapons/Ranged/Voidragon.cs | 2 +- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- Projectiles/Ranged/BlahajBlast.cs | 57 +++++------- Projectiles/Ranged/MegalodonShot.cs | 86 +++++------------- Projectiles/Ranged/SeadragonHoldout.cs | 21 ++--- Projectiles/Ranged/VoidBlast.cs | 1 + Projectiles/Ranged/VoidragonHoldout.cs | 37 +++----- 9 files changed, 64 insertions(+), 142 deletions(-) create mode 100644 Gores/VoidragonCasing.png create mode 100644 Gores/VoidragonMag.png diff --git a/Gores/VoidragonCasing.png b/Gores/VoidragonCasing.png new file mode 100644 index 0000000000000000000000000000000000000000..ba46e75c91e2a9d84c2253bfbad83bc88dd64249 GIT binary patch literal 212 zcmeAS@N?(olHy`uVBq!ia0vp^96-#&!3HGb=lz)rq!^2X+?^QKos)S9*Lk`)hG+yYy|9q4F;S%bf(DL$0eC% zwq8xwX3j&qD=*cjKew@dt|IT&94RYV*6!PMto)<6rrPRfTt4c$8)CvmBzMiNFbC#<~ZaN)l~pi3A$UHx3v IIVCg!03nr5cK`qY literal 0 HcmV?d00001 diff --git a/Gores/VoidragonMag.png b/Gores/VoidragonMag.png new file mode 100644 index 0000000000000000000000000000000000000000..76f97f716960f2b05fa3c55356e43d56301ddeff GIT binary patch literal 315 zcmV-B0mS}^P)Px#1ZP1_K>z@;j|==^1poj5qm59Yz$_DLN+Ms<>uf#;$Vp~Py6z;Ki3raw=wQ&Y4)CAeVT!<_gA8BhDZC3V|Hz#4)k+C>F0~_NHa65TsHh=NmA6gj$l}V5I^`Esdegl??G3a*)%X|O; N002ovPDHLkV1j4Vfh+(3 literal 0 HcmV?d00001 diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index 5a4f7bd84d..d0d36acbda 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 96; Item.height = 38; - Item.damage = 2000; + Item.damage = 1400; Item.DamageType = DamageClass.Ranged; Item.useTime = 3; Item.useAnimation = 3; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index cd1455e9bc..e127734835 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1492,7 +1492,7 @@ Voidragon: { Once your mag runs empty, the gun unleashes a jet of abyssal fire that annihilates anything in its path The abyssal fire and lingering flames grow increasingly powerful with the amount of shots hit {$CommonItemTooltip.PercentChanceToSaveAmmo} - [c/620BB0: 'Fade to black'] + [c/620BB0:'Fade to black'] ''' } diff --git a/Projectiles/Ranged/BlahajBlast.cs b/Projectiles/Ranged/BlahajBlast.cs index 3de24b935f..d521569393 100644 --- a/Projectiles/Ranged/BlahajBlast.cs +++ b/Projectiles/Ranged/BlahajBlast.cs @@ -44,9 +44,9 @@ namespace CalamityMod.Projectiles.Ranged } if (Projectile.timeLeft <= Lifetime - 4) { - if (Main.zenithWorld) + if (Projectile.ai[0] == 0) { - Particle transspark = new SparkParticle(Projectile.Center - Projectile.velocity * 2, -Projectile.velocity * 0.05f, false, 10, 1.1f, Main.rand.NextBool() ? Color.DeepSkyBlue : (Main.rand.NextBool() ? Color.White : Color.DeepPink)); + Particle transspark = new SparkParticle(Projectile.Center - Projectile.velocity * 2, -Projectile.velocity * 0.05f, false, 10, 1.1f, Main.rand.NextBool() ? (Main.rand.NextBool() ? Color.DeepSkyBlue : Color.White) : Color.DeepPink); GeneralParticleHandler.SpawnParticle(transspark); } else @@ -96,6 +96,25 @@ namespace CalamityMod.Projectiles.Ranged Projectile fishy = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center + Main.rand.NextVector2Circular(150, 150), Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 1.5f), Projectile.knockBack, Projectile.owner); fishy.ai[2] = ((Owner.Calamity().sharkGunDamageScaling + 1) * 0.02f) + 0.1f; } + OnHitEffects(); + } + public override void OnHitPlayer(Player target, Player.HurtInfo info) + { + { + target.AddBuff(ModContent.BuffType(), 60); + //Only spawn rocket on the first hit + if (Projectile.numHits == 0) + { + Player Owner = Main.player[Projectile.owner]; + Projectile fishy = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center + Main.rand.NextVector2Circular(150, 150), Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 1.5f), Projectile.knockBack, Projectile.owner); + fishy.ai[2] = ((Owner.Calamity().sharkGunDamageScaling + 1) * 0.02f) + 0.1f; + } + OnHitEffects(); + } + } + + private void OnHitEffects() + { for (int i = 0; i < 4; ++i) { int bloodLifetime = Main.rand.Next(22, 25); @@ -120,39 +139,5 @@ namespace CalamityMod.Projectiles.Ranged GeneralParticleHandler.SpawnParticle(spark2); } } - public override void OnHitPlayer(Player target, Player.HurtInfo info) - { - { - if (Projectile.numHits == 0) - { - Player Owner = Main.player[Projectile.owner]; - Owner.Calamity().sharkGunDamageScaling++; - } - target.AddBuff(ModContent.BuffType(), 60); - for (int i = 0; i < 4; ++i) - { - int bloodLifetime = Main.rand.Next(22, 25); - float bloodScale = Main.rand.NextFloat(0.6f, 0.8f); - Color bloodColor = Color.Lerp(Color.RoyalBlue * 0.7f, Color.DarkBlue, Main.rand.NextFloat()); - bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); - - if (Main.rand.NextBool(20)) - bloodScale *= 2f; - - float randomSpeedMultiplier = Main.rand.NextFloat(1.25f, 2.25f); - Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; - bloodVelocity.Y -= 5f; - BloodParticle blood = new BloodParticle(Projectile.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); - GeneralParticleHandler.SpawnParticle(blood); - } - for (int i = 0; i <= 2; i++) - { - LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue : Color.RoyalBlue); - GeneralParticleHandler.SpawnParticle(spark); - LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.CornflowerBlue : Color.RoyalBlue); - GeneralParticleHandler.SpawnParticle(spark2); - } - } - } } } diff --git a/Projectiles/Ranged/MegalodonShot.cs b/Projectiles/Ranged/MegalodonShot.cs index cd5b63329e..c60f92e4ce 100644 --- a/Projectiles/Ranged/MegalodonShot.cs +++ b/Projectiles/Ranged/MegalodonShot.cs @@ -1,11 +1,8 @@ -using System.Composition.Hosting.Core; -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Particles; using Microsoft.Xna.Framework; using Terraria; -using Terraria.Audio; -using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged @@ -47,9 +44,9 @@ namespace CalamityMod.Projectiles.Ranged GeneralParticleHandler.SpawnParticle(spark); if (Main.rand.NextBool(3)) { - Color smokeColor = Color.MediumBlue; - Particle smoke = new HeavySmokeParticle(Projectile.Center, Projectile.velocity * Main.rand.NextFloat(-0.2f, -0.6f), smokeColor, 30, Main.rand.NextFloat(0.5f, 0.7f), 0.3f, Main.rand.NextFloat(-0.2f, 0.2f), false, required: true); - GeneralParticleHandler.SpawnParticle(smoke); + Dust dust = Dust.NewDustPerfect(Projectile.Center, Main.rand.NextBool(3) ? 45 : 56, -Projectile.velocity.RotatedByRandom(0.1f) * Main.rand.NextFloat(0.01f, 0.3f)); + dust.noGravity = true; + dust.scale = Main.rand.NextFloat(1.5f, 0.9f); } } } @@ -57,29 +54,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(Projectile.Center, Projectile.velocity, Projectile.width, Projectile.height); - for (int i = 0; i < 4; ++i) - { - int bloodLifetime = Main.rand.Next(22, 25); - float bloodScale = Main.rand.NextFloat(0.6f, 0.8f); - Color bloodColor = Color.Lerp(Color.RoyalBlue * 0.7f, Color.DarkBlue, Main.rand.NextFloat()); - bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); - - if (Main.rand.NextBool(20)) - bloodScale *= 2f; - - float randomSpeedMultiplier = Main.rand.NextFloat(1.25f, 2.25f); - Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; - bloodVelocity.Y -= 5f; - BloodParticle blood = new BloodParticle(Projectile.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); - GeneralParticleHandler.SpawnParticle(blood); - } - for (int i = 0; i <= 2; i++) - { - LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 2.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); - GeneralParticleHandler.SpawnParticle(spark); - LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 2.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); - GeneralParticleHandler.SpawnParticle(spark2); - } + OnHitEffects(); return true; } @@ -103,6 +78,23 @@ namespace CalamityMod.Projectiles.Ranged Player Owner = Main.player[Projectile.owner]; Owner.Calamity().sharkGunDamageScaling++; } + OnHitEffects(); + } + public override void OnHitPlayer(Player target, Player.HurtInfo info) + { + { + if (Projectile.numHits == 0) + { + Player Owner = Main.player[Projectile.owner]; + Owner.Calamity().sharkGunDamageScaling++; + } + target.AddBuff(ModContent.BuffType(), 60); + OnHitEffects(); + } + } + + private void OnHitEffects() + { for (int i = 0; i < 4; ++i) { int bloodLifetime = Main.rand.Next(22, 25); @@ -127,39 +119,5 @@ namespace CalamityMod.Projectiles.Ranged GeneralParticleHandler.SpawnParticle(spark2); } } - public override void OnHitPlayer(Player target, Player.HurtInfo info) - { - { - if (Projectile.numHits == 0) - { - Player Owner = Main.player[Projectile.owner]; - Owner.Calamity().sharkGunDamageScaling++; - } - target.AddBuff(ModContent.BuffType(), 60); - for (int i = 0; i < 4; ++i) - { - int bloodLifetime = Main.rand.Next(22, 25); - float bloodScale = Main.rand.NextFloat(0.6f, 0.8f); - Color bloodColor = Color.Lerp(Color.RoyalBlue * 0.7f, Color.DarkBlue, Main.rand.NextFloat()); - bloodColor = Color.Lerp(bloodColor, new Color(51, 22, 94), Main.rand.NextFloat(0.65f)); - - if (Main.rand.NextBool(20)) - bloodScale *= 2f; - - float randomSpeedMultiplier = Main.rand.NextFloat(1.25f, 2.25f); - Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 2 * randomSpeedMultiplier; - bloodVelocity.Y -= 5f; - BloodParticle blood = new BloodParticle(Projectile.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); - GeneralParticleHandler.SpawnParticle(blood); - } - for (int i = 0; i <= 2; i++) - { - LineParticle spark = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(0.18f, 0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); - GeneralParticleHandler.SpawnParticle(spark); - LineParticle spark2 = new LineParticle(Projectile.Center, -Projectile.velocity.RotatedBy(Main.rand.NextFloat(-0.18f, -0.44f)) * Main.rand.NextFloat(0.4f, 1.5f), false, 8, 0.9f, Main.rand.NextBool() ? Color.RoyalBlue * 0.7f : Color.MediumBlue); - GeneralParticleHandler.SpawnParticle(spark2); - } - } - } } } diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index 9d6744f2a3..ed656b7b67 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Projectiles.Ranged public int shotCounter = 0; public int framesBetweenShots = 0; public bool swapType = false; + public bool transEffects = false; public override Vector2 GunTipPosition => Projectile.Center - Vector2.UnitY + Vector2.UnitX.RotatedBy(Projectile.rotation) * Projectile.width * 0.5f; @@ -48,6 +49,8 @@ namespace CalamityMod.Projectiles.Ranged } //Set the scaling to 0 whenever it reloads Owner.Calamity().sharkGunDamageScaling = 0; + //Has a 1 in 100 chance to set transEffects to true, changing the shot colors to be replaced by the transgender pride flag colors + transEffects = Main.rand.NextBool(100); } if (Time >= 90) { @@ -93,7 +96,8 @@ namespace CalamityMod.Projectiles.Ranged } if (swapType) { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + //Has a 1 in 100 chance for the shot colors to be replaced by the transgender pride flag colors + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, transEffects ? 0f : 1f); } swapType = !swapType; shotCounter++; @@ -123,18 +127,10 @@ namespace CalamityMod.Projectiles.Ranged projectile.ai[1] = 5; projectile.velocity = Utils.DirectionTo(projectile.Center, Owner.Calamity().mouseWorld) * 12; } - //If on GFB, also turns ANY projectile on screen into a fish - if (Main.zenithWorld && projectile.type != ModContent.ProjectileType()) + if (Main.zenithWorld) { SoundStyle joke = new("CalamityMod/Sounds/Custom/GFB/FISH"); SoundEngine.PlaySound(joke with { Volume = 0.35f, MaxInstances = -1 }, projectile.Center); - for (int i = 0; i < 2; i++) - { - Projectile fishy = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), projectile.Center, (Vector2.One * 10).RotatedByRandom(100), ModContent.ProjectileType(), (int)(Projectile.damage + projectile.damage) * 3, Projectile.knockBack, Projectile.owner); - fishy.ai[2] = Main.rand.NextFloat(0.1f, 0.4f); - fishy.ai[1] = 5; - } - projectile.timeLeft = 1; } } } @@ -152,11 +148,6 @@ namespace CalamityMod.Projectiles.Ranged SpriteEffects flipSprite = (Projectile.spriteDirection * Owner.gravDir == -1) ? SpriteEffects.FlipHorizontally : SpriteEffects.None; Main.EntitySpriteDraw(texture, drawPosition, null, Projectile.GetAlpha(lightColor), drawRotation, rotationPoint, Projectile.scale * Owner.gravDir, flipSprite); - //This bit ensures that the eye glint at the moment the fish are unleashed is snapped to the gun - //Due to the holdout only existing for 1 frame then getting killed, it has to be tied to the newly spawned holdout - //This runs a check to see if any fish are present, then triggers the eye glint and sound - //This prevents the eye gint from showing up when there are no fish present, such as when the player first spawns the holdout - //A little hacky, but it works if (Owner.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { if (Time == 3) diff --git a/Projectiles/Ranged/VoidBlast.cs b/Projectiles/Ranged/VoidBlast.cs index f369071a6b..ffe4724727 100644 --- a/Projectiles/Ranged/VoidBlast.cs +++ b/Projectiles/Ranged/VoidBlast.cs @@ -49,6 +49,7 @@ namespace CalamityMod.Projectiles.Ranged GeneralParticleHandler.SpawnParticle(spark2); SparkParticle spark = new SparkParticle(Projectile.Center - Projectile.velocity.SafeNormalize(Vector2.UnitY) * 3.5f, Projectile.velocity * 0.01f, false, 5, 1.2f * Projectile.scale, Main.rand.NextBool() ? Color.Indigo : Color.BlueViolet); GeneralParticleHandler.SpawnParticle(spark); + spark.DrawLayer = Enums.GeneralDrawLayer.AfterEverything; } time++; } diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index b909764a62..051af8b0e5 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Ranged SoundEngine.PlaySound(SoundID.Item149, Projectile.Center); if (Main.netMode != NetmodeID.Server) { - string goreType = "MegalodonMag"; + string goreType = "VoidragonMag"; Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 18), Projectile.velocity.RotatedBy(2f * -Owner.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find(goreType).Type); } //Set the scaling to 0 whenever it reloads @@ -123,12 +123,6 @@ namespace CalamityMod.Projectiles.Ranged GeneralParticleHandler.SpawnParticle(center); center.DrawLayer = Enums.GeneralDrawLayer.AfterEverything; sparker3.DrawLayer = Enums.GeneralDrawLayer.AfterEverything; - if (swapType) - { - float rotation = Projectile.velocity.ToRotation(); - Particle pulse = new CustomPulse(GunTipPosition, shootVelocity, Color.Indigo, "CalamityMod/Particles/FlameExplosion", new Vector2(0.4f, 1f), rotation, 0f, 0.07f, 10, true, 1.4f); - GeneralParticleHandler.SpawnParticle(pulse); - } #endregion //How many frames between firing projectiles, and how far the gun moves backward to give the effect of recoil. Change this number to edit fire rate @@ -145,7 +139,7 @@ namespace CalamityMod.Projectiles.Ranged //Only eject casings from the gun if bullets are fired, preventing too many at once if (Main.netMode != NetmodeID.Server) { - string goreType = "MegalodonCasing"; + string goreType = "VoidragonCasing"; Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 18), -Projectile.velocity * 4f, Mod.Find(goreType).Type); } } @@ -207,10 +201,6 @@ namespace CalamityMod.Projectiles.Ranged firingBeam = true; if (firingBeam && beamTimer > 0) { - #region Visuals and Sounds - Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * 30; - #endregion - //If the player hasn't hit any shots, increase the multiplier from 0 to 1 to avoid the laser doing 0 damage if (Owner.Calamity().sharkGunDamageScaling == 0) { @@ -219,7 +209,7 @@ namespace CalamityMod.Projectiles.Ranged //Spawn the laser only once at the start of the timer. Change beamTimer to edit its lifetime //I fucking hate this laser by the way if (Main.myPlayer == Projectile.owner && beamTimer == 500) - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitX) * 5, ModContent.ProjectileType(), (int)(Projectile.damage * 0.03f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner, Projectile.whoAmI); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitX) * 5, ModContent.ProjectileType(), (int)(Projectile.damage * 0.05f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner, Projectile.whoAmI); beamTimer--; } else @@ -269,6 +259,15 @@ namespace CalamityMod.Projectiles.Ranged float ringScaling = MathF.Pow(1 - Utils.GetLerpValue(0, max, chargePulseTimer % max, true), 1.15f); float ringOpacity = 1 - MathF.Abs(Utils.GetLerpValue(0.5f, 1, ringScaling, false)); + for (int i = 0; i < 22; i++) + { + Color auraColor = Color.Lerp(Color.Indigo, Color.BlueViolet, i * 0.01f) with { A = 0 } * 0.6f; + Vector2 drawOffset = ((MathHelper.TwoPi * i / 22f).ToRotationVector2() * 5) + Main.rand.NextVector2Circular(7, 7); + Main.EntitySpriteDraw(texture, drawPosition + drawOffset, null, auraColor, drawRotation, rotationPoint, Projectile.scale * Main.rand.NextFloat(0.02f, 0.025f) * Owner.Calamity().sharkGunDamageScaling, flipSprite); + } + + Main.EntitySpriteDraw(texture, drawPosition, null, Projectile.GetAlpha(lightColor), drawRotation, rotationPoint, Projectile.scale * Owner.gravDir, flipSprite); + //Black aura for (int i = 0; i < 15; i++) Main.EntitySpriteDraw(texture4, GunTipPosition - Main.screenPosition, null, Color.Lerp(Color.Black, Color.Indigo with { A = 0 }, finalChargeVisual) * (0.35f + ringOpacity * 0.65f), drawRotation + Main.rand.NextFloat(-4f, 4f), texture4.Size() / 2, new Vector2(0.85f + i * 0.065f, 0.85f - i * 0.065f) * (Projectile.scale + finalChargeVisual * 1.8f) * Owner.gravDir * chargeVisual * (4.25f - ringScaling * 2.5f), flipSprite); @@ -279,18 +278,6 @@ namespace CalamityMod.Projectiles.Ranged //Pulse Rings Main.EntitySpriteDraw(texture3, GunTipPosition - Main.screenPosition, null, Color.BlueViolet with { A = 0 } * ringOpacity * 0.5f, drawRotation + Main.rand.NextFloat(-4f, 4f), texture3.Size() / 2, Projectile.scale * Owner.gravDir * chargeVisual * ringScaling * 0.5f, flipSprite); - for (int i = 0; i < 22; i++) - { - Color auraColor = Color.Lerp(Color.Indigo, Color.BlueViolet, i * 0.01f) with { A = 0 } * 0.6f; - Vector2 drawOffset = ((MathHelper.TwoPi * i / 22f).ToRotationVector2() * 5) + Main.rand.NextVector2Circular(7, 7); - Main.EntitySpriteDraw(texture, drawPosition + drawOffset, null, auraColor, drawRotation, rotationPoint, Projectile.scale * Main.rand.NextFloat(0.02f, 0.025f) * Owner.Calamity().sharkGunDamageScaling, flipSprite); - } - - Main.EntitySpriteDraw(texture, drawPosition, null, Projectile.GetAlpha(lightColor), drawRotation, rotationPoint, Projectile.scale * Owner.gravDir, flipSprite); - - if (firingBeam) - { - } return false; } } From 059594db710c2815e668b952684b6a66e535a4d5 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Wed, 27 May 2026 20:29:15 -0700 Subject: [PATCH 45/50] hopefully multiplayer compat + touches --- Projectiles/Ranged/BlahajBlast.cs | 4 +- Projectiles/Ranged/MegalodonHoldout.cs | 32 +++---- Projectiles/Ranged/SeadragonHoldout.cs | 83 ++++++++++++------- Projectiles/Ranged/VoidragonHoldout.cs | 31 ++++--- Systems/Collections/CalamityProjectileSets.cs | 3 +- 5 files changed, 93 insertions(+), 60 deletions(-) diff --git a/Projectiles/Ranged/BlahajBlast.cs b/Projectiles/Ranged/BlahajBlast.cs index d521569393..95aa8fe572 100644 --- a/Projectiles/Ranged/BlahajBlast.cs +++ b/Projectiles/Ranged/BlahajBlast.cs @@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Ranged { target.AddBuff(ModContent.BuffType(), 60); //Only spawn rocket on the first hit - if (Projectile.numHits == 0) + if (Projectile.numHits == 0 && Main.myPlayer == Projectile.owner) { Player Owner = Main.player[Projectile.owner]; Projectile fishy = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center + Main.rand.NextVector2Circular(150, 150), Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 1.5f), Projectile.knockBack, Projectile.owner); @@ -103,7 +103,7 @@ namespace CalamityMod.Projectiles.Ranged { target.AddBuff(ModContent.BuffType(), 60); //Only spawn rocket on the first hit - if (Projectile.numHits == 0) + if (Projectile.numHits == 0 && Main.myPlayer == Projectile.owner) { Player Owner = Main.player[Projectile.owner]; Projectile fishy = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center + Main.rand.NextVector2Circular(150, 150), Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 1.5f), Projectile.knockBack, Projectile.owner); diff --git a/Projectiles/Ranged/MegalodonHoldout.cs b/Projectiles/Ranged/MegalodonHoldout.cs index 49e300cf0e..f6034ee9d6 100644 --- a/Projectiles/Ranged/MegalodonHoldout.cs +++ b/Projectiles/Ranged/MegalodonHoldout.cs @@ -75,23 +75,26 @@ namespace CalamityMod.Projectiles.Ranged //Here we detect which ammo the bullets will use Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _); //Alternate between shooting bullets and water streams. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier - if (!swapType) + if (Main.myPlayer == Projectile.owner) { - Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); - CalamityGlobalProjectile cgp = scalingShot.Calamity(); - cgp.sharkBullets = true; - //Only eject casings from the gun if bullets are fired, preventing too many at once - if (Main.netMode != NetmodeID.Server) + if (!swapType) { - string goreType = "MegalodonCasing"; - Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 18), -Projectile.velocity * 4f, Mod.Find(goreType).Type); + Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); + CalamityGlobalProjectile cgp = scalingShot.Calamity(); + cgp.sharkBullets = true; + //Only eject casings from the gun if bullets are fired, preventing too many at once + if (Main.netMode != NetmodeID.Server) + { + string goreType = "MegalodonCasing"; + Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 18), -Projectile.velocity * 4f, Mod.Find(goreType).Type); + } } + if (swapType) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + } + swapType = !swapType; } - if (swapType) - { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); - } - swapType = !swapType; shotCounter++; //Allow a pause before firing the rocket. This allows the final bullet a chance to hit before the rocket is fired. Lowering this number reduces the delay, but may also cause the gun to become inconsistent if (shotCounter == 30) @@ -143,7 +146,8 @@ namespace CalamityMod.Projectiles.Ranged Owner.Calamity().sharkGunDamageScaling++; } //Fire the rocket. Damage is 50% of base, multiplied by how many shots the player hits - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); + if (Main.myPlayer == Projectile.owner) + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5f) * Owner.Calamity().sharkGunDamageScaling, Projectile.knockBack, Projectile.owner); //After firing the rocket, reset all variables to allow left click to be held down Time = 2; diff --git a/Projectiles/Ranged/SeadragonHoldout.cs b/Projectiles/Ranged/SeadragonHoldout.cs index ed656b7b67..a0df628fb3 100644 --- a/Projectiles/Ranged/SeadragonHoldout.cs +++ b/Projectiles/Ranged/SeadragonHoldout.cs @@ -1,13 +1,15 @@ -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Dusts; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; +using static Terraria.ModLoader.ModContent; using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; using Terraria.GameContent; -using Terraria.ModLoader; using Terraria.ID; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -82,24 +84,28 @@ namespace CalamityMod.Projectiles.Ranged //Here we detect which ammo the bullets will use Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _); //Alternate between shooting bullets and water streams. Despite not having damage scaling, the fish gain movement speed based on the scaling, so we still need a Global Projectile - if (!swapType) + if (Main.myPlayer == Projectile.owner) { - Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); - CalamityGlobalProjectile cgp = scalingShot.Calamity(); - cgp.sharkBullets = true; - //Only eject casings from the gun if bullets are fired, preventing too many at once - if (Main.netMode != NetmodeID.Server) + if (!swapType) { - string goreType = "SeadragonCasing"; - Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 6), -Projectile.velocity * 4f, Mod.Find(goreType).Type); + Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); + CalamityGlobalProjectile cgp = scalingShot.Calamity(); + cgp.sharkBullets = true; + //Only eject casings from the gun if bullets are fired, preventing too many at once + if (Main.netMode != NetmodeID.Server) + { + string goreType = "SeadragonCasing"; + Vector2 spawnOffset = new Vector2(0, -11f); + Vector2 spawnPosition = Projectile.Center + (-Projectile.velocity * 5) + spawnOffset; + Gore.NewGore(Projectile.GetSource_FromAI(), spawnPosition, -Projectile.velocity * 4f, Mod.Find(goreType).Type); + } } + if (swapType) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, transEffects ? 0f : 1f); + } + swapType = !swapType; } - if (swapType) - { - //Has a 1 in 100 chance for the shot colors to be replaced by the transgender pride flag colors - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, transEffects ? 0f : 1f); - } - swapType = !swapType; shotCounter++; //Allow a pause before unleashing the fish. This allows the final bullet a chance to hit before the fish are unleashed. Lowering this number reduces the delay, but may also cause the gun to become inconsistent if (shotCounter == 50) @@ -134,6 +140,37 @@ namespace CalamityMod.Projectiles.Ranged } } } + //If any fish projectiles are present, create an eye shine effect as they rush the enemy + if (Owner.ownedProjectileCounts[ModContent.ProjectileType()] > 0) + { + if (Time == 3) + { + SoundStyle hitSound = new("CalamityMod/Sounds/Item/SevensStrikerTriples"); + SoundEngine.PlaySound(hitSound with { Volume = 0.5f, Pitch = 0.8f }, Projectile.Center); + for (int b = 0; b < 12; b++) + { + int star = 4; + for (int i = 0; i < star; i++) + { + float power = Main.rand.NextFloat(0.2f, 1f); + Vector2 vel = (MathHelper.TwoPi * i / star).ToRotationVector2().RotatedBy(Projectile.rotation) * 6f; + float size = (0.6f) * Main.rand.NextFloat(0.9f, 1.1f) * (1.1f - power); + int dustStyle = DustType(); + Dust dust = Dust.NewDustPerfect(GunTipPosition + (-Projectile.velocity.RotatedBy(0.1 * Projectile.direction) * 29f), dustStyle); + dust.scale = size; + dust.velocity = vel * power * (0.7f); + dust.noGravity = true; + dust.color = Color.Lerp(Color.Goldenrod, Color.OrangeRed, 0.5f) with { A = 1 }; + + if (b == 0) + { + Particle aura = new CustomSpark(GunTipPosition + (-Projectile.velocity.RotatedBy(0.1 * Projectile.direction) * 29f), Vector2.Zero, "CalamityMod/Particles/BloomCircle", false, 13, 0.2f, Color.Lerp(Color.Goldenrod, Color.OrangeRed, 0.5f) with { A = 1 }, new Vector2(0.65f, 1f), glowCenter: true, glowOpacity: 0.8f, glowCenterScale: 0.85f, extraRotation: Projectile.rotation + (i % 2 == 0 ? MathHelper.PiOver2 : 0), shrinkSpeed: 0.1f); + GeneralParticleHandler.SpawnParticle(aura); + } + } + } + } + } Time++; } public override bool PreDraw(ref Color lightColor) @@ -141,26 +178,12 @@ namespace CalamityMod.Projectiles.Ranged if (Time < 2) return false; Texture2D texture = TextureAssets.Projectile[Type].Value; - Texture2D texture2 = ModContent.Request("CalamityMod/Particles/ThinSparkle").Value; Vector2 drawPosition = Projectile.Center - Main.screenPosition; float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); Vector2 rotationPoint = texture.Size() * 0.5f; SpriteEffects flipSprite = (Projectile.spriteDirection * Owner.gravDir == -1) ? SpriteEffects.FlipHorizontally : SpriteEffects.None; Main.EntitySpriteDraw(texture, drawPosition, null, Projectile.GetAlpha(lightColor), drawRotation, rotationPoint, Projectile.scale * Owner.gravDir, flipSprite); - if (Owner.ownedProjectileCounts[ModContent.ProjectileType()] > 0) - { - if (Time == 3) - { - SoundStyle hitSound = new("CalamityMod/Sounds/Item/SevensStrikerTriples"); - SoundEngine.PlaySound(hitSound with { Volume = 0.5f, Pitch = 0.8f }, Projectile.Center); - } - if (Time > 2 && Time < 16) - { - for (int i = 0; i <= 2; i++) - Main.EntitySpriteDraw(texture2, GunTipPosition - Main.screenPosition + (-Projectile.velocity.RotatedBy(0.1 * Projectile.direction) * 30f), null, Color.Lerp(Color.Goldenrod, Color.OrangeRed, 0.5f) with { A = 1 }, Time * 0.25f, texture2.Size() * 0.5f, 1.1f, flipSprite); - } - } return false; } } diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index 051af8b0e5..8cb5c28875 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -131,23 +131,28 @@ namespace CalamityMod.Projectiles.Ranged //Here we detect which ammo the bullets will use Owner.PickAmmo(Owner.HeldItem, out int bulletAMMO, out float SpeedNoUse, out int bulletDamage, out float kBackNoUse, out _); //Alternate between shooting bullets and void blasts. We seperate it into two different projectiles due to the bullets needing to use a Global Projectile to track the damage multiplier - if (!swapType) + if (Main.myPlayer == Projectile.owner) { - Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); - CalamityGlobalProjectile cgp = scalingShot.Calamity(); - cgp.sharkBullets = true; - //Only eject casings from the gun if bullets are fired, preventing too many at once - if (Main.netMode != NetmodeID.Server) + if (!swapType) { - string goreType = "VoidragonCasing"; - Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center + (-Projectile.velocity * 18), -Projectile.velocity * 4f, Mod.Find(goreType).Type); + Projectile scalingShot = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), bulletAMMO, Projectile.damage, Projectile.knockBack, Projectile.owner); + CalamityGlobalProjectile cgp = scalingShot.Calamity(); + cgp.sharkBullets = true; + //Only eject casings from the gun if bullets are fired, preventing too many at once + if (Main.netMode != NetmodeID.Server) + { + string goreType = "VoidragonCasing"; + Vector2 spawnOffset = new Vector2(0, -13f); + Vector2 spawnPosition = Projectile.Center + (-Projectile.velocity * 18) + spawnOffset; + Gore.NewGore(Projectile.GetSource_FromAI(), spawnPosition, -Projectile.velocity * 4f, Mod.Find(goreType).Type); + } } + if (swapType) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + } + swapType = !swapType; } - if (swapType) - { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity.RotatedByRandom(MathHelper.ToRadians(1.5f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); - } - swapType = !swapType; shotCounter++; //Allow a pause before firing the laser. The long delay lets the laser's charge sound play in full if (shotCounter == 50) diff --git a/Systems/Collections/CalamityProjectileSets.cs b/Systems/Collections/CalamityProjectileSets.cs index 76747a373c..761ef5f3bb 100644 --- a/Systems/Collections/CalamityProjectileSets.cs +++ b/Systems/Collections/CalamityProjectileSets.cs @@ -88,7 +88,8 @@ namespace CalamityMod.Systems.Collections public static bool[] DoesNotGetHomingWithGrapeBeer = Factory.CreateNamedSet("DoesNotGetHomingWithGrapeBeer") .Description("Prevents this projectile from receiving homing from Grape Beer.") .RegisterBoolSet(ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), - ProjectileType(), ProjectileType(), ProjectileType()); + ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), + ProjectileType(), ProjectileType()); ///

/// If for a projectile type, then that projectile will be unable to trigger Daawnlight Spirit Origin's bullseyes.
From f4c059ad09bdb3ffe03ed7187dd101a2850d8284 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Wed, 27 May 2026 20:54:17 -0700 Subject: [PATCH 46/50] slightly adjusted voidragon beam sounds --- Projectiles/Ranged/VoidragonHoldout.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index 8cb5c28875..f0585ce39d 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -200,7 +200,7 @@ namespace CalamityMod.Projectiles.Ranged } if (SoundEngine.TryGetActiveSound(soundSlot, out var sSound) && sSound.IsPlaying) { - sSound.Pitch = 1f - 1.5f * MathF.Pow(beamCompletion, 4f) + 0.9f * beamCompletion; + sSound.Pitch = 1f - 1.5f * MathF.Pow(beamCompletion, 10f) + 0.6f * beamCompletion; sSound.Volume = 1f - 1 * MathF.Pow(beamCompletion, 10f); } firingBeam = true; From 97174fd3d7aaecc0588e389753bc2dc45d2341eb Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Wed, 27 May 2026 21:33:20 -0700 Subject: [PATCH 47/50] Deleted unused projectiles --- Items/Weapons/Ranged/Megalodon.cs | 4 +- Projectiles/Ranged/SeaDragonMuzzleBlast.cs | 72 ---------------- Projectiles/Ranged/VoidragonTentacle.cs | 97 ---------------------- 3 files changed, 2 insertions(+), 171 deletions(-) delete mode 100644 Projectiles/Ranged/SeaDragonMuzzleBlast.cs delete mode 100644 Projectiles/Ranged/VoidragonTentacle.cs diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index e4fe7564e0..e2ef943057 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -54,8 +54,8 @@ namespace CalamityMod.Items.Weapons.Ranged CreateRecipe(). AddIngredient(ItemID.Megashark). AddIngredient(). - AddIngredient(10). - AddIngredient(10). + AddIngredient(15). + AddIngredient(10). AddTile(TileID.MythrilAnvil). Register(); } diff --git a/Projectiles/Ranged/SeaDragonMuzzleBlast.cs b/Projectiles/Ranged/SeaDragonMuzzleBlast.cs deleted file mode 100644 index f8279c2f1d..0000000000 --- a/Projectiles/Ranged/SeaDragonMuzzleBlast.cs +++ /dev/null @@ -1,72 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - - -namespace CalamityMod.Projectiles.Ranged -{ - public class SeaDragonMuzzleBlast : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Ranged"; - public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; - - public override void SetDefaults() - { - Projectile.width = 80; - Projectile.height = 80; - Projectile.friendly = true; - Projectile.DamageType = DamageClass.Ranged; - Projectile.ignoreWater = true; - Projectile.penetrate = -1; - Projectile.tileCollide = false; - Projectile.timeLeft = 8; - Projectile.MaxUpdates = 4; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = -1; - } - - public override void AI() - { - // Belching smoke and flames copied from Handheld Tank with a few edits (lasts 8 frames, but all happens at once due to extra updates) - for (int i = 0; i < 30; ++i) - { - // Pick a random type of fire (there's a little water mixed in) - int dustID; - switch (Main.rand.Next(6)) - { - case 0: - dustID = 170; - break; - case 1: - case 2: - dustID = 174; - break; - default: - dustID = 33; - break; - } - - // Choose a random speed and angle to belch out the fire - float dustSpeed = Main.rand.NextFloat(3.0f, 13.0f); - float angleRandom = 0.07f; - Vector2 dustVel = new Vector2(dustSpeed, 0.0f).RotatedBy(Projectile.velocity.ToRotation()); - dustVel = dustVel.RotatedBy(-angleRandom); - dustVel = dustVel.RotatedByRandom(2.0f * angleRandom); - - // Pick a size for the fire particle - float scale = Main.rand.NextFloat(0.7f, 1.8f); - - // Actually spawn the fire - int idx = Dust.NewDust(Projectile.Center, 1, 1, dustID, dustVel.X, dustVel.Y, 0, default, scale); - Main.dust[idx].noGravity = true; - Main.dust[idx].position = Projectile.Center; - } - } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(BuffID.OnFire3, 240); - } - } -} diff --git a/Projectiles/Ranged/VoidragonTentacle.cs b/Projectiles/Ranged/VoidragonTentacle.cs deleted file mode 100644 index d0978a16c4..0000000000 --- a/Projectiles/Ranged/VoidragonTentacle.cs +++ /dev/null @@ -1,97 +0,0 @@ -using System; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Ranged -{ - public class VoidragonTentacle : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Ranged"; - public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; - - public override void SetDefaults() - { - Projectile.width = 40; - Projectile.height = 40; - Projectile.ignoreWater = true; - Projectile.friendly = true; - Projectile.penetrate = -1; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 5; - Projectile.MaxUpdates = 3; - Projectile.DamageType = DamageClass.Ranged; - Projectile.extraUpdates = 1; - } - - public override void AI() - { - Projectile.localAI[1]++; - if (Projectile.velocity.X != Projectile.velocity.X) - { - if (Math.Abs(Projectile.velocity.X) < 1f) - { - Projectile.velocity.X = -Projectile.velocity.X; - } - else - { - Projectile.Kill(); - } - } - if (Projectile.velocity.Y != Projectile.velocity.Y) - { - if (Math.Abs(Projectile.velocity.Y) < 1f) - { - Projectile.velocity.Y = -Projectile.velocity.Y; - } - else - { - Projectile.Kill(); - } - } - Vector2 center10 = Projectile.Center; - Projectile.scale = 1f - Projectile.localAI[0]; - Projectile.width = (int)(20f * Projectile.scale); - Projectile.height = Projectile.width; - Projectile.position.X = center10.X - (float)(Projectile.width / 2); - Projectile.position.Y = center10.Y - (float)(Projectile.height / 2); - if (Projectile.localAI[0] < 0.1f) - { - Projectile.localAI[0] += 0.01f; - } - else - { - Projectile.localAI[0] += 0.025f; - } - if (Projectile.localAI[0] >= 0.95f) - { - Projectile.Kill(); - } - Projectile.velocity.X = Projectile.velocity.X + Projectile.ai[0] * 1.5f; - Projectile.velocity.Y = Projectile.velocity.Y + Projectile.ai[1] * 1.5f; - if (Projectile.velocity.Length() > 16f) - { - Projectile.velocity.Normalize(); - Projectile.velocity *= 16f; - } - Projectile.ai[0] *= 1.05f; - Projectile.ai[1] *= 1.05f; - if (Projectile.scale < 1f && Projectile.localAI[1] > 5f) - { - int dustAmount = 0; - while ((float)dustAmount < Projectile.scale * 10f) - { - int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.PurpleTorch, Projectile.velocity.X, Projectile.velocity.Y, 100, default, 1.3f); - Main.dust[dust].position = (Main.dust[dust].position + Projectile.Center) / 2f; - Main.dust[dust].noGravity = true; - Main.dust[dust].velocity *= 0.1f; - Main.dust[dust].velocity -= Projectile.velocity * (1.1f - Projectile.scale); - Main.dust[dust].fadeIn = (float)(125 + Projectile.owner); - Main.dust[dust].scale += Projectile.scale * 0.75f; - dustAmount++; - } - } - } - } -} From 234e770ad232a202ba31ddf09a1c71ec12fa60fd Mon Sep 17 00:00:00 2001 From: Xyk Date: Mon, 1 Jun 2026 12:44:53 -0700 Subject: [PATCH 48/50] Multiplayer fix --- Projectiles/Ranged/SeaDragonRocket.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index 5ea7e67898..40aae90c70 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -43,8 +43,7 @@ namespace CalamityMod.Projectiles.Ranged Lighting.AddLight(Projectile.Center, Color.Cyan.ToVector3() * 0.5f); Player Owner = Main.player[Projectile.owner]; Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; - if (Owner.ownedProjectileCounts[ModContent.ProjectileType()] <= 0 && !attacking) // If no holdout exists and not attacking then die - Projectile.Kill(); + if (attacking) // Fly at the enemy { NPC chosenTarget = Projectile.Center.ClosestNPCAt(600); @@ -60,6 +59,8 @@ namespace CalamityMod.Projectiles.Ranged Projectile.velocity = Projectile.velocity * 0.97f + moveToEnemy * moveSpeed; else Projectile.velocity *= 0.9f; + if (time % 2 == 0) + Projectile.netUpdate = true; } if (Main.rand.NextBool(10)) { @@ -87,6 +88,9 @@ namespace CalamityMod.Projectiles.Ranged Projectile.scale += 0.05f; time++; + + if (Owner.ownedProjectileCounts[ModContent.ProjectileType()] <= 0 && !attacking) // If no holdout exists and not attacking then die + Projectile.Kill(); } public override void OnSpawn(IEntitySource source) From 8d731bce52c08354f6ee3d2be6771cb5b233d66c Mon Sep 17 00:00:00 2001 From: Cameron Ewell Date: Mon, 1 Jun 2026 19:40:24 -0400 Subject: [PATCH 49/50] Improve tooltips of Megalodon line Co-authored-by: Cameron Ewell --- .../en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index e127734835..cc13c74109 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1074,9 +1074,9 @@ Seadragon: { DisplayName: Seadragon Tooltip: ''' - Loads a 50 round deluge of alternating bullets and pressurized water jets + Loads a 50 round magazine of alternating bullets and pressurized water jets Water jets summon small fish that swim around you - Once your mag runs empty, all fish rush towards the cursor before reloading + When all bullets are fired, summoned fish swarm the cursor while you reload {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -1488,9 +1488,9 @@ Voidragon: { DisplayName: Voidragon Tooltip: ''' - Loads a 50 round onslaught of alternating bullets and concentrated void blasts - Once your mag runs empty, the gun unleashes a jet of abyssal fire that annihilates anything in its path - The abyssal fire and lingering flames grow increasingly powerful with the amount of shots hit + Loads a 50 round magazine of alternating bullets and concentrated void blasts + When all bullets are fired, the gun unleashes an enormous jet of abyssal fire + The power of the abyssal fire scales with the amount of shots hit {$CommonItemTooltip.PercentChanceToSaveAmmo} [c/620BB0:'Fade to black'] ''' From 6b48b117abb625be9ce166236ac31b79c7681f58 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Mon, 1 Jun 2026 16:42:36 -0700 Subject: [PATCH 50/50] Fixes --- Items/Weapons/Ranged/Voidragon.cs | 8 ++------ Projectiles/Ranged/MegalodonShot.cs | 2 +- Projectiles/Ranged/VoidragonHoldout.cs | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index d0d36acbda..b1594cb421 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -11,7 +11,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - [LegacyName("Megafleet")] + // Long live Megafleet. You will be missed. Maybe one day we can revive you. + [LegacyName("Megafleet")] public class Voidragon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; @@ -19,11 +20,6 @@ namespace CalamityMod.Items.Weapons.Ranged public static int AmmoSavedPercent = 66; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); - public override void SetStaticDefaults() - { - // Long live Megafleet. You will be missed. Maybe one day we can revive you. - } - public override void SetDefaults() { Item.width = 96; diff --git a/Projectiles/Ranged/MegalodonShot.cs b/Projectiles/Ranged/MegalodonShot.cs index c60f92e4ce..12989d8278 100644 --- a/Projectiles/Ranged/MegalodonShot.cs +++ b/Projectiles/Ranged/MegalodonShot.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { - if (Main.rand.NextBool(2)) + if (Main.rand.NextBool()) { Gore bubble = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * 0.2f + Main.rand.NextVector2Circular(1f, 1f), 411); bubble.timeLeft = 9 + Main.rand.Next(7); diff --git a/Projectiles/Ranged/VoidragonHoldout.cs b/Projectiles/Ranged/VoidragonHoldout.cs index f0585ce39d..2d9c76aa10 100644 --- a/Projectiles/Ranged/VoidragonHoldout.cs +++ b/Projectiles/Ranged/VoidragonHoldout.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Ranged if (SoundEngine.TryGetActiveSound(soundSlot, out var ChargeSound) && ChargeSound.IsPlaying) ChargeSound.Position = Projectile.Center; - //Spawn dust on the holdout's eyes based on the amount of damage scaling. Currently only works from one side + //Spawn dust on the holdout's eyes based on the amount of damage scaling. for (int i = 0; i < 2; i++) { int dustType = ModContent.DustType();