Skip to content

Commit

Permalink
Rework single coop checkpoints
Browse files Browse the repository at this point in the history
- Reorient for ceilings (fixes #2518)
- Reduce size of occupied and embedded voxels (fixes #3930)
- Various other tweaks
  • Loading branch information
Luke18033 authored and Luke18033 committed Sep 12, 2021
1 parent 7a6926f commit e725ebe
Show file tree
Hide file tree
Showing 7 changed files with 546 additions and 3,391 deletions.
3 changes: 3 additions & 0 deletions packages/tspen/checkpoint/items/coop_check_single.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"instance" "<ITEM_BEE2_COOP_CHECKPOINT_SINGLE:btn_weighted>"
"Result"
{
"switchOrientation" "ceiling"
"AddOverlay" "<ITEM_BEE2_COOP_CHECKPOINT_SINGLE:bee2_common>"
"CheckpointTrigger"
{
Expand All @@ -20,6 +21,7 @@
"instance" "<ITEM_BEE2_COOP_CHECKPOINT_SINGLE:btn_cube>"
"Result"
{
"switchOrientation" "ceiling"
"AddOverlay" "<ITEM_BEE2_COOP_CHECKPOINT_SINGLE:bee2_common>"
"CheckpointTrigger"
{
Expand All @@ -33,6 +35,7 @@
"instance" "<ITEM_BEE2_COOP_CHECKPOINT_SINGLE:btn_sphere>"
"Result"
{
"switchOrientation" "ceiling"
"AddOverlay" "<ITEM_BEE2_COOP_CHECKPOINT_SINGLE:bee2_common>"
"CheckpointTrigger"
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,26 +118,16 @@
"Voxel"
{
"CollideType" "COLLIDE_PHYSICS"
"CollideType" "COLLIDE_PHYSICS"
"CollideAgainst" "COLLIDE_PHYSICS"
"Pos" "0 0 1"
}
"Voxel"
{
"CollideType" "COLLIDE_PHYSICS"
"CollideType" "COLLIDE_PHYSICS"
"Pos" "0 0 2"
"Surface"
{
"Normal" "0 0 1"
}
}
}
"EmbeddedVoxels"
{
"Volume"
{
"Pos1" "0 0 0"
"Pos2" "0 0 -3"
"Pos2" "0 0 -1"
}
}
"EmbedFace"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,18 @@
{
"ID" "%TEMP%:single"
"ColorVar" "$color"
// TODO: remove this rotation once cube droppers have also been reoriented
"rotation" "0 0 180"
}
}
"Else"
{
"TemplateBrush" "%TEMP%:multi"
"TemplateBrush"
{
"ID" "%TEMP%:multi"
// TODO: remove this rotation once cube droppers have also been reoriented
"rotation" "0 0 180"
}
}
}
"Result"
Expand Down
Loading

0 comments on commit e725ebe

Please sign in to comment.