// Token: 0x06002FD7 RID: 12247 RVA: 0x000CCF68 File Offset: 0x000CB168 public override void OnEnter() { base.OnEnter(); this.highestFallSpeed = 0f; if (base.isAuthority) { if (this.body) { TeamMask allButNeutral = TeamMask.allButNeutral; TeamIndex objectTeam = TeamComponent.GetObjectTeam(this.bodyGameObject); if (objectTeam != TeamIndex.None) { allButNeutral.RemoveTeam(objectTeam); } BullseyeSearch bullseyeSearch = new BullseyeSearch(); bullseyeSearch.filterByLoS = true; bullseyeSearch.maxDistanceFilter = 300f; bullseyeSearch.maxAngleFilter = HeadstompersFall.seekCone; bullseyeSearch.searchOrigin = this.body.footPosition; bullseyeSearch.searchDirection = Vector3.down; bullseyeSearch.sortMode = BullseyeSearch.SortMode.Angle; bullseyeSearch.teamMaskFilter = allButNeutral; bullseyeSearch.viewer = this.body; bullseyeSearch.RefreshCandidates(); HurtBox hurtBox = bullseyeSearch.GetResults().FirstOrDefault <HurtBox>(); this.seekTransform = ((hurtBox != null) ? hurtBox.transform : null); GameObject gameObject; if (hurtBox == null) { gameObject = null; } else { HealthComponent healthComponent = hurtBox.healthComponent; gameObject = ((healthComponent != null) ? healthComponent.gameObject : null); } this.seekBodyObject = gameObject; } this.SetOnHitGroundProvider(this.bodyMotor); } }