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

◆ LightDisc_Bounce()

void Terraria.Projectile.LightDisc_Bounce ( Vector2 hitPoint,
Vector2 normal )
inlineprivate

Definition at line 19325 of file Projectile.cs.

19326 {
19327 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
19328 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
19329 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
19330 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
19331 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
19332 //IL_001a: Unknown result type (might be due to invalid IL or missing references)
19333 //IL_002e: Unknown result type (might be due to invalid IL or missing references)
19334 //IL_0034: Unknown result type (might be due to invalid IL or missing references)
19335 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
19336 //IL_003f: Unknown result type (might be due to invalid IL or missing references)
19337 //IL_004e: Unknown result type (might be due to invalid IL or missing references)
19338 //IL_005f: Unknown result type (might be due to invalid IL or missing references)
19339 //IL_0065: Unknown result type (might be due to invalid IL or missing references)
19340 //IL_007c: Unknown result type (might be due to invalid IL or missing references)
19341 //IL_0081: Unknown result type (might be due to invalid IL or missing references)
19342 //IL_0090: Unknown result type (might be due to invalid IL or missing references)
19343 //IL_0095: Unknown result type (might be due to invalid IL or missing references)
19344 //IL_00a0: Unknown result type (might be due to invalid IL or missing references)
19345 //IL_00a5: Unknown result type (might be due to invalid IL or missing references)
19346 Vector2 spinningpoint = Vector2.Reflect(velocity, normal);
19347 for (int i = 0; i < 4; i++)
19348 {
19349 Dust dust = Dust.NewDustPerfect(hitPoint, 306, spinningpoint.RotatedBy((float)Math.PI / 4f * Main.rand.NextFloatDirection()) * 0.6f * Main.rand.NextFloat(), 200, default(Color), 1.6f);
19350 dust.color = Color.Lerp(new Color(219, 253, 0), Color.Cyan, Main.rand.NextFloat());
19351 Dust dust2 = Dust.CloneDust(dust);
19352 dust2.color = Color.White;
19353 dust2.scale = 1f;
19354 dust2.alpha = 50;
19355 }
19356 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33

References Terraria.Dust.CloneDust(), Terraria.Dust.NewDustPerfect(), Terraria.Main.rand, and Terraria.Entity.velocity.

Referenced by Terraria.Projectile.Damage(), and Terraria.Projectile.HandleMovement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: