Beispiel #1
0
 public AndromedaMachineGun(AndromedaGunBase owner, Vector2 relativePosition, float rotation = 0, float[] savedPositions = null) : base(owner, relativePosition, rotation, savedPositions)
 {
     turnSpeed    = (float)Math.PI / 60;
     turretLength = 59 - 16;
     texture      = Miasma.EntityExtras[31];
     origin       = new Vector2(16, 16);
 }
Beispiel #2
0
 public override void InfectingUpdate()
 {
     other = ((AndromedaGunBase)owner).OtherGun();
     if (other == null)
     {
         AimToward((float)Math.PI / 2);
     }
     else
     {
         if (counter <= 0)
         {
             counter = 60;
         }
         if (counter > 0)
         {
             counter--;
             if (counter <= 45 && counter > 15 && counter % 5 == 0)
             {
                 Shoot();
             }
         }
         AimTowardAbsolute(other.Position);
     }
 }
Beispiel #3
0
 public GunPair(AndromedaGunBase gun1, AndromedaGunBase gun2)
 {
     guns[0] = gun1;
     guns[1] = gun2;
 }