Lukas04
Official Terrarian
I have some Qeestions and i post theme here C:
it whould be nice if you make an Code Example for the Part where the Question is C:
Questions with an * are Currently important for me C:
Shuriken Effect *
How do i add an Dust Particle and an Sound if an Projectile Hits an Wall?
An Code Example for a Shuriken Like Effect whould be cool!
Dust Effect on Buff *
How do i make an Dust Effect if an Player/Enemie haves these Buff?
I mean like its at On Fire or Frostburn
Shoting More than One Bullet
I found these Code in an Video
Is the Code for an Shotgun,i just want to know what on these Code changes the Amount of Projectile its shoots at one click
Shooting Different Projectile with 1 Weapon *
How do i make an Weapon shoting an Extra Projectile with an Chance?
Example:I have an Gun that shoots Normal Bullets,but haves an Chance to Shots an Star with an Chance
How do i Add an "On Hit" Effect to Armor Effects? *
I want to make as Set Bonus for an Armor,that Enemies Are getting Inflict with "Shadowflame" on Hit with an Sword or Projectile
But i Currently only know how to do these for Weapons and Projectiles,but not as Armor Set
How do i let Spawn an Mod ore in Caverns after An Boss is Killed?
How do i Spawn Ore in Caverns after an Enemie is killed? I know to Spawn it,but it Spawn then OVerall in the World,its Replacing Trees too!
An Example whould be nice Again
Thats Enough Things first
It whould be Nice if the Important Questions get Answered
it whould be nice if you make an Code Example for the Part where the Question is C:
Questions with an * are Currently important for me C:
Shuriken Effect *
How do i add an Dust Particle and an Sound if an Projectile Hits an Wall?
An Code Example for a Shuriken Like Effect whould be cool!
Dust Effect on Buff *
How do i make an Dust Effect if an Player/Enemie haves these Buff?
I mean like its at On Fire or Frostburn
Shoting More than One Bullet
I found these Code in an Video
Code:
public static Vector2[] randomSpread(float speedX, float speedY, int angle, int num)
{
var posArray = new Vector2[num];
float spread = (float)(angle * 0.0174532925);
float baseSpeed = (float)System.Math.Sqrt(speedX * speedX + speedY * speedY);
double baseAngle = System.Math.Atan2(speedX, speedY);
double randomAngle;
for (int i = 0; i < num; ++i)
{
randomAngle = baseAngle + (Main.rand.NextFloat() - 0.5f) * spread;
posArray[i] = new Vector2(baseSpeed * (float)System.Math.Sin(randomAngle), baseSpeed * (float)System.Math.Cos(randomAngle));
}
return (Vector2[])posArray;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
Vector2[] speeds = randomSpread(speedX, speedY, 8, 6);
for (int i = 0; i < 5; ++i)
{
Projectile.NewProjectile(position.X, position.Y, speeds[i].X, speeds[i].Y, type, damage, knockBack, player.whoAmI);
}
return false;
}
Is the Code for an Shotgun,i just want to know what on these Code changes the Amount of Projectile its shoots at one click
Shooting Different Projectile with 1 Weapon *
How do i make an Weapon shoting an Extra Projectile with an Chance?
Example:I have an Gun that shoots Normal Bullets,but haves an Chance to Shots an Star with an Chance
How do i Add an "On Hit" Effect to Armor Effects? *
I want to make as Set Bonus for an Armor,that Enemies Are getting Inflict with "Shadowflame" on Hit with an Sword or Projectile
But i Currently only know how to do these for Weapons and Projectiles,but not as Armor Set
How do i let Spawn an Mod ore in Caverns after An Boss is Killed?
How do i Spawn Ore in Caverns after an Enemie is killed? I know to Spawn it,but it Spawn then OVerall in the World,its Replacing Trees too!
An Example whould be nice Again
Thats Enough Things first
It whould be Nice if the Important Questions get Answered