1 - Converted all non-ogg sounds to ogg
2 - Removed entries in CommonCalamitySounds that weren't actually common
This commit is contained in:
1 parent
87eb3912bd
commit
77e00da476
26 files changed
+15
-17
No files matched your search
@@ -424,7 +424,10 @@ namespace CalamityMod.Items.Accessories
|
||||
bool playerCrossedSides = Math.Sign(Segments[SimulationResolution].oldPosition.X - Segments[0].position.X) != Math.Sign(Segments[SimulationResolution].position.X - Segments[0].position.X);
|
||||
float swingSpeed = (Segments[SimulationResolution].oldPosition - Segments[SimulationResolution].position).Length();
|
||||
if (swingSpeed > 6f && playerCrossedSides)
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.LouderSwingWoosh with { Volume = CommonCalamitySounds.LouderSwingWoosh.Volume * (Math.Clamp((swingSpeed - 6f) / 12f, 0, 1)) }, Player.Center);
|
||||
{
|
||||
SoundStyle swing = new SoundStyle("CalamityMod/Sounds/Custom/LoudSwingWoosh") with { Volume = Math.Clamp((swingSpeed - 6f) / 12f, 0, 1) };
|
||||
SoundEngine.PlaySound(swing, Player.Center);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.UseSound = CommonCalamitySounds.PlasmaBlastSound;
|
||||
Item.UseSound = new SoundStyle("CalamityMod/Sounds/Item/PlasmaBlast");
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
Item.Calamity().donorItem = true;
|
||||
|
||||
@@ -815,12 +815,8 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
if (NPC.soundDelay == 0 && NPC.life >= NPC.lifeMax * 0.05f)
|
||||
{
|
||||
NPC.soundDelay = 8;
|
||||
float pitchVar = 0;
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
pitchVar = Main.rand.Next(-60, 41) * 0.01f;
|
||||
}
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.OtherwordlyHitSound with { Pitch = CommonCalamitySounds.OtherwordlyHitSound.Pitch + pitchVar }, NPC.Center);
|
||||
float pitchVar = Main.zenithWorld ? 0.4f : 0;
|
||||
SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/NPCHit/OtherworldlyHit") with { PitchVariance = pitchVar }, NPC.Center);
|
||||
}
|
||||
|
||||
for (int k = 0; k < 5; k++)
|
||||
|
||||
@@ -155,6 +155,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
// Sounds
|
||||
public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/DevourerSpawn");
|
||||
public static readonly SoundStyle AttackSound = new("CalamityMod/Sounds/Custom/DevourerAttack");
|
||||
public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/NPCHit/OtherworldlyHit");
|
||||
public static readonly SoundStyle DeathAnimationSound = new("CalamityMod/Sounds/NPCKilled/DevourerDeath");
|
||||
public static readonly SoundStyle DeathExplosionSound = new("CalamityMod/Sounds/NPCKilled/DevourerDeathImpact");
|
||||
public static readonly SoundStyle DeathSegmentSound = new("CalamityMod/Sounds/NPCKilled/DevourerSegmentBreak", 4);
|
||||
@@ -2735,7 +2736,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
if (NPC.soundDelay == 0)
|
||||
{
|
||||
NPC.soundDelay = 8;
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.OtherwordlyHitSound with { Pitch = CommonCalamitySounds.OtherwordlyHitSound.Pitch + extrapitch }, NPC.Center);
|
||||
SoundEngine.PlaySound(HitSound with { Pitch = HitSound.Pitch + extrapitch }, NPC.Center);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
|
||||
@@ -385,7 +385,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
{
|
||||
NPC.soundDelay = 8;
|
||||
float extrapitch = Main.zenithWorld ? 0.3f : 0f;
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.OtherwordlyHitSound with { Pitch = CommonCalamitySounds.OtherwordlyHitSound.Pitch + extrapitch }, NPC.Center);
|
||||
SoundEngine.PlaySound(DevourerofGodsHead.HitSound with { Pitch = DevourerofGodsHead.HitSound.Pitch + extrapitch }, NPC.Center);
|
||||
}
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
|
||||
@@ -554,7 +554,8 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
if (calamityGlobalNPC.newAI[0] == chargePhaseGateValue - 70)
|
||||
{
|
||||
Vector2 soundCenter = Main.player[NPC.target].Center;
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.LightningTelegraph, soundCenter);
|
||||
SoundStyle lightning = new("CalamityMod/Sounds/Custom/LightningTelegraph") { Volume = 0.7f };
|
||||
SoundEngine.PlaySound(lightning, soundCenter);
|
||||
}
|
||||
if (calamityGlobalNPC.newAI[0] >= chargePhaseGateValue)
|
||||
{
|
||||
|
||||
@@ -79,7 +79,8 @@ namespace CalamityMod.Projectiles.Summon.MirrorofKalandraMinions
|
||||
// Repeating swing sound.
|
||||
if (Projectile.soundDelay <= 0)
|
||||
{
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.LouderSwingWoosh with { Pitch = -.8f, PitchVariance = 1f, Volume = .6f }, Projectile.Center);
|
||||
SoundStyle swing = new SoundStyle("CalamityMod/Sounds/Custom/LoudSwingWoosh") with { Pitch = -.8f, PitchVariance = 1f, Volume = .6f };
|
||||
SoundEngine.PlaySound(swing, Projectile.Center);
|
||||
Projectile.soundDelay = 15;
|
||||
Projectile.netUpdate = true;
|
||||
}
|
||||
|
||||
@@ -19,14 +19,10 @@ namespace CalamityMod.Sounds
|
||||
public static readonly SoundStyle LargeWeaponFireSound = new("CalamityMod/Sounds/Item/LargeWeaponFire");
|
||||
public static readonly SoundStyle LaserCannonSound = new("CalamityMod/Sounds/Item/LaserCannon") { Volume = 0.85f };
|
||||
public static readonly SoundStyle LightningSound = new("CalamityMod/Sounds/Custom/LightningStrike") { Volume = 1.6f }; // This is just the regular SoundID.Thunder sound, except its only the first variant
|
||||
public static readonly SoundStyle LightningTelegraph = new("CalamityMod/Sounds/Custom/LightningTelegraph") { Volume = 0.7f }; // This is just the regular SoundID.Thunder sound, except its only the fifth variant
|
||||
public static readonly SoundStyle LouderPhantomPhoenix = new("CalamityMod/Sounds/Item/LouderPhantomPhoenix", 3);
|
||||
public static readonly SoundStyle LouderSwingWoosh = new("CalamityMod/Sounds/Custom/LoudSwingWoosh");
|
||||
|
||||
public static readonly SoundStyle MeatySlashSound = new("CalamityMod/Sounds/Custom/MeatySlash");
|
||||
|
||||
public static readonly SoundStyle OtherwordlyHitSound = new("CalamityMod/Sounds/NPCHit/OtherworldlyHit");
|
||||
|
||||
public static readonly SoundStyle PlagueBoomSound = new("CalamityMod/Sounds/Custom/PlagueSounds/PlagueBoom", 4);
|
||||
public static readonly SoundStyle PlasmaBlastSound = new("CalamityMod/Sounds/Item/PlasmaBlast");
|
||||
public static readonly SoundStyle PlasmaBoltSound = new("CalamityMod/Sounds/Item/PlasmaBolt") { Volume = 0.8f };
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user