Storm Weaver sounds, Gatling Laser animation
This commit is contained in:
1 parent
9c15f7db37
commit
830d5d4883
8 files changed
+23
-9
No files matched your search
@@ -46,7 +46,7 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
global.unbreakableDR = true;
|
||||
NPC.chaseable = false;
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.DeathSound = SoundID.NPCDeath14;
|
||||
NPC.DeathSound = StormWeaverHead.DeathSound;
|
||||
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
@@ -136,7 +136,6 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
global.unbreakableDR = false;
|
||||
NPC.chaseable = true;
|
||||
NPC.HitSound = SoundID.NPCHit13;
|
||||
NPC.DeathSound = SoundID.NPCDeath13;
|
||||
NPC.frame = new Rectangle(0, 0, 54, 52);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,6 +51,9 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
private const float BoltAngleSpread = 280;
|
||||
private bool tail = false;
|
||||
|
||||
public static readonly SoundStyle ArmorShedSound = new("CalamityMod/Sounds/Custom/WeaverArmorShed");
|
||||
public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/WeaverDeath");
|
||||
|
||||
// Lightning flash variables
|
||||
public float lightning = 0f;
|
||||
private float lightningDecay = 1f;
|
||||
@@ -98,7 +101,7 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
global.unbreakableDR = true;
|
||||
NPC.chaseable = false;
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.DeathSound = SoundID.NPCDeath14;
|
||||
NPC.DeathSound = DeathSound;
|
||||
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
@@ -202,7 +205,7 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
Gore.NewGore(NPC.GetSource_FromAI(), NPC.position, NPC.velocity, Mod.Find<ModGore>("SWArmorHead1").Type, NPC.scale);
|
||||
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath14, NPC.Center);
|
||||
SoundEngine.PlaySound(ArmorShedSound, NPC.Center);
|
||||
|
||||
CalamityGlobalNPC global = NPC.Calamity();
|
||||
NPC.defense = 20;
|
||||
@@ -210,7 +213,6 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
global.unbreakableDR = false;
|
||||
NPC.chaseable = true;
|
||||
NPC.HitSound = SoundID.NPCHit13;
|
||||
NPC.DeathSound = SoundID.NPCDeath13;
|
||||
NPC.frame = new Rectangle(0, 0, 62, 86);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
// Phase one settings
|
||||
NPC.takenDamageMultiplier = 2f;
|
||||
NPC.HitSound = SoundID.NPCHit53;
|
||||
NPC.DeathSound = SoundID.NPCDeath14;
|
||||
NPC.DeathSound = StormWeaverHead.DeathSound;
|
||||
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
@@ -140,7 +140,6 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
global.DR = 0.4f;
|
||||
NPC.takenDamageMultiplier = 1f;
|
||||
NPC.HitSound = SoundID.NPCHit13;
|
||||
NPC.DeathSound = SoundID.NPCDeath13;
|
||||
NPC.frame = new Rectangle(0, 0, 42, 68);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,11 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
private SlotId gatlingLaserLoopID;
|
||||
private bool fireLasers = false;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 4;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 24;
|
||||
@@ -29,6 +34,15 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.frameCounter++;
|
||||
if (Projectile.frameCounter >= 13)
|
||||
{
|
||||
Projectile.frameCounter = 10;
|
||||
Projectile.frame++;
|
||||
if (Projectile.frame >= Main.projFrames[Projectile.type])
|
||||
Projectile.frame = 0;
|
||||
}
|
||||
|
||||
if (SoundEngine.TryGetActiveSound(gatlingLaserLoopID, out var ShootingSound) && ShootingSound.IsPlaying)
|
||||
ShootingSound.Position = Projectile.Center;
|
||||
Player player = Main.player[Projectile.owner];
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 803 B After Width: | Height: | Size: 1.4 KiB |
@@ -33,12 +33,12 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
Time++;
|
||||
Lighting.AddLight(Projectile.Center, 0.2f, 0f, 0f);
|
||||
if (Projectile.timeLeft % 11 == 0 && Time > 12 && Time < 460)
|
||||
if (Projectile.timeLeft % 11 == 0 && Time > 15 && Time < 460)
|
||||
{
|
||||
SparkParticle spark = new SparkParticle(Projectile.Center, Projectile.velocity * 0.01f, false, 6, 1.7f, Color.Red);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
if (Projectile.timeLeft % 4 == 0 && Time > 12 && Time < 460)
|
||||
if (Projectile.timeLeft % 4 == 0 && Time > 15 && Time < 460)
|
||||
{
|
||||
SparkParticle spark2 = new SparkParticle(Projectile.Center, Projectile.velocity * 0.01f, false, 6, 0.4f, Color.White);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user