// Token: 0x060003FD RID: 1021 RVA: 0x000175F8 File Offset: 0x000157F8 private void LogEnteredRagdoll(Transform ragdoll) { this.ragdollSkin = RagdollStyleManager.GetSmartRagdollSkinType(ragdoll); if (this.OnAcceptableRagdollEnter != null) { this.OnAcceptableRagdollEnter(this.LogRagdoll(this.ragdollSkin, this.acceptableRagdolls)); } if (this.OnUnacceptableRagdollEnter != null) { this.OnUnacceptableRagdollEnter(this.LogRagdoll(this.ragdollSkin, this.UnacceptableRagdolls)); } }
// Token: 0x06000408 RID: 1032 RVA: 0x00017744 File Offset: 0x00015944 private void ApplyRagdollSettings(GameObject ragdoll) { if (this.spawnSpecificSkins.Count > 0) { RagdollStyleManager.AssignSmartRagdollSkin(ragdoll.transform, this.spawnSpecificSkins[UnityEngine.Random.Range(0, this.spawnSpecificSkins.Count)]); } this.antiTouchObject = ragdoll.GetComponentInChildren <AntiTouchObject>(); this.ragdollController = ragdoll.GetComponentInChildren <SmartRagdollController>(); this.agentController = this.ragdollController.agentController; if (this.antiTouchObject != null) { this.antiTouchObject.badForPlayer = this.RagdollIsAntiTouchBasedOnSkin(RagdollStyleManager.GetSmartRagdollSkinType(ragdoll.transform)); } if (this.ragdollController != null) { this.ragdollController.enableSuicide = this.suicide; this.ragdollController.suicideTimeFrame = this.suicideTimeFrame; this.ragdollController.doOnRagdollMode = SmartRagdollController.OnRagdollMode.Hide; if (this.agentController != null) { this.agentController.speed = this.ragdollRunSpeed; if (this.targetIsPlayer) { this.ragdollController.logic = SmartRagdollController.Logic.Attack; return; } if (this.targets.Count > 0) { this.ragdollController.useLogicConditions = false; this.agentController.target = this.targets[UnityEngine.Random.Range(0, this.targets.Count)]; this.agentController.moveMethod = AgentController.MoveMethod.MoveToPosition; return; } this.ragdollController.useLogicConditions = true; this.ragdollController.logic = SmartRagdollController.Logic.Explore; } } }