33309 {
33310
33311
33312
33313
33315 bool flag = false;
33316 if (player.dead)
33317 {
33318 flag = true;
33319 }
33320 if (
owner == Main.myPlayer)
33321 {
33322 if (
position.
Y - (
float)
height <= (
float)(16 * Main.offScreenRange / 2))
33323 {
33325 return;
33326 }
33327 if (player.HeldItem.type != 5451)
33328 {
33329 flag = true;
33330 }
33331 bool flag2 = player.gravDir == -1f;
33333 Player.DirectionalInputSyncCache
localInputCache = player.LocalInputCache;
33340 {
33343 }
33344 Main.DroneCameraTracker.Track(this);
33345 }
33346 if (flag)
33347 {
33349 return;
33350 }
33359 {
33361 }
33362 bool flag6 = velocity.Y == 0f;
33365 {
33367 }
33369 {
33371 }
33373 float num3 = Utils.Remap(
localAI[0], 0f, 5f, 0f, 1f) * Utils.Remap(
localAI[0], 5f, 15f, 1f, 0f);
33377 {
33382 }
33384 {
33385 activeSound.Volume =
num4;
33386 activeSound.Position =
base.Center;
33387 activeSound.Pitch = Utils.Clamp(Utils.Remap(
localAI[1], 0f, 100f, -1f, 1f) +
num3, -1f, 1f);
33388 }
33389 float num5 = 0.15f;
33391 {
33393 velocity.X *= 0.97f;
33395 {
33399 }
33400 }
33401 else
33402 {
33408 {
33410 velocity.X *= 0.97f;
33412 }
33413 }
33414 velocity.Y +=
num5;
33417 {
33418 velocity.Y *= 0.95f;
33419 }
33421 {
33423 }
33427 {
33432 for (
int i = 0;
i <
num9;
i++)
33433 {
33438 {
33439 break;
33440 }
33441 }
33443 {
33444 for (
int j = 0;
j < 2;
j++)
33445 {
33446 if (!(Main.rand.NextFloat() < 0.66f))
33447 {
33449 Vector2 value = Main.rand.NextVector2CircularEdge(2.5f, 1f) * 0.5f;
33451 {
33452 value.Y *= -1f;
33453 }
33454 Dust.NewDustPerfect(
vector6, (Main.rand.Next(2) == 0) ? 31 : 16,
value, 127);
33455 }
33456 }
33457 }
33458 }
33459 if (Main.netMode == 2 && Main.player.IndexInRange(
owner) && Main.player[
owner].active)
33460 {
33462 }
33463 }
static float Lerp(float value1, float value2, float amount)
static float WrapAngle(float angle)
static float Max(float value1, float value2)
static SlotId PlayTrackedLoopedSound(SoundStyle style, Vector2 position, ActiveSound.LoopedPlayCondition loopingCondition=null)
static ActiveSound GetActiveSound(SlotId id)
static readonly LegacySoundStyle JimsDrone
static SlotId FromFloat(float value)