terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ AI_159_PaperAirplanes()

void Terraria.Projectile.AI_159_PaperAirplanes ( )
inlineprivate

Definition at line 3940 of file Projectile.cs.

3941 {
3942 int num = 1;
3943 float x = this.velocity.X;
3944 float y = this.velocity.Y;
3945 this.direction = num;
3946 if (num == 0)
3947 {
3948 }
3949 int num2 = 1;
3950 if (num == 0)
3951 {
3952 }
3953 this.netUpdate = num2 != 0;
3954 bool wet = this.wet;
3955 if (wet)
3956 {
3957 int num3 = this.owner;
3958 if (!wet)
3959 {
3960 }
3961 int myPlayer = Main.myPlayer;
3962 this.Kill();
3963 }
3964 float num4 = this.rotation;
3965 if (!wet)
3966 {
3967 }
3968 float num5;
3969 Vector2 vector = num5.ToRotationVector2();
3970 if (!wet)
3971 {
3972 }
3973 if (!wet)
3974 {
3975 }
3976 int direction = this.direction;
3977 if (true)
3978 {
3979 return;
3980 }
3981 if (!true)
3982 {
3983 }
3984 if (!true)
3985 {
3986 }
3987 int direction2 = this.direction;
3988 int direction3 = this.direction;
3989 if (!true)
3990 {
3991 }
3992 int num6 = Math.Sign(num5);
3993 }
class f__AnonymousType0<< Count > j__TPar
static int Sign(double value)
Definition Math.cs:252
Vector2 velocity
Definition Entity.cs:463

References Terraria.Entity.direction, j__TPar, Terraria.Projectile.Kill(), Terraria.Main.myPlayer, Terraria.Projectile.owner, Terraria.Projectile.rotation, System.Math.Sign(), Terraria.Entity.velocity, Terraria.Entity.wet, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.