Damage and Gaster Blaster audio split
This commit is contained in:
1 parent
00e367dd29
commit
d0d05de41b
5 files changed
+6
-2
No files matched your search
@@ -694,6 +694,7 @@ namespace CalamityMod
|
||||
{ new Tuple<int, int>(NPCID.DukeFishron, ProjectileID.Sharknado), new int[] { 80, 100, 184, 200, 270 } }, // 150 in non-rev master mode
|
||||
{ new Tuple<int, int>(NPCID.DukeFishron, ProjectileID.Cthulunado), new int[] { 160, 200, 232, 248, 348 } }, // 300 in non-rev master mode
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerBody>(), ModContent.ProjectileType<RavagerBlaster>()), new int[] { 90, 144, 172, 188, 258 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead>(), ModContent.ProjectileType<ScavengerNuke>()), new int[] { 120, 180, 208, 224, 312 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead2>(), ModContent.ProjectileType<ScavengerLaser>()), new int[] { 90, 144, 172, 188, 258 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead2>(), ModContent.ProjectileType<ScavengerNuke>()), new int[] { 120, 180, 208, 224, 312 } },
|
||||
|
||||
@@ -10,7 +10,8 @@ namespace CalamityMod.Projectiles.Boss
|
||||
public class RavagerBlaster : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/NPCs/Ravager/RavagerHead";
|
||||
public static readonly SoundStyle SANS = new("CalamityMod/Sounds/Custom/Ravager/GasterBlaster");
|
||||
public static readonly SoundStyle SANSCharge = new("CalamityMod/Sounds/Custom/Ravager/GasterBlasterCharge");
|
||||
public static readonly SoundStyle SANSFire = new("CalamityMod/Sounds/Custom/Ravager/GasterBlasterFire");
|
||||
public Vector2 storedVelocity;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
@@ -41,12 +42,14 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Projectile.netUpdate = true;
|
||||
Projectile.rotation = (float)Math.Atan2(storedVelocity.Y, storedVelocity.X) - MathHelper.PiOver2;
|
||||
|
||||
SoundEngine.PlaySound(SANS, Projectile.Center); //Funny Gaster Blaster sounds
|
||||
SoundEngine.PlaySound(SANSCharge, Projectile.Center); //Funny Gaster Blaster sounds
|
||||
}
|
||||
else if (Projectile.ai[0] >= 55f)
|
||||
{
|
||||
Projectile.ai[0] = 90f;
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, storedVelocity, ModContent.ProjectileType<RavagerBlast>(), Projectile.damage, 0f, Projectile.owner, Projectile.ai[1], Projectile.whoAmI);
|
||||
|
||||
SoundEngine.PlaySound(SANSFire, Projectile.Center); //Funny Gaster Blaster sounds #2
|
||||
}
|
||||
}
|
||||
else //Move out and despawn
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user