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

◆ GetPlayerArmPosition()

static Vector2 Terraria.Main.GetPlayerArmPosition ( Projectile proj)
inlinestatic

Definition at line 48263 of file Main.cs.

48264 {
48265 //IL_0020: Unknown result type (might be due to invalid IL or missing references)
48266 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
48267 //IL_002f: Unknown result type (might be due to invalid IL or missing references)
48268 //IL_0047: Unknown result type (might be due to invalid IL or missing references)
48269 //IL_007a: Unknown result type (might be due to invalid IL or missing references)
48270 //IL_009d: Unknown result type (might be due to invalid IL or missing references)
48271 //IL_00a7: Unknown result type (might be due to invalid IL or missing references)
48272 //IL_00ac: Unknown result type (might be due to invalid IL or missing references)
48273 //IL_00b1: Unknown result type (might be due to invalid IL or missing references)
48274 //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
48275 //IL_00c2: Unknown result type (might be due to invalid IL or missing references)
48276 //IL_00cc: Unknown result type (might be due to invalid IL or missing references)
48277 //IL_00d1: Unknown result type (might be due to invalid IL or missing references)
48278 //IL_00d6: Unknown result type (might be due to invalid IL or missing references)
48279 //IL_00d7: Unknown result type (might be due to invalid IL or missing references)
48280 //IL_00dc: Unknown result type (might be due to invalid IL or missing references)
48281 //IL_00e7: Unknown result type (might be due to invalid IL or missing references)
48282 //IL_00ec: Unknown result type (might be due to invalid IL or missing references)
48283 //IL_00f1: Unknown result type (might be due to invalid IL or missing references)
48284 //IL_006e: Unknown result type (might be due to invalid IL or missing references)
48285 //IL_0141: Unknown result type (might be due to invalid IL or missing references)
48286 //IL_0144: Unknown result type (might be due to invalid IL or missing references)
48287 //IL_0125: Unknown result type (might be due to invalid IL or missing references)
48288 //IL_0135: Unknown result type (might be due to invalid IL or missing references)
48289 //IL_013a: Unknown result type (might be due to invalid IL or missing references)
48290 //IL_013f: Unknown result type (might be due to invalid IL or missing references)
48291 Player player = Main.player[proj.owner];
48292 Vector2 vector = OffsetsPlayerOnhand[player.bodyFrame.Y / 56] * 2f;
48293 if (player.direction != 1)
48294 {
48295 vector.X = (float)player.bodyFrame.Width - vector.X;
48296 }
48297 if (player.gravDir != 1f)
48298 {
48299 vector.Y = (float)player.bodyFrame.Height - vector.Y;
48300 }
48301 vector -= new Vector2((float)(player.bodyFrame.Width - player.width), (float)(player.bodyFrame.Height - 42)) / 2f;
48302 Vector2 pos = player.MountedCenter - new Vector2(20f, 42f) / 2f + vector + Vector2.UnitY * player.gfxOffY;
48303 if (player.mount.Active && player.mount.Type == 52)
48304 {
48305 pos.Y -= player.mount.PlayerOffsetHitbox;
48306 pos += new Vector2((float)(12 * player.direction), -12f);
48307 }
48308 return player.RotatedRelativePoint(pos);
48309 }
static Vector2[] OffsetsPlayerOnhand
Definition Main.cs:524
static Player[] player
Definition Main.cs:1960

References Terraria.Main.OffsetsPlayerOnhand, and Terraria.Main.player.

Referenced by Terraria.Projectile.AI_165_Whip(), Terraria.Main.DrawKite(), Terraria.Main.DrawProj_FlailChains(), and Terraria.Projectile.FillWhipControlPoints().

+ Here is the caller graph for this function: