branchrust_reboot/main/apartment_complex_monumentcancel
123 Commits over 122 Days - 0.04cph!
Fixed DecalCull components not showing decals at all at lowest quality settings
This component was multiplying the culling distance by Mesh.lod intead of Mesh.quality, Mesh.lod can be set to 0 so it was always disabling decals
This will technically hurt performance on low settings as they weren't showing decals at all, so I've added a minimum 0.25 quality level
Decals on low settings now pop in pretty obviously, but at least they render when up close
Added an editor inspector to show the current camera distance and culling distance, similar to other LOD components
Removed animator from non-interactive elevator door in destroyed wing
Fixed missing upkeep terminal server error when upgrading rooms
Fixed bathtub missing from manifest (would have been resolved in builds anyway, fixes an error in editor though)
Possible fix for missing apartment_small_col fbx in builds
The fbx import settings imported a material, which meant the asset was loaded into content.private as it grabs all materials
Send network updates for all apartment rooms when a player joins or departs a team
Affects the player joining/leaving and all of the rooms of players in that team
Fixes needing to leave and re-enter network range when joing a team if you already own an apartment
Can no longer ent kill apartments
Any players that are not authed to go through the invisible barrier are removed from an apartment when the break in ends (otherwise they would be trapped)
Intruders no longer have access to a shop inventory if it gets taken over or closed
Fixed scrap upkeep terminal not getting cleaned up when checking out of a room
Remove master key from bandit town vendor
Added a blocker to the front and back entrances of the apartment block to stop vehicles entering
Clean up some logs
Fixed rented vending machines not recording stats
Don't show the disconnect in safe zone warning if the player is inside their apartment
Fixed front door not being closed on apartment check out after a server has restarted
Update bounds of apartment complex monument to match visual bounds (was at default?)
Fixes some stray auto turrets being left behind in hardcore
Fixed not being able to enter a room as a team member
Possibly fixed shopkeeper in rentable shop sometimes facing the wrong way
Added a shop number field to rentable shops, may hook it up to a visible number at some point
Items stored in a rentable shop due to the store being closed/taken over will now be deleted after 24 hours (realtime)
See RentableShop.MaxStoredItemsDurationMinutes convar, as well as AdditionalCheckTimeHoursDebug for debugging/testing
Any save files loaded after this changeset will clear any pre-existing stored items after 24 hours from the point of load (since we weren't saving the timestamp)
If a player has their items stored multiple times in a 24 hour window the original deadline will apply, it cannot be extended
Fixed small apartment eject position not hooked up
S2P
Fixed not being able to break into shops due to interact duration mismatch
Break in time for shops now also uses ApartmentCommands.breakinseconds convar instead of being hardcoded to 10s
Fixed missing eject position on medium apartment
Remove turrets from all monuments marked as a Town (not just safe zone) in hardcore mode
Fixes turrets persisting in hardcore apartments as it's not marked as a safe zone
Clear hostile time when spawning inside the apartment (so you don't get killed immediately as you leave the room if you died in combat)
Can break in to a room even if the door is open (to remove the invisible blocker)
Fixed invisible colilder not updating if the player was already in the trigger volume when breaking in (which was always)
Fixed invis door team check passing if the player is in any team (was caught on the server anyway, but this is still a nicer fix)
Mostly fixed invisible door logic, now gets fully disbaled when a break in occurs
Requires player to step back and then forwards to re-enter trigger bounds, will fix later today
Can no longer reassign beds in apartments
Fixed not being able to use the painted sign in the penthouse
ApartmentDoor.Load NRE fix
Added a tool to find all shadow proxies that have a cull distance greater than the cull distance of their parent, fixed some cases (Tools/Find/Shadow Proxies Culling Too Early)
Converted the bus to a RendererLOD setup
Much more aggressive LOD transitions on rentable shops
Include the lighting prefabs in the furniture list that gets disabled when an apartment is occluded, fixes the lighting prefabs always rendering
Caught a light with a missing LOD component
Fixed button inside security room not opening door
Fixed disabling domain reloads breaking renting rooms due to static telephone manager fields
Replace 0 with O on the door label if the door is in the basement
Add · to both sides of the door label if the door is in the penthouse
More LOD fixups
Should be no more loose components
Converted some static structures to RendererLods/MeshLods
Rentable shop signs, window_penthouse_flat_opaque, Caboose_ground_junk_straight_b/c
Fixed rentable shop vending machines still being drone accessible despite UI saying otherwise