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

◆ DefaultToWhip()

void Terraria.Projectile.DefaultToWhip ( )
inline

Definition at line 10066 of file Projectile.cs.

10067 {
10068 width = 18;
10069 height = 18;
10070 aiStyle = 165;
10071 friendly = true;
10072 penetrate = -1;
10073 tileCollide = false;
10074 scale = 1f;
10075 ownerHitCheck = true;
10076 extraUpdates = 1;
10077 usesLocalNPCImmunity = true;
10081 }
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
static DamageClass SummonMeleeSpeed
This is a damage class used solely by vanilla whips. It benefits from melee attackSpeed bonuses.
T:Terraria.ModLoader.DamageClass is used to determine the application of item effects,...
int aiStyle
Selects which vanilla code to use for the AI method. Vanilla projectile AI styles are enumerated in t...
int penetrate
The remaining number of npc can this projectile hit before dying. (Or tile bounces)....
WhipSettings WhipSettings
bool friendly
If True, this projectile will hurt enemies (!F:Terraria.NPC.friendly) Defaults to false.
bool tileCollide
If true, the projectile will collide with tiles, usually bouncing or killing the tile depending on M:...
bool ownerHitCheck
If true, then this projectile will only deal damage if its owner has line of sight to the hit....
int extraUpdates
Additional update steps per tick. Useful for really fast projectiles such as Shadowbeam Staff....
bool usesLocalNPCImmunity
If true, this projectile manages it's own immunity timers for each npc. Use this rather than F:Terra...
int localNPCHitCooldown
When used in conjunction with F:Terraria.Projectile.usesLocalNPCImmunity, determines how many ticks m...
static void VanillaWhipSettings(Projectile proj, out int segments, out float rangeMultiplier)
float scale
Scales how large the projectile will be drawn. Will also affect the hitbox (F:Terraria....
DamageClass DamageType
The damage type assigned to this projectile, represented as a DamageClass. Leave blank or use DamageC...

References Terraria.Projectile.aiStyle, Terraria.Projectile.DamageType, Terraria.Projectile.extraUpdates, Terraria.Projectile.friendly, Terraria.Entity.height, Terraria.Projectile.localNPCHitCooldown, Terraria.Projectile.ownerHitCheck, Terraria.Projectile.penetrate, Terraria.WhipSettings.RangeMultiplier, Terraria.Projectile.scale, Terraria.WhipSettings.Segments, Terraria.ModLoader.DamageClass.SummonMeleeSpeed, Terraria.Projectile.tileCollide, Terraria.Projectile.usesLocalNPCImmunity, Terraria.Projectile.VanillaWhipSettings(), and Terraria.Entity.width.

Referenced by Terraria.Projectile.SetDefaults().

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