Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 9th, 2020 141 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using Microsoft.Xna.Framework;
  3. using Microsoft.Xna.Framework.Graphics;
  4. using Terraria;
  5. using Terraria.ID;
  6. using Terraria.ModLoader;
  7.  
  8. namespace Skyanull.Projectiles
  9. {
  10.     public class AquamarineBolt : ModProjectile
  11.     {
  12.         public override void SetDefaults()
  13.         {
  14.             projectile.width = 16;
  15.             projectile.height = 16;
  16.             projectile.friendly = true;
  17.             projectile.penetrate = 3;                 //this is the projectile penetration
  18.             projectile.hostile = false;
  19.             projectile.magic = true;                        //this make the projectile do magic damage
  20.             projectile.tileCollide = true;                 //this make that the projectile does not go thru walls
  21.             projectile.ignoreWater = true;
  22.             projectile.alpha = 255;
  23.         }
  24.  
  25.         public override void AI()
  26.         {
  27.             //this is projectile dust
  28.             int DustID2 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 2f), projectile.width / 5, projectile.height / 5, 92, projectile.velocity.X * 0.2f, projectile.velocity.Y * 0.2f, 10, default(Color), 1.8f);
  29.             Main.dust[DustID2].noGravity = true;
  30.             //this make that the projectile faces the right way
  31.             projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f;
  32.         }
  33.     }
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top