コード例 #1
0
 internal void setVPI(Vessel thisVessel, LCARS_VesselPartsInventory thisVPI, LCARS_PowerSystem thisPowSys)
 {
     this.VPI        = thisVPI;
     this.MotherShip = thisVessel;
     this.PowSys     = thisPowSys;
     this.PT1        = this.PowSys.setPowerTaker("SensorArray", "SubSystem", 1250, 2500, 5000);
 }
コード例 #2
0
 internal void SetMotherShip(Vessel MS, LCARS_PowerSystem thisPowSys)
 {
     this.CurrentMotherShip = MS;
     //FlightGlobals.ActiveVessel
     this.PowSys = thisPowSys;
     PT          = this.PowSys.setPowerTaker("PlanetScanner", "SubSystem", 1250, 1000, 0);
 }
コード例 #3
0
        /*public override void onPartDestroy()
         * {
         *  this.VPI.scanVessel();
         * }*/

        public void init()
        {
            if (PowSys == null)
            {
                PowSys = new LCARS_PowerSystem();
                PowSys.SetShip(this.CurrentMotherShip);
                PT1 = this.PowSys.setPowerTaker("TransporterSystem", "SubSystem", 1250, 2500, 500);
            }

            if (planetScanner == null)
            {
                planetScanner = new LCARS_PlanetScanner();
                LCARS_Utilities.SetLoadDistance(100000, 100000);
            }

            /*
             */


            if (TransporterSound == null)
            {
                TransporterSound = new FXGroup("TransporterSound");
                GameObject audioObj = new GameObject();
                audioObj.transform.position         = FlightGlobals.ActiveVessel.transform.position;
                audioObj.transform.parent           = FlightGlobals.ActiveVessel.transform; // add to parent
                TransporterSound.audio              = audioObj.AddComponent <AudioSource>();
                TransporterSound.audio.dopplerLevel = 0f;
                TransporterSound.audio.Stop();
                TransporterSound.audio.clip = GameDatabase.Instance.GetAudioClip(TransporterSoundFile);
                TransporterSound.audio.loop = false;
                TransporterSound.audio.Play();
                TransporterSound.audio.enabled = false;
                TransporterSound.audio.time    = 0;
            }
        }
コード例 #4
0
 public void setVPI(LCARS_VesselPartsInventory thisVPI, LCARS_PowerSystem thisPowSys)
 {
     this.VPI    = thisVPI;
     this.PowSys = thisPowSys;
     PT1         = this.PowSys.setPowerTaker("WeaponSystems", "SubSystem", 1250, 0, 0);
     PT2         = this.PowSys.setPowerTaker("PhaserBanks", "SubSystem", 1250, 5000, 0);
 }
コード例 #5
0
 public void setVPI(Vessel thisVessel, LCARS_VesselPartsInventory thisVPI, LCARS_CargoBay thisSTCB, LCARS_PowerSystem thisPowSys)
 {
     this.VPI           = thisVPI;
     this.STCB          = thisSTCB;
     TargetShipSelected = thisVessel;
     this.PowSys        = thisPowSys;
     PT1 = this.PowSys.setPowerTaker("FuelTransfer", "SubSystem", 1250, 1250, 0);
     PT2 = this.PowSys.setPowerTaker("FuelTankManager", "SubSystem", 1250, 1250, 0);
 }
 internal void SetShip(Vessel v, LCARS_PowerSystem thisPowSys)
 {
     this.ShipSelected = v;
     this.PowSys       = thisPowSys;
     PT = this.PowSys.setPowerTaker("StructuralIntagrityField", "SubSystem", 1250, 10000f, 0);
 }
コード例 #7
0
 public void setVPI(LCARS_VesselPartsInventory thisVPI, LCARS_PowerSystem thisPowSys)
 {
     this.VPI    = thisVPI;
     this.PowSys = thisPowSys;
     PT1         = this.PowSys.setPowerTaker("TransporterSystem", "SubSystem", 1250, 2500, 500);
 }
コード例 #8
0
 internal void SetShip(Vessel v, LCARS_PowerSystem thisPowSys)
 {
     this.ShipSelected = v;
     this.PowSys       = thisPowSys;
     PT1 = this.PowSys.setPowerTaker("CloakingDevice", "SubSystem", 2500, 50000f, 0);
 }
コード例 #9
0
 public void setVPI(LCARS_VesselPartsInventory thisVPI, LCARS_PowerSystem thisPowSys)
 {
     this.VPI    = thisVPI;
     this.PowSys = thisPowSys;
     PT1         = this.PowSys.setPowerTaker("PhotonTorpedo", "SubSystem", 0, 10000f, 0);
 }