branchrust_reboot/main/respawn_changescancel
22 Commits over 0 Days - ∞cph!
Fix bag quota counting too many bags
Added toast when you assign a bag to another player
Fix wiretool showing sleeping bag quota
merge from main -> respawn_changes
Fixed sleeping bags not actually being assigned to other players
Ensure sleeping bag quota is counted across server restart as well as when placed down
Disable DeleteButton in prefab & remove SetActive(false) from OnEnable()
Fix NRE when opening map with sleeping bag on it
Fix bag quota not updating when unclaming camper bed
Fix visual bag quota not updating when you unclaim your bed on the map
Fix sleeping bag item amount not updating if you are holding bag while unclaiming another bag
Add analytics of "how much bag quota" used when sleeping bag/bed is placed
Enable showing bag quota for bed & towel items too
Cache list of sleeping bags per player on the server & network to clients
Show current bag quota in item amount when placing bag
Can disable showing bag quota in item amount by setting `bag_quota_item_amount` false
Can set `max_sleeping_bags` to -1 to disable the toasts & bag limit
Codegen
https://files.facepunch.com/jakerich/1b1711b1/oarP1RLiz1Kwy2D1.mp4
thumb_up
21
thumb_down
44
Merge from main -> respawn_changes
Also change sleeping bag cluster delete icon
Make sleeping bag icon darken while held instead of lighten
merge from main -> respawn_changes
Fix sleeping bag markers reseting cooldown every time the map is opened
Default to max 10 beds + bags
Configure limit via `max_sleeping_bags` convar
Change hardcore gamemode to use convar instead of gamemode code
thumb_up
68
thumb_down
255
Unclaim bags instead of deleting them when unclaiming on map
Remove "send list of bags every 60s"
Ensure that list of sleeping bags are sent out to old & new owner every time a sleeping bag is assigned
Only make bed public when unclaimed on map if the bed was set to public mode
Destroy bed with gibs enabled when unclaimed
Allow deleting bags that are still on cooldown
Use existing FindForPlayer method incase one gets changed in the future