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

◆ BetsySharpnel()

void Terraria.Projectile.BetsySharpnel ( int npcIndex)
inlineprivate

Definition at line 57362 of file Projectile.cs.

57363 {
57364 //IL_0034: Unknown result type (might be due to invalid IL or missing references)
57365 //IL_0039: Unknown result type (might be due to invalid IL or missing references)
57366 //IL_0061: Unknown result type (might be due to invalid IL or missing references)
57367 //IL_0062: Unknown result type (might be due to invalid IL or missing references)
57368 //IL_006e: Unknown result type (might be due to invalid IL or missing references)
57369 //IL_0074: Unknown result type (might be due to invalid IL or missing references)
57370 //IL_0076: Unknown result type (might be due to invalid IL or missing references)
57371 if (ai[1] != -1f && owner == Main.myPlayer)
57372 {
57373 Vector2 spinningpoint = default(Vector2);
57374 ((Vector2)(ref spinningpoint))._002Ector(0f, 6f);
57375 Vector2 center = base.Center;
57376 float num = (float)Math.PI / 4f;
57377 int num2 = 5;
57378 float num3 = (0f - num * 2f) / (float)(num2 - 1);
57379 for (int i = 0; i < num2; i++)
57380 {
57381 int num4 = NewProjectile(GetProjectileSource_FromThis(), center, spinningpoint.RotatedBy(num + num3 * (float)i), 710, damage, knockBack, owner, 0f, -1f);
57382 Projectile p = Main.projectile[num4];
57384 }
57385 }
57386 }
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
int damage
This will always be set in Projectile.NewProjectile based on the weapons damage and player stat modif...
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
IEntitySource GetProjectileSource_FromThis()
float knockBack
This will always be set in Projectile.NewProjectile based on the weapons knockback and player stat mo...
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)
This particular overload uses a Vector2 instead of X and Y to determine the actual spawn position and...

References Terraria.Main.myPlayer, and Terraria.Main.projectile.

Referenced by Terraria.Projectile.Damage().

+ Here is the caller graph for this function: