// Token: 0x060003C2 RID: 962 RVA: 0x00011ED4 File Offset: 0x000100D4 private void ClientLocalDeath() { global::Ragdoll ragdoll = this.DeathRagdoll(); if (base.localControlled) { if (!global::actor.forceThirdPerson) { global::CameraMount componentInChildren = base.GetComponentInChildren <global::CameraMount>(); if (componentInChildren && componentInChildren.open) { global::RagdollTransferInfoProvider ragdollTransferInfoProvider = base.controller as global::RagdollTransferInfoProvider; Transform transform; bool flag; if (ragdollTransferInfoProvider != null) { try { flag = ragdollTransferInfoProvider.RagdollTransferInfo.FindHead(ragdoll.transform, out transform); } catch (Exception ex) { Debug.LogException(ex, this); transform = null; flag = false; } } else { transform = null; flag = false; } if (flag) { Vector3 vector = transform.InverseTransformPoint(componentInChildren.transform.position); vector.y += 0.08f; Vector3 vector2 = transform.TransformPoint(vector); ragdoll.origin += vector2 - transform.position; global::CameraMount cameraMount = global::CameraMount.CreateTemporaryCameraMount(componentInChildren, transform); cameraMount.camera.nearClipPlane = 0.02f; } global::ArmorModelRenderer local = ragdoll.GetLocal <global::ArmorModelRenderer>(); if (local) { local.enabled = false; } } else { Debug.Log("No camera?"); } } Object.Destroy(base.GetComponent <global::LocalDamageDisplay>()); } }
// Token: 0x060003BF RID: 959 RVA: 0x00011C90 File Offset: 0x0000FE90 private global::Ragdoll CreateRagdoll() { global::CharacterRagdollTrait trait = base.GetTrait <global::CharacterRagdollTrait>(); if (trait) { GameObject gameObject = Object.Instantiate(trait.ragdollPrefab, base.transform.position, base.transform.rotation) as GameObject; global::Ragdoll component = gameObject.GetComponent <global::Ragdoll>(); component.sourceMain = base.idMain; this._ragdollInstance = gameObject; Object.Destroy(gameObject, 80f); this.deathShot.LinkRagdoll(base.transform, gameObject); global::ArmorModelRenderer local = base.GetLocal <global::ArmorModelRenderer>(); global::ArmorModelRenderer local2 = component.GetLocal <global::ArmorModelRenderer>(); if (local && local2) { local2.BindArmorModels(local.GetArmorModelMemberMapCopy()); } return(component); } return(null); }