// Token: 0x0600B840 RID: 47168 RVA: 0x003AE4A4 File Offset: 0x003AC6A4 public void DrawSkeleton(Dictionary <EHumanBones, Vector3> bones) { try { if (bones.Count != 0) { CPlayer.smethod_0(bones, EHumanBones.HumanPelvis, EHumanBones.HumanLThigh1); CPlayer.smethod_0(bones, EHumanBones.HumanLThigh1, EHumanBones.HumanLThigh2); CPlayer.smethod_0(bones, EHumanBones.HumanLThigh2, EHumanBones.HumanLCalf); CPlayer.smethod_0(bones, EHumanBones.HumanLCalf, EHumanBones.HumanLFoot); CPlayer.smethod_0(bones, EHumanBones.HumanLFoot, EHumanBones.HumanLToe); CPlayer.smethod_0(bones, EHumanBones.HumanPelvis, EHumanBones.HumanRThigh1); CPlayer.smethod_0(bones, EHumanBones.HumanRThigh1, EHumanBones.HumanRThigh2); CPlayer.smethod_0(bones, EHumanBones.HumanRThigh2, EHumanBones.HumanRCalf); CPlayer.smethod_0(bones, EHumanBones.HumanRCalf, EHumanBones.HumanRFoot); CPlayer.smethod_0(bones, EHumanBones.HumanRFoot, EHumanBones.HumanRToe); CPlayer.smethod_0(bones, EHumanBones.HumanPelvis, EHumanBones.HumanSpine1); CPlayer.smethod_0(bones, EHumanBones.HumanSpine1, EHumanBones.HumanSpine2); CPlayer.smethod_0(bones, EHumanBones.HumanSpine2, EHumanBones.HumanSpine3); CPlayer.smethod_0(bones, EHumanBones.HumanSpine3, EHumanBones.HumanNeck); CPlayer.smethod_0(bones, EHumanBones.HumanNeck, EHumanBones.HumanHead); CPlayer.smethod_0(bones, EHumanBones.HumanSpine3, EHumanBones.HumanLCollarbone); CPlayer.smethod_0(bones, EHumanBones.HumanLCollarbone, EHumanBones.HumanLForearm1); CPlayer.smethod_0(bones, EHumanBones.HumanLForearm1, EHumanBones.HumanLForearm2); CPlayer.smethod_0(bones, EHumanBones.HumanLForearm2, EHumanBones.HumanLForearm3); CPlayer.smethod_0(bones, EHumanBones.HumanLForearm3, EHumanBones.HumanLPalm); CPlayer.smethod_0(bones, EHumanBones.HumanLPalm, EHumanBones.HumanLDigit11); CPlayer.smethod_0(bones, EHumanBones.HumanLDigit11, EHumanBones.HumanLDigit12); CPlayer.smethod_0(bones, EHumanBones.HumanLDigit12, EHumanBones.HumanLDigit13); CPlayer.smethod_0(bones, EHumanBones.HumanSpine3, EHumanBones.HumanRCollarbone); CPlayer.smethod_0(bones, EHumanBones.HumanRCollarbone, EHumanBones.HumanRForearm1); CPlayer.smethod_0(bones, EHumanBones.HumanRForearm1, EHumanBones.HumanRForearm2); CPlayer.smethod_0(bones, EHumanBones.HumanRForearm2, EHumanBones.HumanRForearm3); CPlayer.smethod_0(bones, EHumanBones.HumanRForearm3, EHumanBones.HumanRPalm); CPlayer.smethod_0(bones, EHumanBones.HumanRPalm, EHumanBones.HumanRDigit11); CPlayer.smethod_0(bones, EHumanBones.HumanRDigit11, EHumanBones.HumanRDigit12); CPlayer.smethod_0(bones, EHumanBones.HumanRDigit12, EHumanBones.HumanRDigit13); } } catch { } }
// Token: 0x0600B83E RID: 47166 RVA: 0x003AE15C File Offset: 0x003AC35C public void OnGUI() { try { if (Event.current.type == EventType.Repaint) { if (CGameWorld.activeGameworld) { Camera main = Camera.main; if (main) { CPlayer.LocalPlayer != null; foreach (Player player in CPlayer.Players) { if (player) { if (player.GetComponent <PlayerOwner>() != null) { CPlayer.LocalPlayer = player; } else { if (!CPlayer.bDraw) { break; } Vector3 vector = main.WorldToScreenPoint(player.Transform.position); if (vector.z >= 0.01f) { vector.y = (float)Screen.height - vector.y; float num = (float)Math.Floor((double)Vector3.Distance(player.Transform.position, main.transform.position)); if (num <= this.float_0) { string arg = (player.Profile.Info.RegistrationDate == 0) ? player.Profile.Info.Settings.Role.ToString(Class52.smethod_0(-1339809425)) : player.Profile.Info.Nickname; if (CPlayer.bDrawInformation) { GUIHelper2.DrawFont(new Vector2(vector.x, vector.y), string.Format(Class52.smethod_0(-1339809417), arg, num), Color.red); } if (CPlayer.bDrawLines) { this.DrawLine(player, CPlayer.vec2DrawLine); } if (CPlayer.bDraw2DBox || CPlayer.bDraw3DBox || CPlayer.bDrawSkeleton) { Dictionary <EHumanBones, Vector3> bones = CPlayer.GetBones(player); if (bones.Count != 0) { if (CPlayer.bDraw2DBox || CPlayer.bDraw3DBox) { this.DrawBoxes(player); } if (CPlayer.bDrawSkeleton && num <= 300f) { this.DrawSkeleton(bones); } } } } } } } } } } } } catch { } }