casing sprites and other misc changes
This commit is contained in:
1 parent
4504fefe04
commit
c81ad1c77a
9 files changed
+64
-142
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 212 B |
Binary file not shown.
|
After Width: | Height: | Size: 315 B |
@@ -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;
|
||||
|
||||
@@ -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']
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -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<SeaDragonRocket>(), (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<RiptideDebuff>(), 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<SeaDragonRocket>(), (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<RiptideDebuff>(), 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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<RiptideDebuff>(), 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<RiptideDebuff>(), 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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<BlahajBlast>(), 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<BlahajBlast>(), 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<SeaDragonRocket>())
|
||||
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<SeaDragonRocket>(), (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<SeaDragonRocket>()] > 0)
|
||||
{
|
||||
if (Time == 3)
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
|
||||
@@ -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<ModGore>(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<ModGore>(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<AbyssalFire>(), (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<AbyssalFire>(), (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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user