branchrust_reboot/main/allow_barricades_monumentscancel
16 Commits over 0 Days - ∞cph!
Attempt #3 to get the monument of a collider, keeping in mind that client builds split the monument into a flat hierarchy so we can't just look for the MonumentInfo in the parent
- fast path is see if the `prevent_building` collider is already tagged
- slow path is using a physics cast to search for `prevent_building`
- caches to avoid falling back on the slow path every time
Merge from main -> allow_barricade_monuments
Merge from main -> allow_barricades_monuments
Cache if a collider is part of a monument with `MonumentColliderTag` component(so it works in standalone builds)
merge from main -> allow_barricades_monuments
Apply same treatment to stone, concrete & sandbag barricades (can't place on monument concrete, can place on the terrain)
Wooden barricade only buildable on the terrain parts of a monument, block it on all the concrete parts of a monument
https://files.facepunch.com/jakerich/fyl41vRDD6IA5gyt/BM9AhaPzcWubIRbQ.mp4
merge from main -> allow_barricades_monuments
Fix wooden barricade missing default layer check when placing
- add new default volume check and ignore other wooden barricades
Manually fix bounds of wood double barricade being too small in X direction
Allow barricades to decay the same speed indoors or outdoors
- barricades still won't decay when inside building privledge
Can override deploy tickrate for entities with faster decay rates
- set decay tickrate of barricades from 10min -> 1min
Change decay of all 4 barricades to 15 minutes
Use existing `PreventBuildingMonumentTag` to detect what `prevent_building` volumes are attached to monuments & convert them to flags that DeployVolume understands
- manually search for `MonumentInfo` in the editor since the prefab scenes don't have components added by S2P
Stone barricade protection value didn't save
Allow barricades to be placed anywhere in monuments
- melee damaged increase against barricades: same damage as normal deployables
- bullet & explosive damage against barricades stays the same as before
- split building volumes of barricades and bypass "prevent_building" tagged with monument
thumb_up
65
thumb_down
34