From 41751355bb47ded71cc0a6539dd7a8dc07ede04d Mon Sep 17 00:00:00 2001 From: LysiX Date: Thu, 2 May 2024 12:33:09 -0700 Subject: [PATCH] option to disable overdrive (and practice od) --- _ark/ps4/config/gamemodes.dta | 4 ++-- _ark/ps4/dx/overshell/dx_states.dta | 24 ++++++++++++++++++++++++ _ark/ps4/dx/ui/dx_init.dta | 2 ++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/_ark/ps4/config/gamemodes.dta b/_ark/ps4/config/gamemodes.dta index a1d2371..f5b3859 100644 --- a/_ark/ps4/config/gamemodes.dta +++ b/_ark/ps4/config/gamemodes.dta @@ -11,7 +11,7 @@ {$gamemode get_int max_players }1 }) (use_quickplay_leaderboards TRUE) (use_brutal_leaderboards FALSE) - (allow_overdrive_phrases TRUE) + (allow_overdrive_phrases {! {file_exists "nood.dta"}}) (allow_drum_fills TRUE) (can_lose TRUE) (num_strikes 0) @@ -97,7 +97,7 @@ (game_screen frame_rate_game_screen) (allow_input_performance_mode FALSE)) (practice - (allow_overdrive_phrases TRUE) + (allow_overdrive_phrases {file_exists "practiceod.dta"}) (can_lose FALSE) (quarantine FALSE) (enable_overdrive TRUE) diff --git a/_ark/ps4/dx/overshell/dx_states.dta b/_ark/ps4/dx/overshell/dx_states.dta index 4b128cd..9e3a8af 100644 --- a/_ark/ps4/dx/overshell/dx_states.dta +++ b/_ark/ps4/dx/overshell/dx_states.dta @@ -101,6 +101,8 @@ {if_else $nomiss "No Miss Sounds: ON" "No Miss Sounds: OFF"} {if_else $crowdmeter "No Crowd Meter: ON" "No Crowd Meter: OFF"} {if_else $noui "No HUD: ON" "No HUD: OFF"} + {if_else $nood "No OD: ON" "No OD: OFF"} + {if_else $practiceod "OD in Practice: ON" "OD in Practice: OFF"} ) } ) @@ -136,6 +138,28 @@ {$this show_state kState_RB4DXDelayedEffectWarn} {$this trigger_select_effects } ) + (("No OD: ON" "No OD: OFF") + {set $nood {! $nood}} + {if_else $nood + {do + {write_file "data:/GoldHEN/RB4DX/nood.dta" $dx_write_nul} + } + {file_delete "data:/GoldHEN/RB4DX/nood.dta"} + } + {$this show_state kState_RB4DXDelayedEffectWarn} + {$this trigger_select_effects } + ) + (("OD in Practice: ON" "OD in Practice: OFF") + {set $practiceod {! $practiceod}} + {if_else $practiceod + {do + {write_file "data:/GoldHEN/RB4DX/practiceod.dta" $dx_write_nul} + } + {file_delete "data:/GoldHEN/RB4DX/practiceod.dta"} + } + {$this show_state kState_RB4DXDelayedEffectWarn} + {$this trigger_select_effects } + ) (("No Crowd Meter: ON" "No Crowd Meter: OFF") {set $crowdmeter {! $crowdmeter}} {if_else $crowdmeter diff --git a/_ark/ps4/dx/ui/dx_init.dta b/_ark/ps4/dx/ui/dx_init.dta index a67751b..cbf6d53 100644 --- a/_ark/ps4/dx/ui/dx_init.dta +++ b/_ark/ps4/dx/ui/dx_init.dta @@ -2,6 +2,8 @@ {set $dx_write_nul {array ()}} {set $speedmod 100} {set $dx_initialized TRUE} + {set $nood {file_exists "nood.dta"}} + {set $practiceod {file_exists "practiceod.dta"}} {set $blackbg {file_exists "blackbg.dta"}} {set $nomiss {file_exists "nomiss.dta"}} {set $crowdmeter {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/crowd_meter.entity_ps4"}}