New sounds

This commit is contained in:
Xhack committed 2024-08-05 09:40:58 -04:00
1 parent c7fbf5b11c
commit 7ea74ab40f
6 files changed
+13 -1

No files matched your search

@@ -1034,6 +1034,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
{
modNPC.RoarSoundSlot = SoundEngine.PlaySound(OldDuke.OldDuke.RoarSound, npc.Center);
SoundEngine.PlaySound(OldDuke.OldDuke.VortexSpawnSound, npc.Center);
int type = ModContent.ProjectileType<OldDukeVortex>();
int damage = npc.GetProjectileDamage(type);
Vector2 vortexSpawn = npc.Center + npc.velocity.RotatedBy(MathHelper.PiOver2 * -npc.direction) * spinTime / MathHelper.TwoPi;
@@ -1564,6 +1565,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
{
modNPC.RoarSoundSlot = SoundEngine.PlaySound(OldDuke.OldDuke.RoarSound, npc.Center);
SoundEngine.PlaySound(OldDuke.OldDuke.VortexSpawnSound, npc.Center);
int type = ModContent.ProjectileType<OldDukeVortex>();
int damage = npc.GetProjectileDamage(type);
Vector2 vortexSpawn = npc.Center + npc.velocity.RotatedBy(MathHelper.PiOver2 * -npc.direction) * spinTime / MathHelper.TwoPi;
@@ -1646,7 +1648,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
static void DoChargeBurst(NPC npc, int phase)
{
SoundEngine.PlaySound(OldDuke.OldDuke.DashSound, npc.Center);
SoundEngine.PlaySound(phase > 1 ? OldDuke.OldDuke.DashSoundP3 : OldDuke.OldDuke.DashSound, npc.Center);
if (phase > 1)
{
+3
View File
@@ -47,6 +47,9 @@ namespace CalamityMod.NPCs.OldDuke
public static readonly SoundStyle HuffSound = new("CalamityMod/Sounds/Custom/OldDukeHuff");
public static readonly SoundStyle RoarSound = new("CalamityMod/Sounds/Custom/OldDukeRoar");
public static readonly SoundStyle VomitSound = new("CalamityMod/Sounds/Custom/OldDukeVomit");
public static readonly SoundStyle VortexSpawnSound = new("CalamityMod/Sounds/Custom/OldDukeVortexSpawn");
public static readonly SoundStyle DashSound = new("CalamityMod/Sounds/Custom/OldDukeDash");
public static readonly SoundStyle DashSoundP3 = new("CalamityMod/Sounds/Custom/OldDukeDashP3");
public SlotId RoarSoundSlot;
+7
View File
@@ -1,8 +1,11 @@
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Dusts;
using CalamityMod.NPCs.OldDuke;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -57,6 +60,10 @@ namespace CalamityMod.Projectiles.Boss
Main.dust[acid].velocity *= 0f;
}
public override void OnSpawn(IEntitySource source)
{
}
public override void OnKill(int timeLeft)
{
SoundEngine.PlaySound(SoundID.NPCDeath12, Projectile.Center);
Binary file not shown.
Binary file not shown.
Binary file not shown.