Пример #1
0
 private void CallbackPartExplode(GameEvents.ExplosionReaction action)
 {
     Log.Info("CallbackPartExplode");
     //this.newScene = true;
     //this.sceneReady = true;
     this.specialScene = true;
     //lastSceneUpdate = Time.realtimeSinceStartup;
 }
Пример #2
0
 private void OnExplosion(GameEvents.ExplosionReaction explosion)
 {
     //look at something new when there's an explosion
     if ((explosion.distance * explosion.distance) < maxDistance)
     {
         currentTarget = GetNewTarget();
     }
 }
        protected void OnPartDestroyed(GameEvents.ExplosionReaction p)
        {
            Utils.Debug.Log(SafeUntilFirstActivation);


            if (SafeUntilFirstActivation && !Unsafe)
            {
                Utils.Log("ReputationDestruction: ParDestroyed but was still safe");
                return;
            }

            float repScale = Utils.GetReputationScale(this.part.vessel.mainBody,
                                                      Vector3.Distance(this.part.vessel.mainBody.position, this.part.partTransform.position) - this.part.vessel.mainBody.Radius);
            float repLoss = repScale * BaseReputationHit;

            Utils.Log(String.Format("ReputationDestruction: PartDestroyed resulted in a loss of {0} reputation, scaled from {1} by {2}%", repLoss, BaseReputationHit, repScale * 100f));

            if (HighLogic.CurrentGame.Mode == Game.Modes.CAREER)
            {
                Reputation.Instance.AddReputation(repLoss, TransactionReasons.VesselLoss);
            }
        }
Пример #4
0
 private void OnPartExplode(GameEvents.ExplosionReaction data)
 {
     //Debug.Log("CLSAddon::OnPartExplode");
 }
Пример #5
0
 void OnPartExplode(GameEvents.ExplosionReaction er)
 {
     BuildBalancerList(FlightGlobals.ActiveVessel);
 }
Пример #6
0
 public void onPartExplodeHook(GameEvents.ExplosionReaction data)
 {
     KDMXHandler.handleHook("onPartExplode");
 }