branchrust_reboot/main/apartment_complex_monument/prototypecancel
359 Commits over 92 Days - 0.16cph!
Fix eject position not assigned on the small apartment
Move a few things under furniture root
Slightly shrink size of combat zone triggers in apartments to avoid triggering teleport when player is walking into the invisible barrier
Fix apartment entities missing from manifest entity list too
Update apartment prefabs (labels updated from manifest)
Update manifest (apartment entities got lost?)
Lower slots of bathroom sink & medicine cabinet from large box -> small box
Implement RemoveAllPlayers() to teleport all the players out of the room when the lease expires / apartment is checked out
Rename DailyScrapUpkeep -> CachedDailyUpkeep to make it more clear
Fix initial scrap not being added to upkeep terminal because the upkeep terminal isn't a part of the list of furniture
Fix apartment oven in the penthouse being called "large furnace" in the loot panel instead of "Oven"
Fix furnace in medium apartment not being under "furniture" root
update apartment_complex_monument/prototype
Make combat zone trigger only on server to prevent client colliders being caught in it
- we use flag for combat zone now so don't need it on the client
Modify ApartmentRoom.IsAuthed() to accept different authorization enums (split ability to loot vs enter the room)
Fix clientside triggers not being toggled by the invisible barriers convar
Prevent cheaters pushing themselves through the clientside barrier and being able to shoot players inside before they are teleported out
- block damage on the server if the attacker doesn't have the permission to pass through the barrier if invisible barriers are enabled
Fix invisible collider being disabled when leaving trigger instead of enabled (it's still being enabled when you come back into range but safer)
Don't teleport players out of non-rented rooms (annoying when noclipping through monument)
- safe because apartment door is closed when not rented
Add teleport position failsafe for players that bypass the invisible client barrier
Add `ent open` and `ent close` (to open apartment doors that aren't yours)
Add door toggle so the invisible door gets disabled if the user is authorized to enter the apartment
- acts like the invisible barrier isn't there for certain players
Get rid of only intruders being able to access the storage during a break-in, flag the whole room as a break-in is active for 5 minutes
- doesn't persist break-in across restarts because it only lasts 5 minutes, server takes >5m to restart, awkward to relog fast enough during break-in and there isn't a place to hook after all the slow server startup happens
- instead set break-in to false every time the server loads (since the flag is only disabled by an invoke that would be lost on server restart)
Another change for combat triggers
This isn't a clean one change per commit but change the combat zones so they are only show the flag on client and allow damage a break-in is happening
Add invisible blocker to apartments
Add support for an invisible player movement blocker in front of the door
Add console command for "fakerentroom" to allow you to rent a single room to a fake player instead of every single room
Lower apartment upkeep terminal from 6 slots -> 1 slot
Add "Thank you" response option after buying an apartment and they explain how it works
update apartment_complex_monument/prototype
Increase maximum conversation options from 4 -> 6 (even if they are filtered out)
- surely this won't break anything right
Ensure apartment sizes are translated properly
Fix compile error from random using statement being added
Add more conversation options for "you are staying in room {0}" and "how do I pay rent?"
Update conversation options for apartment vendor
Add support to interpolate "{my_room_number}" to show what room you are in
Make apartment elevator no longer a variant so it can be switched to the ApartmentElevatorLift class
update apartment_complex_monument/prototype
Hoist the radial menu for the apartment elevators into it's own ApartmentElevatorLift class so it can't affect other elevators in the game (safer)
Fix players not being teleported to their room after scheduled death in safezone
- check safezones manually as when you sleep you aren't part of any triggers
- fix players not falling when teleported to their room when sleeping
- add "scheduleddeath" command to test the scheduled death instead of waiting 20m
-
Add 4hrs of rent to the upkeep terminal when renting a room so that it doesn't how "Rent Due" when you first buy a room
- convar "apartmentfreerenthours"
update apartment_complex_monument/prototype
Update vendor conversation
Fix remaining rooms not updating when using rentallrooms
Add CanAffordApartment and CanAffordUpgrade conditions so we can get rid of hardcoded HasScrap sprinkled in conversations that are a pain to update when changing apartment prices
- change all the conditions in the conversation too
Fix remaining rooms left not being loaded on the client after network update