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

◆ AimAbility()

bool Terraria.Mount.AimAbility ( Player mountedPlayer,
Vector2 mousePosition )
inline

Definition at line 1513 of file Mount.cs.

1514 {
1515 int type = this._type;
1516 int num = 1;
1517 this._aiming = num != 0;
1518 int direction = mountedPlayer.direction;
1519 int frameExtra = this._frameExtra;
1520 Vector2 vector = this.ClampToDeadZone(mountedPlayer, mousePosition);
1521 Vector2 center = mountedPlayer.Center;
1522 if (direction == 0)
1523 {
1524 }
1525 if (direction == 0)
1526 {
1527 }
1528 float num3;
1529 float num2 = MathHelper.ToDegrees(num3);
1530 int num4 = 17204;
1531 int frameExtra2 = this._frameExtra;
1532 int direction2 = mountedPlayer.direction;
1533 Vector2 vector2 = this.ClampToDeadZone(mountedPlayer, mousePosition);
1534 Vector2 center2 = mountedPlayer.Center;
1535 if (num4 == 0)
1536 {
1537 }
1538 if (num4 == 0)
1539 {
1540 }
1541 float num6;
1542 float num5 = MathHelper.ToDegrees(num6);
1543 float x = mountedPlayer.velocity.X;
1544 int num7 = 1;
1546 Vector2 vector3 = this.ClampToDeadZone(mountedPlayer, mousePosition);
1547 Vector2 center3 = mountedPlayer.Center;
1548 if (num7 == 0)
1549 {
1550 }
1551 if (this._mountSpecificData != null)
1552 {
1553 }
1554 float x2 = mountedPlayer.velocity.X;
1555 int width = mountedPlayer.width;
1556 int height = mountedPlayer.height;
1557 float x3 = mountedPlayer.position.X;
1558 float y = mountedPlayer.position.Y;
1559 int num8 = 1;
1560 long num9 = 0L;
1561 Lighting.AddLight(0, (int)num9, num2, num5, num5);
1562 if (num8 != 0)
1563 {
1564 int direction3 = mountedPlayer.direction;
1565 int height2 = mountedPlayer.height;
1566 return false;
1567 }
1568 int direction4 = mountedPlayer.direction;
1569 return false;
1570 }
class f__AnonymousType0<< Count > j__TPar
static float ToDegrees(float radians)
Definition MathHelper.cs:91
object _mountSpecificData
Definition Mount.cs:1908
int _frameExtra
Definition Mount.cs:1860
Vector2 ClampToDeadZone(Player mountedPlayer, Vector2 position)
Definition Mount.cs:1492

References Terraria.Mount._frameExtra, Terraria.Mount._mountSpecificData, Terraria.Mount._type, Terraria.Lighting.AddLight(), Terraria.Mount.ClampToDeadZone(), Terraria.Entity.direction, j__TPar, System.L, Microsoft.Xna.Framework.MathHelper.ToDegrees(), Terraria.Entity.velocity, and Microsoft.Xna.Framework.Vector2.X.