47771 {
47772
47773
47774
47775
47776
47777
47778
47779
47780
47781
47782
47783
47784
47785
47786
47787
47788
47789
47790
47791
47792
47793
47794
47795
47796
47797
47798
47799
47800
47801
47802
47804 if (!player.active)
47805 {
47807 return;
47808 }
47810 {
47811 if (player.dead)
47812 {
47813 player.petFlagEaterOfWorldsPet = false;
47814 }
47815 if (player.petFlagEaterOfWorldsPet)
47816 {
47818 }
47819 }
47821 {
47822 if (player.dead)
47823 {
47824 player.petFlagDestroyerPet = false;
47825 }
47826 if (player.petFlagDestroyerPet)
47827 {
47829 }
47830 }
47832 {
47833 if (player.dead)
47834 {
47835 player.petFlagLunaticCultistPet = false;
47836 }
47837 if (player.petFlagLunaticCultistPet)
47838 {
47840 }
47841 }
47842 Vector2
center = player.Center;
47844 {
47848 }
47850 float num = ((Vector2)(
ref val)).Length();
47851 float num2 =
Math.Min(12
f,
Math.Max(4
f, ((Vector2)(
ref player.velocity)).Length()));
47854 {
47855 velocity.X = 2
f * (float)player.direction;
47857 for (
int i = 0; i <
oldPos.Length; i++)
47858 {
47861 }
47862 }
47864 {
47868 }
47870 {
47872 }
47874 {
47875 velocity.Y -= 0.1f;
47876 }
47881 {
47883 }
47886 }
float AngleTo(Vector2 Destination)
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
float Distance(Vector2 Other)
Vector2 position
The position of this Entity in world coordinates.
bool active
If true, the Entity actually exists within the game world. Within the specific entity array,...
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
bool netUpdate
Set manually to true in M:Terraria.ModLoader.ModProjectile.AI once to make it sync its current F:Terr...
Vector2[] oldPos
Holds the value of F:Terraria.Entity.position from previous updates from newest to oldest....
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
int timeLeft
Time in ticks before this projectile will naturally despawn. Each update timeLeft is decreased by 1...
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...