コード例 #1
0
 public Blast()
 {
     Projectile = new BlastProjectile
     {
         NumberOfPenetratableUnits = 1,
         UnitHitAction = new BlastHit()
     };
     Cooldown = 1f;
     EffectiveDuration = 0.5f;
     SlugsCount = 25;
     SlugSpeed = 50;
     Angle = 0.21f;
     ValidTargets = Targets.All;
     DisableControllingMovement = true;
 }
コード例 #2
0
 public GatlingGun()
 {
     Projectile = new BlastProjectile
     {
         UnitHitAction = new SingleTargetDamage
         {
             Damage = 85,
             AttackType = AttackType.Bullet
         },
         NumberOfPenetratableUnits = 1
     };
     Cooldown = 0.15f;
     EffectiveDuration = 0.15f;
     Speed = 50;
     ValidTargets = Targets.All;
     DisableControllingMovement = true;
 }
コード例 #3
0
 public CannonballShot()
 {
     Projectile = new BlastProjectile
     {
         UnitHitAction = new SingleTargetDamage
         {
             Damage = 250,
             AttackType = AttackType.Bullet
         },
         NumberOfPenetratableUnits = 5,
     };
     Projectile.Scale = new Vector3(3, 3, 3);
     Cooldown = 0.9f;
     EffectiveDuration = 0.5f;
     Speed = 50;
     ValidTargets = Targets.All;
     DisableControllingMovement = true;
 }
コード例 #4
0
 public BlastProjectile(BlastProjectile copy)
     : base(copy)
 {
     UnitHitAction = copy.UnitHitAction;
     NumberOfPenetratableUnits = copy.NumberOfPenetratableUnits;
 }
コード例 #5
0
 public Revolver()
 {
     Projectile = new BlastProjectile
     {
         UnitHitAction = new SingleTargetDamage
             {
                 Damage = 50
             },
         NumberOfPenetratableUnits = 1
     };
     Cooldown = 0.4f;
     InitDelay = 0;
     EffectiveDuration = 0.4f;
     Speed = 50;
     ValidTargets = Targets.All;
     DisableControllingMovement = true;
     ClipSize = 6;
 }