Skip to content

Commit

Permalink
verified working high lod character toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
jnackmclain committed Sep 22, 2023
1 parent 420cda5 commit bfca16f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
2 changes: 2 additions & 0 deletions _ark/dx/locale/dx_locale_updates.dta
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@
(overshell_postproc "Post Processing")
(os_postfx_on "[Disable All]")
(os_postfx_off "[Enable All]")
(os_force_high_lod_on "HD Characters: ON")
(os_force_high_lod_off "HD Characters: OFF")
(os_camera_shake_on "Camera Shake: ON")
(os_camera_shake_off "Camera Shake: OFF")
(os_camera_blur_on "Depth of Field: ON")
Expand Down
16 changes: 16 additions & 0 deletions _ark/dx/overshell/dx_cam_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
{push_back $options {if_else $dx_camera_shake os_camera_shake_on os_camera_shake_off}}
{push_back $options {if_else $dx_camera_blur os_camera_blur_on os_camera_blur_off}}
{push_back $options {if_else $dx_noise os_noise_on os_noise_off}}
{push_back $options {if_else $dx_force_lod os_force_high_lod_on os_force_high_lod_off}}
{dx_state_setup dxState_PostFX FALSE}
}
)
Expand Down Expand Up @@ -143,6 +144,21 @@
{set $previous_state dxState_PostFX}
{$this show_state kState_PostFXWarn}
)
((os_force_high_lod_on os_force_high_lod_off)
{set $dx_force_lod {! $dx_force_lod}}
{if $dx_force_lod
{set $post_proc_needs_reset TRUE}
}
{dx_postfx_setter}
{if_else $dx_force_lod
{set $dx_tracked_changed os_force_high_lod_on}
{set $dx_tracked_changed os_force_high_lod_off}
}
{dx_state_pos_tracker}
DX_POST_FX_DATA
{set $previous_state kState_PostFXWarn}
{$this show_state kState_PostFXWarn}
)
((os_camera_blur_on os_camera_blur_off)
{set $dx_camera_blur {! $dx_camera_blur}}
{if $dx_camera_blur
Expand Down
15 changes: 0 additions & 15 deletions _ark/dx/overshell/dx_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@
{push_back $options print_objects}
{push_back $options print_platform}
{push_back $options {if_else $dx_time_remain_dbg os_time_remain_dbg_on os_time_remain_dbg_off}}
{push_back $options {if_else $dx_force_lod os_force_high_lod_on os_force_high_lod_off}}

{dx_state_setup dxState_DebugSettings FALSE}
}
Expand Down Expand Up @@ -471,20 +470,6 @@
DX_DEBUG_DATA
{set $previous_state dxState_DebugSettings}
)
((os_force_high_lod_on os_force_high_lod_off)
{set $dx_force_lod {! $dx_force_lod}}
{if $dx_force_lod
{set $post_proc_needs_reset TRUE}
}
{dx_postfx_setter}
{if_else $dx_force_lod
{set $dx_tracked_changed os_force_high_lod_on}
{set $dx_tracked_changed os_force_high_lod_off}
}
{dx_state_pos_tracker}
DX_DEBUG_DATA
{set $previous_state dxState_DebugSettings}
)
(os_dx_swap_gender_off
{$this show_state dxState_SwapGenderWarn}
)
Expand Down
9 changes: 6 additions & 3 deletions _ark/dx/ui/dx_camera_funcs.dta
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,14 @@
}
}
{if $dx_force_lod
;i dont know if this even works
{$dx_this_var iterate WorldDir $wd
{$wd iterate BandCamShot $bcs
{$bcs set force_lod 1}
{$bcs set self_shadow 1}
{do
($dx_num_targets {$bcs size (targets)})
{foreach_int $i 0 $dx_num_targets
{$bcs set (targets $i force_lod) kLOD0}
}
}
}
}
}
Expand Down

0 comments on commit bfca16f

Please sign in to comment.