Example #1
0
 protected override void OnControlEngauge()
 {
     base.OnControlEngauge();
     if (base.localControlled)
     {
         CameraMount componentInChildren = base.GetComponentInChildren <CameraMount>();
         if (componentInChildren != null)
         {
             componentInChildren.open = true;
         }
         this.contextProbe   = (this.contextProbe == null) ? base.AddAddon <ContextProbe>() : this.contextProbe;
         this.localRadiation = (this.localRadiation == null) ? base.AddAddon <LocalRadiationEffect>() : this.localRadiation;
         if (this.onceEngaged)
         {
             if (this.proxyTest != null)
             {
                 this.proxyTest.treatAsProxy = false;
             }
         }
         else
         {
             this.proxyTest   = base.GetComponent <PlayerProxyTest>();
             this.onceEngaged = true;
         }
         base.enabled = true;
     }
 }
Example #2
0
 protected override void OnControlEngauge()
 {
     base.OnControlEngauge();
     if (base.localControlled)
     {
         CameraMount componentInChildren = base.GetComponentInChildren<CameraMount>();
         if (componentInChildren)
         {
             componentInChildren.open = true;
         }
         this.contextProbe = (!this.contextProbe ? base.AddAddon<ContextProbe>() : this.contextProbe);
         this.localRadiation = (!this.localRadiation ? base.AddAddon<LocalRadiationEffect>() : this.localRadiation);
         if (!this.onceEngaged)
         {
             this.proxyTest = base.GetComponent<PlayerProxyTest>();
             this.onceEngaged = true;
         }
         else if (this.proxyTest)
         {
             this.proxyTest.treatAsProxy = false;
         }
         base.enabled = true;
     }
 }