Ejemplo n.º 1
0
 // Token: 0x06001FCD RID: 8141 RVA: 0x00014F4C File Offset: 0x0001314C
 protected WeaponState(BaseWeaponLogic weapon, BaseWeaponDecorator decorator)
 {
     this._time      = 0f;
     this._weapon    = weapon;
     this._decorator = decorator;
     this._isRunning = (this._weapon != null);
 }
Ejemplo n.º 2
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();
 }
Ejemplo n.º 3
0
 // Token: 0x06001FC0 RID: 8128 RVA: 0x00014E99 File Offset: 0x00013099
 private void PutDownWeapon(BaseWeaponLogic weapon, BaseWeaponDecorator decorator, bool destroy = false)
 {
     if (this._putDownWeaponState != null)
     {
         this._putDownWeaponState.Finish();
     }
     this._putDownWeaponState = new WeaponFeedbackManager.PutDownState(weapon, decorator, destroy);
 }
Ejemplo n.º 4
0
 // Token: 0x06001FDD RID: 8157 RVA: 0x00098E78 File Offset: 0x00097078
 public PutDownState(BaseWeaponLogic weapon, BaseWeaponDecorator decorator, bool destroy = false) : base(weapon, decorator)
 {
     this._destroy         = destroy;
     this._currentRotation = decorator.CurrentRotation.eulerAngles.x;
     if (this._currentRotation > 300f)
     {
         this._currentRotation = 360f - this._currentRotation;
     }
     if (!decorator.IsMelee)
     {
         this._pivotOffset = -WeaponFeedbackManager.Instance._pivotPoint.localPosition;
     }
     this._transitionTime = WeaponFeedbackManager.Instance.WeaponAnimation.PutDownDuration;
     if (base.Weapon != null)
     {
         base.Weapon.IsWeaponActive = false;
     }
 }