Exemple #1
0
 // Token: 0x06001FD9 RID: 8153 RVA: 0x000987A8 File Offset: 0x000969A8
 public PickUpState(BaseWeaponLogic weapon, BaseWeaponDecorator decorator) : base(weapon, decorator)
 {
     this._transitionTime = Mathf.Max(WeaponFeedbackManager.Instance.WeaponAnimation.PickUpDuration, (float)(weapon.Config.SwitchDelayMilliSeconds / 1000));
     if (decorator.IsMelee)
     {
         this._currentRotation = -90f;
         if (base.Decorator)
         {
             base.Decorator.CurrentRotation = Quaternion.Euler(0f, 0f, this._currentRotation);
             base.Decorator.CurrentPosition = decorator.DefaultPosition;
             base.Decorator.IsEnabled       = true;
         }
     }
     else
     {
         this._currentRotation = WeaponFeedbackManager.Instance.WeaponAnimation.PutDownAngles;
         this._pivotOffset     = -WeaponFeedbackManager.Instance._pivotPoint.localPosition;
         if (base.Decorator)
         {
             base.Decorator.CurrentRotation = Quaternion.Euler(WeaponFeedbackManager.Instance.WeaponAnimation.PutDownAngles, 0f, 0f);
             base.Decorator.CurrentPosition = Quaternion.AngleAxis(this._currentRotation, Vector3.right) * base.PivotVector;
             base.Decorator.IsEnabled       = true;
         }
     }
     LevelCamera.ResetZoom();
 }
 // Token: 0x06001F17 RID: 7959 RVA: 0x0001484E File Offset: 0x00012A4E
 public override void Stop()
 {
     base.FireHandler.Stop();
     if (this._scopeOpen)
     {
         this._scopeOpen = false;
         if (this._isLocal)
         {
             LevelCamera.ResetZoom();
         }
     }
 }
 // Token: 0x06001F03 RID: 7939 RVA: 0x00095FA4 File Offset: 0x000941A4
 public override void Stop()
 {
     base.FireHandler.Stop();
     if (this._isIronsight)
     {
         this._isIronsight = false;
         if (this._isLocal)
         {
             LevelCamera.ResetZoom();
         }
         if (WeaponFeedbackManager.Instance.IsIronSighted)
         {
             WeaponFeedbackManager.Instance.ResetIronSight();
         }
     }
 }