branchrust_reboot/main/hackweek_fill_containers_randcancel

15 Commits over 92 Days - 0.01cph!

57 Days Ago
merge from main
57 Days Ago
Clean up
57 Days Ago
merge from main
57 Days Ago
Added two console commands ClearContainer and ClearContainer_radius
2 Months Ago
Massively refactor and streamline the filling logic to avoid a bunch of duplication In addition to `fillinventory` there's now use `fillcontainer` and `fillcontainer_radius` to fill containers with random items Works with storage containers and container io entities, prints out the ones filled, and warns if a container couldn't accept some of the items
2 Months Ago
merge from main
2 Months Ago
Changed fillContainer to a raycast instead of a radius check so it'll fill whatever container you're looking at. Added a new command called fillContainerInRadius which does what fillContainer previously did.
2 Months Ago
Added fillContainers command. It will fill boxes, barrels, TC's (anything with a container) with random items within 5 meters of the player. You can filter items by category too, same as the fill inventory command.
2 Months Ago
Apply shelf changes after code review. Fully implement now, use fillInventory to fill inventory with random items. You can filter by category too!
2 Months Ago
merge from main
3 Months Ago
merge from main
3 Months Ago
Refactored code so its more performative, scales better and doesnt contain unnecessary code duplication. Also added a Help string too.
3 Months Ago
Changed console command from printstring to fillInventory. Can now enter a category name to fill your inventory with items from that specific category. If you want random items type random instead of of a category name. I'll be refactoring this code to make this more performative and scale better.
5 Months Ago
Hidden items have been removed from the item list. (removed a bunch of the junk items) if the item is stackable, you'll recieve a random amount between 1 and the max stack size.
5 Months Ago
Created a command to fill the players inventory with random items. Its functional but still need some more work.