branchrust_reboot/main/backpackscancel
135 Commits over 123 Days - 0.05cph!
Optimise the backpack reparent process so it uses the faster id based bone lookup
Readded the backpack slot enum to allow for per backpack left and right backpack slot offsets
Slightly adjust the right hand side of the large backpack to better fit the new dimensions
Set up side holstering on large backpack
Scale large backpack mesh 15% smaller (until it's fixed properly)
Scale large backpack dropped model by 15% as well
Fix large backpack worldmodel box collider too big
Improve LODs of large backpack to be less noticable
Add `scaleForceWithMass` option to allow buoyancy to ignore mass (because backpack weight in world changes as items are added to it)
Dropped backpacks ignore mass for buoyancy
Add buoyancy points to backpacks & tweak so they float
Add support for dropped items to float (by adding buoyancy scripts to world model)
Despawn time of empty small backpack = 20min
Despawn time of empty large backpack = 40min
Backpacks will add up the despawn time of each item inside it
Added convar `itemdespawn_container_max_multiplier` to control max despawn time of backpacks (defaults to 2 hours)
Fix pooling error by removing HolsterSlot bone
Merge from backpacks/player_remains
Merge from backpacks/side_holster
Merge large backpack art -> backpacks
Added holster mount bone to backpack wearables which gets retargeted
Merge placeholder backpack art
Show weapons on back on the side of backpacks
Merge from main -> backpacks
Fix backpack inventory panel visible by default (should be hidden)
Fix loot panel for backpack dropped in world showing `Loot` instead of `Small Backpack`
Don't drop the backpack off a player when they die in safezone
Block stealing other player's backpacks inside safezone
Also block looting other's backpacks inside safezone
Fixed dropped items not always recording the steam id of the player that dropped them
Show `Hold [USE] to pickup` instead of "hold to open radial menu" when looking at backpack on the ground
Speed up open & close inventory animation
Ensure backpack panel is disabled when it is transparent
Fade out player name, underwear pick icon & protection values instead of instant disappearing
Switch from Lerping to animation curves when opening UI
Fix diving tanks replacing backpack when picked up (ideal slots tedious)
Add bool to `ItemModWearable` to allow any wearable to be equipped by default when picked up
Removed custom logic to equip backpacks on right click & instead use the same logic other wearables use
Prevent diving tank, parachute & future non-backpack items from being dropped when you are wounded / die
Merge from backpacks/backpack_ui_2 -> backpacks
Made "parachute" solid ground checks & underwater checks only apply to parachutes
Fix diving tank not right clicking to equip when wearing chest armor (will correctly unequip armor & equip diving tank)
Reduce weight scaling of backpacks dropped in the world to prevent rowboats capsizing instantly
Max weight 1kg per slot and only apply 50% of the weight of each item inside
Diving tank now goes in backpack slot
Diving tank still conflicts with chest armor slot
When backpack is dropped on ground add weight of items inside it to backpack
This prevents transfering backpacks with vehicles instead of dropping all items onto vehicle individually
Only network contents of backpack to the player wearing it
Actually make large backpack uncraftable
Small backpack 12 slots
Small backpack cost 5 sewing kits & 50 cloth
Large backpack 30 slots & uncraftable
Remove achievement gameobject from backpack itemdefinition (I guess backpack item was originally cloned from sunglasses)
Fixed weapons inside backpack not showing on your back
Merge from main -> backpacks
Unity only serializing backpack prefab when you close unity
Move large backpack to different folder
Make the small backpack green as a placeholder model for the large backpack (so it looks different)
Fix backpack inventory not expanding to larger amount of slots when backpack item is changed (seemingly a bug with all player containers)
Removed "WIP" text from backpack because it looks stupid & too small
Just assume the green backpack is a placeholder model
Un-delete the small backpack item (whoops)
Added large backpack item
Placeholder amount of slots (helk will assign intended values)
Add "WIP" text to backpack icons
Clamp backpack item icons to 256x256
Remove PlayerInventory.debugWearIssues, no longer needed
Added playerinventory.debugWearIssues with some extra logging for the clothing change process
Fix wrapping gift inside of backpack deleting the item
Fix no sound when opening backpack on the ground
Placeholder zipper sound (from lockers)
Merge from main -> backpacks