// Token: 0x06000367 RID: 871 RVA: 0x0001D0C4 File Offset: 0x0001B2C4 private void Start() { if (this.m_nview && this.m_nview.IsValid() && this.m_nview.IsOwner()) { Humanoid humanoid = this.m_character as Humanoid; if (humanoid) { humanoid.EquipBestWeapon(null, null, null, null); } } }
// Token: 0x06000371 RID: 881 RVA: 0x0001E220 File Offset: 0x0001C420 private ItemDrop.ItemData SelectBestAttack(Humanoid humanoid, float dt) { if (this.m_targetCreature || this.m_targetStatic) { this.m_updateWeaponTimer -= dt; if (this.m_updateWeaponTimer <= 0f && !this.m_character.InAttack()) { this.m_updateWeaponTimer = 1f; Character hurtFriend; Character friend; base.HaveFriendsInRange(this.m_viewRange, out hurtFriend, out friend); humanoid.EquipBestWeapon(this.m_targetCreature, this.m_targetStatic, hurtFriend, friend); } } return(humanoid.GetCurrentWeapon()); }