// Token: 0x06000A68 RID: 2664 RVA: 0x0002B024 File Offset: 0x00029224 public void ApplyCrouchOffset(ref global::CCTotem.PositionPlacement placement) { float num = placement.bottom.y + base.initialEyesOffsetY; float num2 = placement.originalTop.y - num; float num3 = placement.top.y - num2; float num4 = num3 - num; this.crouchUnits = ((!Mathf.Approximately(num4, 0f)) ? num4 : 0f); base.idMain.InvalidateEyesOffset(); }
// Token: 0x06000A6A RID: 2666 RVA: 0x0002B114 File Offset: 0x00029314 public void LocalPlayerUpdateCrouchState(global::CCMotor ccmotor, ref bool crouchFlag, ref bool crouchBlockFlag, ref global::Crouchable.Smoothing smoothing) { global::Crouchable.CrouchState crouchState; crouchState.CrouchBlocked = ccmotor.isCrouchBlocked; global::CCTotem.PositionPlacement?lastPositionPlacement = ccmotor.LastPositionPlacement; global::CCTotem.PositionPlacement positionPlacement = (lastPositionPlacement == null) ? new global::CCTotem.PositionPlacement(base.origin, base.origin, base.origin, ccmotor.ccTotemPole.MaximumHeight) : lastPositionPlacement.Value; crouchState.BottomY = positionPlacement.bottom.y; crouchState.TopY = positionPlacement.top.y; crouchState.InitialStandingHeight = positionPlacement.originalHeight; this.LocalPlayerUpdateCrouchState(ref crouchState, ref crouchFlag, ref crouchBlockFlag, ref smoothing); }
// Token: 0x06001983 RID: 6531 RVA: 0x00062164 File Offset: 0x00060364 private void BindPositions(global::CCTotem.PositionPlacement PositionPlacement) { if (this.OnBindPosition != null) { try { this.OnBindPosition(ref PositionPlacement, this.Tag); } catch (Exception ex) { Debug.LogException(ex, this); } } }
// Token: 0x06001866 RID: 6246 RVA: 0x0005BC8C File Offset: 0x00059E8C private void BindPositions(ref global::CCTotem.PositionPlacement placement, object Tag) { base.transform.position = placement.bottom; this.fpsCam.transform.position = placement.top - new Vector3(0f, 0.25f, 0f); }