Exemple #1
0
        // Attach Sputnik to the ship
        public virtual void Attach(SputnikShip sp)
        {
            this.ai = sp.GetAI();
            this.attachedShip = sp;
            m_frozenCount = 0;
            if (this is Tractorable) ((Tractorable)this).IsTractored = false;
            sputnikDetached = false;
            timeSinceDetached = 0;
            Zindex = 0.26f;

            if (this.health < this.MaxHealth / 2)
                this.health = this.MaxHealth / 2;

            sp.SputnikAttach(this);
        }
Exemple #2
0
 // Attach Sputnik to the ship
 public void Attach(SputnikShip sp)
 {
     this.previousAI = this.ai;
     this.ai = sp.GetAI();
 }