Example #1
0
 public override void OnBulletDestruction(Bullet.DestroyType destroyType, SpeculativeRigidbody hitRigidbody, bool preventSpawningProjectiles)
 {
     for (int i = 0; i < 11; i++)
     {
         GameObject gameobject = base.BulletBank.CreateProjectileFromBank(this.Projectile.sprite.WorldCenter, (this.BulletManager.PlayerPosition() - this.Projectile.sprite.WorldCenter).ToAngle() + UnityEngine.Random.Range(-20, 20), "default");
         Projectile proj       = gameobject.GetComponent <Projectile>();
         proj.IgnoreTileCollisionsFor(2f);
     }
 }
Example #2
0
 public override void OnBulletDestruction(Bullet.DestroyType destroyType, SpeculativeRigidbody hitRigidbody, bool preventSpawningProjectiles)
 {
     if (preventSpawningProjectiles)
     {
         return;
     }
     for (int i = 0; i < 4; i++)
     {
         base.Fire(new Direction((float)(i * 45), DirectionType.Absolute, -1f), new Speed(7f, SpeedType.Absolute), new WallBullet());
     }
 }
    public override void OnBulletDestruction(Bullet.DestroyType destroyType, SpeculativeRigidbody hitRigidbody, bool preventSpawningProjectiles)
    {
        if (preventSpawningProjectiles)
        {
            return;
        }
        float num  = base.RandomAngle();
        float num2 = 60f;

        for (int i = 0; i < 6; i++)
        {
            base.Fire(new Direction(num + num2 * (float)i, DirectionType.Absolute, -1f), new Speed(8f, SpeedType.Absolute), new ShotgrubManAttack1.GrubBullet());
        }
    }
Example #4
0
 // Token: 0x060009DF RID: 2527 RVA: 0x0002FD34 File Offset: 0x0002DF34
 public override void OnBulletDestruction(Bullet.DestroyType destroyType, SpeculativeRigidbody hitRigidbody, bool preventSpawningProjectiles)
 {
     if (!preventSpawningProjectiles)
     {
         float num    = base.RandomAngle();
         float Amount = 30;
         float Angle  = 360 / Amount;
         for (int i = 0; i < Amount; i++)
         {
             base.Fire(new Direction(num + Angle * (float)i + 18, DirectionType.Absolute, -1f), new Speed(1f, SpeedType.Absolute), new SpeedUpBullet());
             base.Fire(new Direction(num + Angle * (float)i + 18, DirectionType.Absolute, -1f), new Speed(9f, SpeedType.Absolute), new WallBullet());
             //base.Fire(new Direction(num + Angle * (float)i + 12, DirectionType.Absolute, -1f), new Speed(9f, SpeedType.Absolute), new WallBullet());
             //base.Fire(new Direction(num + Angle * (float)i + 6, DirectionType.Absolute, -1f), new Speed(7f, SpeedType.Absolute), new WallBullet());
         }
         return;
     }
 }
Example #5
0
 public override void OnBulletDestruction(Bullet.DestroyType destroyType, SpeculativeRigidbody hitRigidbody, bool preventSpawningProjectiles)
 {
     if (this.BulletBank && this.BulletBank.aiActor && this.BulletBank.aiActor.TargetRigidbody)
     {
         base.BulletBank.Bullets.Add(EnemyDatabase.GetOrLoadByGuid("ec6b674e0acd4553b47ee94493d66422").bulletBank.GetBullet("bigBullet"));
         base.BulletBank.Bullets.Add(EnemyDatabase.GetOrLoadByGuid("1bc2a07ef87741be90c37096910843ab").bulletBank.GetBullet("reversible"));
     }
     if (!preventSpawningProjectiles)
     {
         float num    = base.RandomAngle();
         float Amount = 16;
         float Angle  = 360 / Amount;
         for (int i = 0; i < Amount; i++)
         {
             base.Fire(new Direction(num + Angle * (float)i, DirectionType.Absolute, -1f), new Speed(10f, SpeedType.Absolute), new WallBullet());
         }
         for (int i = -1; i < 2; i++)
         {
             base.Fire(new Direction((10 * i), DirectionType.Aim, -1f), new Speed(1f, SpeedType.Absolute), new SpeedUpBullet());
         }
     }
 }
Example #6
0
 public override void OnBulletDestruction(Bullet.DestroyType destroyType, SpeculativeRigidbody hitRigidbody, bool preventSpawningProjectiles)
 {
 }