713 {
715 Vector2 movementVector = settings.MovementVector;
716 int num = 12;
717 int num2 = 10;
718 float num3 = 5f;
719 float num4 = 2.5f;
720 Color lightColorTint =
new Color(0.2f, 0.4f, 0.15f);
721 Vector2 positionInWorld = settings.PositionInWorld;
722 float num5 = (float)
Math.
PI / 20f;
723 float num6 = (float)
Math.
PI / 15f;
724 for (
int i = 0;
i < num;
i++)
725 {
726 Vector2 spinninpoint = movementVector +
new Vector2(num3 + Main.rand.NextFloat() * 1f, 0f).RotatedBy((
float)i / (
float)num * ((
float)
Math.
PI * 2f),
Vector2.
Zero);
727 spinninpoint = spinninpoint.RotatedByRandom(num5);
730 gasParticle.Velocity = spinninpoint;
732 gasParticle.LightColorTint = lightColorTint;
733 gasParticle.LocalPosition = positionInWorld + spinninpoint;
734 gasParticle.TimeToLive = 50 + Main.rand.Next(20);
735 gasParticle.InitialScale = 1f + Main.rand.NextFloat() * 0.35f;
736 Main.ParticleSystem_World_BehindPlayers.Add(gasParticle);
737 }
738 for (int j = 0; j < num2; j++)
739 {
741 spinninpoint2 = spinninpoint2.RotatedByRandom(num6);
742 if (j % 2 == 0)
743 {
744 spinninpoint2 *= 0.5f;
745 }
748 gasParticle2.Velocity = spinninpoint2;
750 gasParticle2.LightColorTint = lightColorTint;
751 gasParticle2.LocalPosition = positionInWorld;
752 gasParticle2.TimeToLive = 80 + Main.rand.Next(30);
753 gasParticle2.InitialScale = 1f + Main.rand.NextFloat() * 0.5f;
754 Main.ParticleSystem_World_BehindPlayers.Add(gasParticle2);
755 }
756 }
static void PlaySound(int type, Vector2 position, int style=1)
static ParticlePool< GasParticle > _poolGas
static readonly LegacySoundStyle Item16