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

◆ AI_178_FireExplosion()

void Terraria.Projectile.AI_178_FireExplosion ( )
inlineprivate

Definition at line 47574 of file Projectile.cs.

47575 {
47576 //IL_0018: Unknown result type (might be due to invalid IL or missing references)
47577 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
47578 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
47579 //IL_006d: Unknown result type (might be due to invalid IL or missing references)
47580 //IL_0081: Unknown result type (might be due to invalid IL or missing references)
47581 //IL_0086: Unknown result type (might be due to invalid IL or missing references)
47582 //IL_0094: Unknown result type (might be due to invalid IL or missing references)
47583 //IL_00a4: Unknown result type (might be due to invalid IL or missing references)
47584 //IL_00b0: Unknown result type (might be due to invalid IL or missing references)
47585 //IL_00ba: Unknown result type (might be due to invalid IL or missing references)
47586 //IL_00bf: Unknown result type (might be due to invalid IL or missing references)
47587 //IL_00c4: Unknown result type (might be due to invalid IL or missing references)
47588 //IL_00f1: Unknown result type (might be due to invalid IL or missing references)
47589 //IL_0114: Unknown result type (might be due to invalid IL or missing references)
47590 //IL_011a: Unknown result type (might be due to invalid IL or missing references)
47591 //IL_0130: Unknown result type (might be due to invalid IL or missing references)
47592 //IL_0135: Unknown result type (might be due to invalid IL or missing references)
47593 //IL_0143: Unknown result type (might be due to invalid IL or missing references)
47594 //IL_0153: Unknown result type (might be due to invalid IL or missing references)
47595 //IL_015f: Unknown result type (might be due to invalid IL or missing references)
47596 //IL_0169: Unknown result type (might be due to invalid IL or missing references)
47597 //IL_016e: Unknown result type (might be due to invalid IL or missing references)
47598 //IL_0173: Unknown result type (might be due to invalid IL or missing references)
47599 //IL_018f: Unknown result type (might be due to invalid IL or missing references)
47600 //IL_0199: Unknown result type (might be due to invalid IL or missing references)
47601 //IL_019e: Unknown result type (might be due to invalid IL or missing references)
47602 //IL_01b9: Unknown result type (might be due to invalid IL or missing references)
47603 //IL_01d9: Unknown result type (might be due to invalid IL or missing references)
47604 //IL_01df: Unknown result type (might be due to invalid IL or missing references)
47605 //IL_01f5: Unknown result type (might be due to invalid IL or missing references)
47606 //IL_01fa: Unknown result type (might be due to invalid IL or missing references)
47607 //IL_0208: Unknown result type (might be due to invalid IL or missing references)
47608 //IL_0218: Unknown result type (might be due to invalid IL or missing references)
47609 //IL_0224: Unknown result type (might be due to invalid IL or missing references)
47610 //IL_022e: Unknown result type (might be due to invalid IL or missing references)
47611 //IL_0233: Unknown result type (might be due to invalid IL or missing references)
47612 //IL_0238: Unknown result type (might be due to invalid IL or missing references)
47613 //IL_0246: Unknown result type (might be due to invalid IL or missing references)
47614 //IL_0250: Unknown result type (might be due to invalid IL or missing references)
47615 //IL_0255: Unknown result type (might be due to invalid IL or missing references)
47616 //IL_02a4: Unknown result type (might be due to invalid IL or missing references)
47617 //IL_02c3: Unknown result type (might be due to invalid IL or missing references)
47618 //IL_02c9: Unknown result type (might be due to invalid IL or missing references)
47619 //IL_02df: Unknown result type (might be due to invalid IL or missing references)
47620 //IL_02e4: Unknown result type (might be due to invalid IL or missing references)
47621 //IL_02f2: Unknown result type (might be due to invalid IL or missing references)
47622 //IL_02f8: Unknown result type (might be due to invalid IL or missing references)
47623 //IL_0305: Unknown result type (might be due to invalid IL or missing references)
47624 //IL_030b: Unknown result type (might be due to invalid IL or missing references)
47625 //IL_030d: Unknown result type (might be due to invalid IL or missing references)
47626 //IL_0319: Unknown result type (might be due to invalid IL or missing references)
47627 //IL_0323: Unknown result type (might be due to invalid IL or missing references)
47628 //IL_0328: Unknown result type (might be due to invalid IL or missing references)
47629 //IL_032d: Unknown result type (might be due to invalid IL or missing references)
47630 //IL_0349: Unknown result type (might be due to invalid IL or missing references)
47631 //IL_0353: Unknown result type (might be due to invalid IL or missing references)
47632 //IL_0358: Unknown result type (might be due to invalid IL or missing references)
47633 //IL_038a: Unknown result type (might be due to invalid IL or missing references)
47634 //IL_03aa: Unknown result type (might be due to invalid IL or missing references)
47635 //IL_03b0: Unknown result type (might be due to invalid IL or missing references)
47636 //IL_03c6: Unknown result type (might be due to invalid IL or missing references)
47637 //IL_03cb: Unknown result type (might be due to invalid IL or missing references)
47638 //IL_03d9: Unknown result type (might be due to invalid IL or missing references)
47639 //IL_03df: Unknown result type (might be due to invalid IL or missing references)
47640 //IL_03ec: Unknown result type (might be due to invalid IL or missing references)
47641 //IL_03f2: Unknown result type (might be due to invalid IL or missing references)
47642 //IL_03f4: Unknown result type (might be due to invalid IL or missing references)
47643 //IL_0400: Unknown result type (might be due to invalid IL or missing references)
47644 //IL_040a: Unknown result type (might be due to invalid IL or missing references)
47645 //IL_040f: Unknown result type (might be due to invalid IL or missing references)
47646 //IL_0414: Unknown result type (might be due to invalid IL or missing references)
47647 //IL_0430: Unknown result type (might be due to invalid IL or missing references)
47648 //IL_043a: Unknown result type (might be due to invalid IL or missing references)
47649 //IL_043f: Unknown result type (might be due to invalid IL or missing references)
47650 //IL_045c: Unknown result type (might be due to invalid IL or missing references)
47651 //IL_0495: Unknown result type (might be due to invalid IL or missing references)
47652 //IL_049a: Unknown result type (might be due to invalid IL or missing references)
47653 //IL_049f: Unknown result type (might be due to invalid IL or missing references)
47654 //IL_04a9: Unknown result type (might be due to invalid IL or missing references)
47655 //IL_04ae: Unknown result type (might be due to invalid IL or missing references)
47656 //IL_04b5: Unknown result type (might be due to invalid IL or missing references)
47657 //IL_04bb: Unknown result type (might be due to invalid IL or missing references)
47658 //IL_04e0: Unknown result type (might be due to invalid IL or missing references)
47659 //IL_04e5: Unknown result type (might be due to invalid IL or missing references)
47660 //IL_04f3: Unknown result type (might be due to invalid IL or missing references)
47661 //IL_0503: Unknown result type (might be due to invalid IL or missing references)
47662 //IL_050f: Unknown result type (might be due to invalid IL or missing references)
47663 //IL_0519: Unknown result type (might be due to invalid IL or missing references)
47664 //IL_051e: Unknown result type (might be due to invalid IL or missing references)
47665 //IL_0523: Unknown result type (might be due to invalid IL or missing references)
47666 //IL_0531: Unknown result type (might be due to invalid IL or missing references)
47667 //IL_053b: Unknown result type (might be due to invalid IL or missing references)
47668 //IL_0540: Unknown result type (might be due to invalid IL or missing references)
47669 if (localAI[0] == 0f)
47670 {
47672 for (int i = 0; i < 4; i++)
47673 {
47674 int num = Dust.NewDust(new Vector2(position.X, position.Y), width, height, 31, 0f, 0f, 100, default(Color), 1.5f);
47675 Main.dust[num].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)width / 2f;
47676 }
47677 for (int j = 0; j < 30; j++)
47678 {
47679 int num2 = Dust.NewDust(new Vector2(position.X, position.Y), width, height, 6, 0f, 0f, 200, default(Color), 3.7f);
47680 Main.dust[num2].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)width / 2f;
47681 Main.dust[num2].noGravity = true;
47682 Dust obj = Main.dust[num2];
47683 obj.velocity *= 3f;
47684 num2 = Dust.NewDust(new Vector2(position.X, position.Y), width, height, 6, 0f, 0f, 100, default(Color), 1.5f);
47685 Main.dust[num2].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)width / 2f;
47686 Dust obj2 = Main.dust[num2];
47687 obj2.velocity *= 2f;
47688 Main.dust[num2].noGravity = true;
47689 Main.dust[num2].fadeIn = 2.5f;
47690 }
47691 for (int k = 0; k < 10; k++)
47692 {
47693 int num3 = Dust.NewDust(new Vector2(position.X, position.Y), width, height, 6, 0f, 0f, 0, default(Color), 2.7f);
47694 Main.dust[num3].position = base.Center + Vector2.UnitX.RotatedByRandom(3.1415927410125732).RotatedBy(velocity.ToRotation()) * (float)width / 2f;
47695 Main.dust[num3].noGravity = true;
47696 Dust obj3 = Main.dust[num3];
47697 obj3.velocity *= 3f;
47698 }
47699 for (int l = 0; l < 10; l++)
47700 {
47701 int num4 = Dust.NewDust(new Vector2(position.X, position.Y), width, height, 31, 0f, 0f, 0, default(Color), 1.5f);
47702 Main.dust[num4].position = base.Center + Vector2.UnitX.RotatedByRandom(3.1415927410125732).RotatedBy(velocity.ToRotation()) * (float)width / 2f;
47703 Main.dust[num4].noGravity = true;
47704 Dust obj4 = Main.dust[num4];
47705 obj4.velocity *= 3f;
47706 }
47707 for (int m = 0; m < 2; m++)
47708 {
47709 int num5 = Gore.NewGore(position + new Vector2((float)(width * Main.rand.Next(100)) / 100f, (float)(height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f, default(Vector2), Main.rand.Next(61, 64));
47710 Main.gore[num5].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)width / 2f;
47711 Gore obj5 = Main.gore[num5];
47712 obj5.velocity *= 0.3f;
47713 Main.gore[num5].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
47714 Main.gore[num5].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
47715 }
47716 }
47717 localAI[0] += 1f;
47718 if (localAI[0] >= 10f)
47719 {
47720 Kill();
47721 }
47722 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
static readonly SoundStyle Item14
Definition SoundID.cs:705
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....

References Terraria.Main.dust, Terraria.Main.gore, Terraria.ID.SoundID.Item14, Terraria.Dust.NewDust(), Terraria.Gore.NewGore(), Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Main.rand.

+ Here is the call graph for this function: