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

◆ BetsySharpnel()

void Terraria.Projectile.BetsySharpnel ( int npcIndex)
inlineprivate

Definition at line 44159 of file Projectile.cs.

44160 {
44161 if (ai[1] != -1f && owner == Main.myPlayer)
44162 {
44163 Vector2 spinningpoint = new Vector2(0f, 6f);
44164 Vector2 center = base.Center;
44165 float num = (float)Math.PI / 4f;
44166 int num2 = 5;
44167 float num3 = (0f - num * 2f) / (float)(num2 - 1);
44168 for (int i = 0; i < num2; i++)
44169 {
44170 int num4 = NewProjectile(GetProjectileSource_FromThis(), center, spinningpoint.RotatedBy(num + num3 * (float)i), 710, damage, knockBack, owner, 0f, -1f);
44171 Projectile p = Main.projectile[num4];
44173 }
44174 }
44175 }
const double PI
Definition Math.cs:16
IEntitySource GetProjectileSource_FromThis()
void CopyLocalNPCImmunityTimes(Projectile p)
static int NewProjectile(IEntitySource spawnSource, Vector2 position, Vector2 velocity, int Type, int Damage, float KnockBack, int Owner=-1, float ai0=0f, float ai1=0f, float ai2=0f)

References Terraria.Main.myPlayer, System.Math.PI, and Terraria.Main.projectile.

Referenced by Terraria.Projectile.Damage().