Skip to content

Commit

Permalink
Fix #4290: Make SP exit-restart behaviour consistent across styles
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Apr 5, 2024
1 parent 6a4cb7c commit a14d771
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 165 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@
"StyleVar" "RestartOnExit"
"Result"
{
"addOverlay"
{
"File" "instances/BEE2/clean/elevator_sp/exit_preview.vmf"
}
// Trigger restart when @map_won is triggered.
"addoverlay" "instances/BEE2/logic/exit_preview.vmf"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@
"StyleVar" "RestartOnExit"
"Result"
{
"addOverlay"
{
"File" "instances/BEE2/clean/elevator_sp/exit_preview.vmf"
}
// Trigger restart when @map_won is triggered.
"addoverlay" "instances/BEE2/logic/exit_preview.vmf"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"StyleVar" "RestartOnExit"
"Result"
{
"addOverlay" "instances/BEE2/clean/elevator_sp/exit_door_preview.vmf"
// Trigger restart when @map_won is triggered.
"addoverlay" "instances/BEE2/logic/exit_preview.vmf"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@
"StyleVar" "RestartOnExit"
"Result"
{
"addOverlay"
{
"File" "instances/BEE2/clean/elevator_sp/exit_preview.vmf"
}
// Trigger restart when @map_won is triggered.
"addoverlay" "instances/BEE2/logic/exit_preview.vmf"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@
"TemplateBrush" "BEE2_DOOR_FRAME_OVER"
}
}
"Condition"
{
"IfPreview" "1"
"StyleVar" "RestartOnExit"
"Result"
{
// Trigger restart when @map_won is triggered.
"addoverlay" "instances/BEE2/logic/exit_preview.vmf"
}
}
}
// We need to decide if we want to have gel / gel fizzler, or need autoportals for here.
// Aperture Tag never uses autoportals in the entrance.
Expand Down
8 changes: 2 additions & 6 deletions packages/styles/p1_style/items/exit_door/vbsp_config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,8 @@
"StyleVar" "RestartOnExit"
"Result"
{
"addOverlay"
{
"File" "instances/BEE2/clean/elevator_sp/exit_door_preview.vmf"
// TODO: remove this rotation once the clean corridors have also been reoriented
"rotation" "270 180 0"
}
// Trigger restart when @map_won is triggered.
"addoverlay" "instances/BEE2/logic/exit_preview.vmf"
}
}
}
Expand Down
19 changes: 10 additions & 9 deletions packages/valve/clean_style/items/exit_door/vbsp_config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@
"Condition"
{
"InstVar" "$exit_folder != " // Only run if defined.
"Condition"
{
"IfPreview" "1"
"StyleVar" "RestartOnExit"
"Result"
{
"addoverlay" "$exit_folderpreview.vmf"
}
}
"Condition"
{
"Game" "Aperture Tag"
Expand Down Expand Up @@ -99,5 +90,15 @@
}
}
}
"Condition"
{
"IfPreview" "1"
"StyleVar" "RestartOnExit"
"Result"
{
// Trigger restart when @map_won is triggered.
"addoverlay" "instances/BEE2/logic/exit_preview.vmf"
}
}
}
}

This file was deleted.

0 comments on commit a14d771

Please sign in to comment.