// Token: 0x06000161 RID: 353 RVA: 0x000033F6 File Offset: 0x000015F6 public Material GetFaceMaterial(RagdollStylePack.SkinType requestedSkin, RagdollStylePack.FaceType requestedFace) { if (RagdollStylePack.GetSkin(requestedSkin, this.stylePack).faceColor != RagdollStylePack.FaceColor.White) { return(RagdollStylePack.GetFace(requestedFace, this.stylePack).materialDark); } return(RagdollStylePack.GetFace(requestedFace, this.stylePack).materialLight); }
// Token: 0x06000083 RID: 131 RVA: 0x00009E88 File Offset: 0x00008088 public static RagdollStylePack.Skin GetSkin(RagdollStylePack.SkinType skinType, RagdollStylePack ragdollStylePack) { for (int i = 0; i < ragdollStylePack.skins.Length; i++) { if (ragdollStylePack.skins[i].type == skinType) { return(ragdollStylePack.skins[i]); } } return(new RagdollStylePack.Skin()); }
// Token: 0x06000164 RID: 356 RVA: 0x0000D9D4 File Offset: 0x0000BBD4 public static void AssignSmartRagdollSkin(Transform ragdoll, RagdollStylePack.SkinType skinType) { RagdollStyleManager smartRagdollStyleProperties = RagdollStyleManager.GetSmartRagdollStyleProperties(ragdoll); if (smartRagdollStyleProperties == null) { return; } smartRagdollStyleProperties.assignRandomSkin = false; smartRagdollStyleProperties.skin = skinType; smartRagdollStyleProperties.StyleUpdate(); }
// Token: 0x060003FE RID: 1022 RVA: 0x0001765C File Offset: 0x0001585C private int LogRagdoll(RagdollStylePack.SkinType skin, List <RagdollStylePack.SkinType> ragdollSkinList) { if (ragdollSkinList.Count > 0) { foreach (RagdollStylePack.SkinType skinType in ragdollSkinList) { if (skin == skinType) { return(1); } } return(0); } return(0); }
// Token: 0x0600040C RID: 1036 RVA: 0x00017970 File Offset: 0x00015B70 private bool RagdollIsAntiTouchBasedOnSkin(RagdollStylePack.SkinType skin) { if (this.allAreAntiTouch) { return(true); } if (this.nonTouchableRagdolls.Count <= 0) { return(false); } for (int i = 0; i < this.nonTouchableRagdolls.Count; i++) { if (this.nonTouchableRagdolls[i] == skin) { return(true); } } return(false); }
// Token: 0x06000160 RID: 352 RVA: 0x000033E3 File Offset: 0x000015E3 public Material GetSkinMaterial(RagdollStylePack.SkinType requestedSkin) { return(RagdollStylePack.GetSkin(requestedSkin, this.stylePack).material); }