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

◆ CreateImpactExplosion2_FlailTileCollision()

void Terraria.Projectile.CreateImpactExplosion2_FlailTileCollision ( Vector2 explosionOrigin,
bool causedShockwaves,
Vector2 velocityBeforeCollision )
inline

Definition at line 76742 of file Projectile.cs.

76743 {
76744 //IL_0022: Unknown result type (might be due to invalid IL or missing references)
76745 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
76746 //IL_0031: Unknown result type (might be due to invalid IL or missing references)
76747 //IL_0032: Unknown result type (might be due to invalid IL or missing references)
76748 //IL_0033: Unknown result type (might be due to invalid IL or missing references)
76749 //IL_0038: Unknown result type (might be due to invalid IL or missing references)
76750 //IL_003d: Unknown result type (might be due to invalid IL or missing references)
76751 //IL_004a: Unknown result type (might be due to invalid IL or missing references)
76752 //IL_005c: Unknown result type (might be due to invalid IL or missing references)
76753 //IL_0062: Unknown result type (might be due to invalid IL or missing references)
76754 //IL_0064: Unknown result type (might be due to invalid IL or missing references)
76755 //IL_0069: Unknown result type (might be due to invalid IL or missing references)
76756 //IL_006a: Unknown result type (might be due to invalid IL or missing references)
76757 //IL_006f: Unknown result type (might be due to invalid IL or missing references)
76758 //IL_0072: Unknown result type (might be due to invalid IL or missing references)
76759 //IL_0092: Unknown result type (might be due to invalid IL or missing references)
76760 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
76761 //IL_00bc: Unknown result type (might be due to invalid IL or missing references)
76762 //IL_00bd: Unknown result type (might be due to invalid IL or missing references)
76763 //IL_00c4: Unknown result type (might be due to invalid IL or missing references)
76764 //IL_00c5: Unknown result type (might be due to invalid IL or missing references)
76765 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)
76766 //IL_00cc: Unknown result type (might be due to invalid IL or missing references)
76767 //IL_012f: Unknown result type (might be due to invalid IL or missing references)
76768 //IL_0134: Unknown result type (might be due to invalid IL or missing references)
76769 //IL_013a: Unknown result type (might be due to invalid IL or missing references)
76770 //IL_013f: Unknown result type (might be due to invalid IL or missing references)
76771 //IL_0144: Unknown result type (might be due to invalid IL or missing references)
76772 //IL_0171: Unknown result type (might be due to invalid IL or missing references)
76773 //IL_0183: Unknown result type (might be due to invalid IL or missing references)
76774 //IL_0189: Unknown result type (might be due to invalid IL or missing references)
76775 //IL_018b: Unknown result type (might be due to invalid IL or missing references)
76776 //IL_0190: Unknown result type (might be due to invalid IL or missing references)
76777 //IL_0191: Unknown result type (might be due to invalid IL or missing references)
76778 //IL_0196: Unknown result type (might be due to invalid IL or missing references)
76779 //IL_0199: Unknown result type (might be due to invalid IL or missing references)
76780 //IL_01b9: Unknown result type (might be due to invalid IL or missing references)
76781 //IL_01bf: Unknown result type (might be due to invalid IL or missing references)
76782 //IL_01d4: Unknown result type (might be due to invalid IL or missing references)
76783 //IL_01d5: Unknown result type (might be due to invalid IL or missing references)
76784 //IL_01db: Unknown result type (might be due to invalid IL or missing references)
76785 //IL_01dc: Unknown result type (might be due to invalid IL or missing references)
76786 //IL_01de: Unknown result type (might be due to invalid IL or missing references)
76787 //IL_01e3: Unknown result type (might be due to invalid IL or missing references)
76788 //IL_023f: Unknown result type (might be due to invalid IL or missing references)
76789 //IL_0244: Unknown result type (might be due to invalid IL or missing references)
76790 //IL_024a: Unknown result type (might be due to invalid IL or missing references)
76791 //IL_024f: Unknown result type (might be due to invalid IL or missing references)
76792 //IL_0254: Unknown result type (might be due to invalid IL or missing references)
76793 Vector2 spinningpoint = default(Vector2);
76794 ((Vector2)(ref spinningpoint))._002Ector(7f, 0f);
76795 Vector2 vector = default(Vector2);
76796 ((Vector2)(ref vector))._002Ector(1f, 0.7f);
76797 Color color = Color.White * 0.5f;
76798 Vector2 vector2 = velocityBeforeCollision.SafeNormalize(Vector2.Zero);
76799 for (float num = 0f; num < 8f; num += 1f)
76800 {
76801 Vector2 vector3 = spinningpoint.RotatedBy(num * ((float)Math.PI * 2f) / 8f) * vector;
76802 Dust dust = Dust.NewDustDirect(position, width, height, 31);
76803 dust.alpha = 0;
76804 if (!causedShockwaves)
76805 {
76806 dust.alpha = 50;
76807 }
76808 dust.color = color;
76809 dust.position = explosionOrigin + vector3;
76810 dust.velocity.Y -= 0.8f;
76811 dust.velocity.X *= 0.8f;
76812 dust.fadeIn = 0.3f + Main.rand.NextFloat() * 0.4f;
76813 dust.scale = 0.4f;
76814 dust.noLight = true;
76815 dust.velocity += vector2 * 2f;
76816 }
76817 if (!causedShockwaves)
76818 {
76819 for (float num2 = 0f; num2 < 8f; num2 += 1f)
76820 {
76821 Vector2 vector4 = spinningpoint.RotatedBy(num2 * ((float)Math.PI * 2f) / 8f) * vector;
76822 Dust dust2 = Dust.NewDustDirect(position, width, height, 31);
76823 dust2.alpha = 100;
76824 dust2.color = color;
76825 dust2.position = explosionOrigin + vector4;
76826 dust2.velocity.Y -= 1f;
76827 dust2.velocity.X *= 0.4f;
76828 dust2.fadeIn = 0.3f + Main.rand.NextFloat() * 0.4f;
76829 dust2.scale = 0.4f;
76830 dust2.noLight = true;
76831 dust2.velocity += vector2 * 1.5f;
76832 }
76833 }
76834 }
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

References Terraria.Dust.NewDustDirect(), and Terraria.Main.rand.

+ Here is the call graph for this function: