5456 {
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5487 {
5488 case 9:
5489 {
5494 {
5495 mountedPlayer.direction = -1;
5497 }
5498 else if (
num4 < -90
f)
5499 {
5500 mountedPlayer.direction = -1;
5502 }
5503 else
5504 {
5505 mountedPlayer.direction = 1;
5506 }
5508 {
5510 }
5511 else
5512 {
5514 }
5516 {
5517 if ((
double)
num4 < 22.5)
5518 {
5520 }
5521 else if ((
double)
num4 < 67.5)
5522 {
5524 }
5525 else if ((
double)
num4 < 112.5)
5526 {
5528 }
5529 }
5530 else if ((
double)
num4 > -22.5)
5531 {
5533 }
5534 else if ((
double)
num4 > -67.5)
5535 {
5537 }
5538 else if ((
double)
num4 > -112.5)
5539 {
5541 }
5544 {
5545 Vector2
vector =
default(Vector2);
5546 vector.X = mountedPlayer.position.X + (float)(
mountedPlayer.width / 2);
5547 vector.Y = mountedPlayer.position.Y + (float)
mountedPlayer.height;
5549 Vector2
vector2 =
default(Vector2);
5550 for (int i = 0; i < 2; i++)
5551 {
5554 {
5556 }
5557 else
5558 {
5560 }
5562 }
5563 }
5565 {
5566 return mountedPlayer.direction !=
direction2;
5567 }
5568 return true;
5569 }
5570 case 46:
5571 {
5576 {
5577 mountedPlayer.direction = -1;
5579 }
5580 else if (
num3 < -90
f)
5581 {
5582 mountedPlayer.direction = -1;
5584 }
5585 else
5586 {
5587 mountedPlayer.direction = 1;
5588 }
5590 {
5592 }
5593 else
5594 {
5596 }
5598 {
5599 Vector2
vector3 =
default(Vector2);
5600 vector3.X = mountedPlayer.position.X + (float)(
mountedPlayer.width / 2);
5601 vector3.Y = mountedPlayer.position.Y + (float)
mountedPlayer.height;
5602 Vector2
vector4 =
default(Vector2);
5603 for (
int j = 0;
j < 2;
j++)
5604 {
5606 Lighting.AddLight((
int)(vector4.X / 16
f), (
int)(vector4.Y / 16
f), 0.7
f, 0.4
f, 0.4
f);
5607 }
5608 }
5610 {
5611 return mountedPlayer.direction != direction;
5612 }
5613 return true;
5614 }
5615 case 8:
5616 {
5619 float num = v.ToRotation();
5621 {
5623 }
5624 drillMountData.diodeRotationTarget =
num;
5625 float num2 = drillMountData.diodeRotation % ((float)
Math.PI * 2
f);
5627 {
5629 }
5631 {
5633 {
5635 }
5636 }
5638 {
5640 }
5641 drillMountData.diodeRotation =
num2;
5643 return true;
5644 }
5645 default:
5646 return false;
5647 }
5648 }
static void AimAbility(Mount mount, Player player, Vector2 mousePosition)
Allows you to make things happen when the mount ability is aiming (while charging).
This serves as the central place from which mounts are stored and mount-related functions are carried...
static Vector2[] scutlixEyePositions
object _mountSpecificData
Vector2 ClampToDeadZone(Player mountedPlayer, Vector2 position)