This Unity asset adds a full-featured case opening system to your game, inspired by CS:GO. Players can open cases to receive weapon skins with random rarity, StatTrak options, and float values. The system also provides inventory management, visual case rolling, and console commands for testing and debugging.

Key Features:

  • Inventory System: Store skins, cases, and keys.

  • Case Drop System: Items drop from cases based on configurable probabilities, including StatTrak and float values.

  • Case Roll Visualization: Smooth UI for spinning and opening cases.

  • Item Inspection: View your skins in the inventory.

  • Save & Load: Inventory persistence across sessions.

  • Debug Console: Add items, save, and load inventory via a simple console.

How to Use:

Creating Skins, Cases, and Keys:

1. In the Resources folder, right-click → CreateCaseOpening.

2. You will see three options: Skin, Case, Key. Each item inherits from the Item class and has Id, Name, and Icon.

3. Use the Define button to automatically generate a unique Id for optimization.

Skin:

  • Assign the weapon type (e.g., Glock, AWP).

  • Set rarity: 8 options. First two (Consumer, Industrial) drop normally, Contraband never drops. Use the remaining rarities for in-case drops.

Case:

  • Assign a key required for opening. If no key is assigned, the case can be opened freely.

  • Add a list of items that can drop.

  • Use Sort to organize drops visually.

Key:

  • Keys only have Id, Name, and Icon.

Obtaining Items in Inventory:

  • Use the in-game console (~) and type: give <item_id> (e.g., give 10).

  • You can also edit the Console script for quick testing by adding HandleInput("give 0") lines.

Adjusting Drop Chances:

  • In CaseDropSystem, modify the _skinDropChance dictionary to change probabilities:

  • Adjust these values to set item drop rates and StatTrak chances.

Saving & Loading Inventory:

  • Use the console commands: save <file_name> and load <file_name>.

Used Assets:

  • Weapon and case images inspired by CS:GO.

License:

No restrictions. Use freely. Attribution is optional.

Published 1 day ago
StatusReleased
CategoryAssets
Authoryugg0
GenreSimulation
Made withUnity
TagsAsset Pack, Unity
Code licenseUnlicense

Download

Download NowName your own price

Click download now to get access to the following files:

CaseOpeningSystem.rar 3.9 MB

Leave a comment

Log in with itch.io to leave a comment.