// Token: 0x0600018E RID: 398 RVA: 0x0000E098 File Offset: 0x0000C298
 private void RagdollAttackDefendTargeting(SmartRagdollController.Logic chaseLogic)
 {
     if (this.ragdollFound == null)
     {
         this.ragdollFound = RagdollDatabase.ClosestRagdoll(this.simulatedRagdollCore.position, chaseLogic);
     }
     if (this.ragdollFound != null)
     {
         if (this.ragdollFound.simulatedRagdoll.ragdollModeEnabled)
         {
             this.ragdollFound = RagdollDatabase.ClosestRagdoll(this.simulatedRagdollCore.position, chaseLogic);
         }
         if (this.ragdollFound == null)
         {
             return;
         }
         this.agentController.moveMethod = AgentController.MoveMethod.MoveToPosition;
         this.agentController.target     = this.ragdollFound.simulatedRagdollCore;
         if (Vector3.Distance(this.simulatedRagdollCore.position, this.ragdollFound.simulatedRagdollCore.position) < this.attackDistance)
         {
             this.ragdollFound.simulatedRagdoll.RagdollModeEnabled = true;
             return;
         }
     }
     else
     {
         if (chaseLogic == SmartRagdollController.Logic.Attack)
         {
             this.agentController.moveMethod = AgentController.MoveMethod.FollowTarget;
         }
         else
         {
             this.agentController.moveMethod = AgentController.MoveMethod.MoveToPosition;
         }
         this.AgentSetTarget();
     }
 }
Exemple #2
0
 // Token: 0x06000205 RID: 517 RVA: 0x00003D61 File Offset: 0x00001F61
 private void AssignClosestRagdoll()
 {
     this.closestRagdoll = RagdollDatabase.ClosestRagdoll(this.body.position);
 }
Exemple #3
0
 // Token: 0x060001CA RID: 458 RVA: 0x00003AC4 File Offset: 0x00001CC4
 private void AssignClosestRagdoll()
 {
     this.closestRagdoll = RagdollDatabase.ClosestRagdoll(this.canonBarrel.position);
 }