744 {
754 {
758 }
759 for (
int i = 0; i <
oldPos.Length; i++)
760 {
765 }
766 }
static int[] TrailCacheLength
The length of the trail to store. Each projectile type defaults to 10. Use for drawing trails....
This class allows you to modify and use hooks for all projectiles, including vanilla projectiles....
This class serves as a place for you to place all your properties and hooks for each projectile....
float[] oldRot
Holds the value of F:Terraria.Projectile.rotation from previous updates from newest to oldest....
int[] oldSpriteDirection
Holds the value of F:Terraria.Projectile.spriteDirection from previous updates from newest to oldest....
Vector2[] oldPos
Holds the value of F:Terraria.Entity.position from previous updates from newest to oldest....
void SetDefaults(int Type)
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
ModProjectile ModProjectile
The ModProjectile instance that controls the behavior of this projectile. This property is null if th...
GlobalProjectile[] _globals