TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AI_175_TitaniumStormShards()

void Terraria.Projectile.AI_175_TitaniumStormShards ( )
inlineprivate

Definition at line 47724 of file Projectile.cs.

47725 {
47726 //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
47727 //IL_00ae: Unknown result type (might be due to invalid IL or missing references)
47728 //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
47729 //IL_00b8: Unknown result type (might be due to invalid IL or missing references)
47730 //IL_00bc: Unknown result type (might be due to invalid IL or missing references)
47731 //IL_00c1: Unknown result type (might be due to invalid IL or missing references)
47732 //IL_00c3: Unknown result type (might be due to invalid IL or missing references)
47733 //IL_00cd: Unknown result type (might be due to invalid IL or missing references)
47734 //IL_00d2: Unknown result type (might be due to invalid IL or missing references)
47735 //IL_00db: Unknown result type (might be due to invalid IL or missing references)
47736 //IL_00e4: Unknown result type (might be due to invalid IL or missing references)
47737 //IL_00e9: Unknown result type (might be due to invalid IL or missing references)
47738 //IL_00f5: Unknown result type (might be due to invalid IL or missing references)
47739 //IL_00fa: Unknown result type (might be due to invalid IL or missing references)
47740 //IL_0100: Unknown result type (might be due to invalid IL or missing references)
47741 //IL_0105: Unknown result type (might be due to invalid IL or missing references)
47742 //IL_010a: Unknown result type (might be due to invalid IL or missing references)
47743 //IL_010e: Unknown result type (might be due to invalid IL or missing references)
47744 //IL_0113: Unknown result type (might be due to invalid IL or missing references)
47745 //IL_011a: Unknown result type (might be due to invalid IL or missing references)
47746 Player player = Main.player[owner];
47747 if (!player.active || player.dead || !player.hasTitaniumStormBuff)
47748 {
47749 Kill();
47750 return;
47751 }
47752 if (frameCounter == 0)
47753 {
47754 frameCounter = 1;
47755 frame = Main.rand.Next(12);
47756 rotation = Main.rand.NextFloat() * ((float)Math.PI * 2f);
47757 }
47758 rotation += (float)Math.PI / 200f;
47760 float f = ((float)index / (float)totalIndexesInGroup + player.miscCounterNormalized * 6f) * ((float)Math.PI * 2f);
47761 float num = 24f + (float)totalIndexesInGroup * 6f;
47762 Vector2 vector = player.position - player.oldPosition;
47763 base.Center += vector;
47764 Vector2 vector2 = f.ToRotationVector2();
47765 localAI[0] = vector2.Y;
47766 Vector2 value = player.Center + vector2 * new Vector2(1f, 0.05f) * num;
47767 base.Center = Vector2.Lerp(base.Center, value, 0.3f);
47768 }
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
int frame
The frame number in the spritesheet that this projectile will be drawn with. Assign in M:Terraria....
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...
void AI_GetMyGroupIndexAndFillBlackList(List< int > blackListedTargets, out int index, out int totalIndexesInGroup)
int frameCounter
Used as a timer to decide when to change F:Terraria.Projectile.frame. Defaults to 0.

References Terraria.Entity.active, Terraria.Player.dead, Terraria.Player.hasTitaniumStormBuff, Terraria.Entity.oldPosition, Terraria.Main.player, and Terraria.Main.rand.