private void CallbackPartExplode(GameEvents.ExplosionReaction action) { Log.Info("CallbackPartExplode"); //this.newScene = true; //this.sceneReady = true; this.specialScene = true; //lastSceneUpdate = Time.realtimeSinceStartup; }
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); } }
private void OnPartExplode(GameEvents.ExplosionReaction data) { //Debug.Log("CLSAddon::OnPartExplode"); }
void OnPartExplode(GameEvents.ExplosionReaction er) { BuildBalancerList(FlightGlobals.ActiveVessel); }
public void onPartExplodeHook(GameEvents.ExplosionReaction data) { KDMXHandler.handleHook("onPartExplode"); }