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

◆ AI_167_SparkleGuitar()

void Terraria.Projectile.AI_167_SparkleGuitar ( )
inlineprivate

Definition at line 49398 of file Projectile.cs.

49399 {
49400 //IL_0047: Unknown result type (might be due to invalid IL or missing references)
49401 //IL_004c: Unknown result type (might be due to invalid IL or missing references)
49402 //IL_0065: Unknown result type (might be due to invalid IL or missing references)
49403 //IL_006a: Unknown result type (might be due to invalid IL or missing references)
49404 //IL_006f: Unknown result type (might be due to invalid IL or missing references)
49405 //IL_0071: Unknown result type (might be due to invalid IL or missing references)
49406 //IL_0072: Unknown result type (might be due to invalid IL or missing references)
49407 //IL_0079: Unknown result type (might be due to invalid IL or missing references)
49408 //IL_007e: Unknown result type (might be due to invalid IL or missing references)
49409 //IL_0083: Unknown result type (might be due to invalid IL or missing references)
49410 //IL_0085: Unknown result type (might be due to invalid IL or missing references)
49411 //IL_0086: Unknown result type (might be due to invalid IL or missing references)
49412 //IL_0095: Unknown result type (might be due to invalid IL or missing references)
49413 //IL_009a: Unknown result type (might be due to invalid IL or missing references)
49414 //IL_009f: Unknown result type (might be due to invalid IL or missing references)
49415 //IL_00a2: Unknown result type (might be due to invalid IL or missing references)
49416 //IL_00a4: Unknown result type (might be due to invalid IL or missing references)
49417 //IL_00a5: Unknown result type (might be due to invalid IL or missing references)
49418 //IL_00a6: Unknown result type (might be due to invalid IL or missing references)
49419 //IL_00a9: Unknown result type (might be due to invalid IL or missing references)
49420 //IL_00c1: Unknown result type (might be due to invalid IL or missing references)
49421 //IL_00c6: Unknown result type (might be due to invalid IL or missing references)
49422 //IL_00cb: Unknown result type (might be due to invalid IL or missing references)
49423 //IL_00cf: Unknown result type (might be due to invalid IL or missing references)
49424 //IL_00d9: Unknown result type (might be due to invalid IL or missing references)
49425 float num = 90f;
49426 if ((localAI[0] += 1f) >= num - 1f)
49427 {
49428 Kill();
49429 return;
49430 }
49431 float num2 = localAI[0] / num;
49432 Vector2 center = Main.player[owner].Center;
49433 Vector2 vector = default(Vector2);
49434 ((Vector2)(ref vector))._002Ector(ai[0], ai[1]);
49435 Vector2 vector2 = -velocity;
49436 Vector2 value = center + vector2 * 2f;
49437 Vector2 value2 = vector + vector2 * (1f - num2 * 3f);
49438 base.Center = Vector2.CatmullRom(value, center, vector, value2, num2);
49439 if (type == 856)
49440 {
49441 Vector2 center2 = base.Center;
49442 Color hotPink = Color.HotPink;
49443 Lighting.AddLight(center2, ((Color)(ref hotPink)).ToVector3() * 0.3f);
49444 rotation = (float)Math.PI * 2f * num2 * 1f;
49445 }
49446 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...

References Terraria.Lighting.AddLight(), and Terraria.Main.player.

+ Here is the call graph for this function: