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

◆ NPCAimedTarget() [2/2]

Terraria.DataStructures.NPCAimedTarget.NPCAimedTarget ( Player player,
bool ignoreTank = true )
inline

Definition at line 42 of file NPCAimedTarget.cs.

43 {
44 //IL_0009: Unknown result type (might be due to invalid IL or missing references)
45 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
46 //IL_002d: Unknown result type (might be due to invalid IL or missing references)
47 //IL_0032: Unknown result type (might be due to invalid IL or missing references)
48 //IL_0039: Unknown result type (might be due to invalid IL or missing references)
49 //IL_003e: Unknown result type (might be due to invalid IL or missing references)
50 //IL_0065: Unknown result type (might be due to invalid IL or missing references)
51 //IL_006a: Unknown result type (might be due to invalid IL or missing references)
52 //IL_0089: Unknown result type (might be due to invalid IL or missing references)
53 //IL_008e: Unknown result type (might be due to invalid IL or missing references)
54 //IL_0095: Unknown result type (might be due to invalid IL or missing references)
55 //IL_009a: Unknown result type (might be due to invalid IL or missing references)
56 Type = NPCTargetType.Player;
57 Hitbox = player.Hitbox;
58 Width = player.width;
59 Height = player.height;
60 Position = player.position;
61 Velocity = player.velocity;
62 if (!ignoreTank && player.tankPet > -1)
63 {
64 Projectile projectile = Main.projectile[player.tankPet];
65 Type = NPCTargetType.PlayerTankPet;
66 Hitbox = projectile.Hitbox;
67 Width = projectile.width;
68 Height = projectile.height;
69 Position = projectile.position;
70 Velocity = projectile.velocity;
71 }
72 }

References Terraria.DataStructures.NPCAimedTarget.Height, Terraria.Entity.height, Terraria.DataStructures.NPCAimedTarget.Hitbox, Terraria.Entity.Hitbox, Terraria.DataStructures.NPCAimedTarget.Position, Terraria.Entity.position, Terraria.Main.projectile, Terraria.Player.tankPet, Terraria.DataStructures.NPCAimedTarget.Velocity, Terraria.Entity.velocity, Terraria.DataStructures.NPCAimedTarget.Width, and Terraria.Entity.width.