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

◆ AI_173_HallowBossRainbowTrail()

void Terraria.Projectile.AI_173_HallowBossRainbowTrail ( )
inlineprivate

Definition at line 47888 of file Projectile.cs.

47889 {
47890 //IL_0043: Unknown result type (might be due to invalid IL or missing references)
47891 //IL_0053: Unknown result type (might be due to invalid IL or missing references)
47892 //IL_0059: Unknown result type (might be due to invalid IL or missing references)
47893 //IL_005a: Unknown result type (might be due to invalid IL or missing references)
47894 //IL_005f: Unknown result type (might be due to invalid IL or missing references)
47895 //IL_0084: Unknown result type (might be due to invalid IL or missing references)
47896 Opacity = Utils.GetLerpValue(0f, 60f, timeLeft, clamped: true) * Utils.GetLerpValue(660f, 600f, timeLeft, clamped: true);
47897 float num = (float)Math.PI / 360f;
47898 float num2 = 30f;
47899 velocity = velocity.RotatedBy(ai[0]);
47900 if (ai[0] < num)
47901 {
47902 ai[0] += num / num2;
47903 }
47904 rotation = velocity.ToRotation() + (float)Math.PI / 2f;
47905 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
int timeLeft
Time in ticks before this projectile will naturally despawn. Each update timeLeft is decreased by 1...
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...

References Terraria.Utils.GetLerpValue().

+ Here is the call graph for this function: