public void DropWeapon(EWeaponSlotType slot) { if (slot == EWeaponSlotType.None || slot == EWeaponSlotType.GrenadeWeapon) { Logger.Error("drop weapon in slot none"); return; } var lastWeapon = _weaponBagLogic.GetWeaponInfo(slot); if (SingletonManager.Get <WeaponConfigManager>().IsC4(lastWeapon.Id)) { _playerEntity.RemoveC4(); } Logger.DebugFormat("DropWeapon {0}", slot); _weaponActionListener.OnDrop(_playerEntity, slot); _slotAuxiliary.OnWpDrop(slot); }
public void OnDrop(Entity playerEntity, EWeaponSlotType slot) { _weaponActionListener.OnDrop(playerEntity, slot); }