Skip to content

Commit

Permalink
fix player model issue on a4_finale4 - fix #56
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxor4d committed Nov 29, 2024
1 parent ee1b38a commit 68b1ddd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rtx.playerModel.enableInPrimarySpace = False
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rtx.playerModel.enableInPrimarySpace = True
5 changes: 5 additions & 0 deletions assets/portal2-rtx/map_settings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@
#{ conf = "chromatic_explosion.conf", choreo = "prehub28.vcd", mode = 0, ease = 8, duration = 2.5, delay_in = 0.0, delay_out = 1.0 }
]}

sp_a4_finale4 = { transitions = [
{ conf = "playermodel_primaryspace_on.conf", choreo = "button_press01.vcd", mode = 0, ease = 0, duration = 0.1, delay_in = 1.0 },
{ conf = "playermodel_primaryspace_off.conf", choreo = "epilogue10.vcd", mode = 0, ease = 0, duration = 0.1, delay_in = 0.0 }
]}


# Spawns portals using the remix api - useful for area-connecting portals (between doors / rooms)
# Parameters ---------------------------------------------------------------------------------------------------------------------------------
Expand Down
24 changes: 12 additions & 12 deletions src/components/modules/choreo_events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ namespace components
//if (!mapname.empty())
{
// fix invisible world model (arms/pgun) after expl.
if (map_settings::is_level.sp_a4_finale4)
{
// bw_finale04_button_press01.vcd
if (sname.ends_with("button_press01.vcd")) {
api::remix_vars::set_option(api::remix_vars::get_option("rtx.playerModel.enableInPrimarySpace"), { true });
}

// bw_finale04_button_press04.vcd
else if (sname.ends_with("epilogue10.vcd")) {
api::remix_vars::set_option(api::remix_vars::get_option("rtx.playerModel.enableInPrimarySpace"), { false });
}
}
//if (map_settings::is_level.sp_a4_finale4)
//{
// // bw_finale04_button_press01.vcd
// if (sname.ends_with("button_press01.vcd")) {
// api::remix_vars::set_option(api::remix_vars::get_option("rtx.playerModel.enableInPrimarySpace"), { true });
// }

// // bw_finale04_button_press04.vcd
// else if (sname.ends_with("epilogue10.vcd")) {
// api::remix_vars::set_option(api::remix_vars::get_option("rtx.playerModel.enableInPrimarySpace"), { false });
// }
//}

// ------

Expand Down

0 comments on commit 68b1ddd

Please # to comment.