diff --git a/viewsnap.cfg b/viewsnap.cfg index 988c75d..043c3db 100644 --- a/viewsnap.cfg +++ b/viewsnap.cfg @@ -16,12 +16,6 @@ cond !?__srconfigs=1 __set_if_empty_persist viewsnap_dpi_scale 500 cond !?__srconfigs=1 __set_if_empty_persist viewsnap_enable_on_load 0 cond !?__srconfigs=1 __set_if_empty_persist viewsnap_crazy_box easy -// HACKHACK: This will need changing if the game is updated -// Update: This has been broken by the game updating. speak of the mfin devil! -// Changed so Linux users can set the svar in extra, until cond linux is out. -// svar_capture_quiet __tmp version; svar_substr __tmp -11 4; conds ?__tmp=8777 "svar_set linux 1" "svar_set linux 0" -svar_set linux 0 - sar_function set_sens "+customsens $1; __tmp_cvar_save m_yaw; m_yaw $2; __tmp_cvar_save sar_dpi_scale; sar_dpi_scale $viewsnap_dpi_scale; __tmp_cvar_save m_rawinput; m_rawinput 1; cond %$#=3 sar_dpi_scale $3" sar_function set_mini_sens "set_sens $+1; svar_from_cvar __tmp sensitivity; svar_fdiv __tmp __old_sens; svar_round __tmp; sar_expand sar_dpi_scale $$__tmp" sar_function reset_sens "-customsens; __tmp_cvar_restore m_yaw; __tmp_cvar_restore sar_dpi_scale; __tmp_cvar_restore m_rawinput; __tmp_cvar_restore fps_max" @@ -54,9 +48,9 @@ sar_on_load cond "map=sp_a1_intro4" cat_only sp_cm sar_function __viewsnap_2 "vi // Secret Panel // Linux users must simulate angle decay with 1 snap down first // https://discord.com/channels/146404426746167296/438528310394486787/1023914463021248552 -sar_on_load cond "?linux=1 & map=sp_a1_intro7" cat_only fullgame sar_function __viewsnap_1 "viewsnap 0 -180 0.003 -180 0; sar_alias viewsnap_next __viewsnap_2" -sar_on_load cond "?linux=1 & map=sp_a1_intro7" cat_only fullgame sar_function __viewsnap_2 "viewsnap 0.003 -180 0.003 -169.22 1; sar_alias viewsnap_next __viewsnap_last" -sar_on_load cond "?linux=0 & map=sp_a1_intro7" cat_only fullgame sar_function __viewsnap_1 "viewsnap 0.003 -180 0.003 -169.22 1; __tmp_cvar_save fps_max; fps_max 999; sar_alias viewsnap_next __viewsnap_last" +sar_on_load cond "linux & map=sp_a1_intro7" cat_only fullgame sar_function __viewsnap_1 "viewsnap 0 -180 0.003 -180 0; sar_alias viewsnap_next __viewsnap_2" +sar_on_load cond "linux & map=sp_a1_intro7" cat_only fullgame sar_function __viewsnap_2 "viewsnap 0.003 -180 0.003 -169.22 1; sar_alias viewsnap_next __viewsnap_last" +sar_on_load cond "!linux & map=sp_a1_intro7" cat_only fullgame sar_function __viewsnap_1 "viewsnap 0.003 -180 0.003 -169.22 1; __tmp_cvar_save fps_max; fps_max 999; sar_alias viewsnap_next __viewsnap_last" // https://discord.com/channels/146404426746167296/438528310394486787/1020436810721149020 sar_on_load cond "map=sp_a1_intro7" cat_only sp_cm sar_function __viewsnap_1 "viewsnap 0 -180 0 90 1; sar_alias viewsnap_next __viewsnap_2" sar_on_load cond "map=sp_a1_intro7" cat_only sp_cm sar_function __viewsnap_2 "viewsnap 89 90 0 90 0; sar_alias viewsnap_next __viewsnap_3" @@ -89,8 +83,8 @@ sar_on_load cond "map=sp_a2_bts4" sar_function __viewsnap_1 "viewsnap -89 0 sar_on_load cond "map=sp_a2_bts4" sar_function __viewsnap_2 "viewsnap -89 167.407 -0.011 167.407; sar_alias viewsnap_next __viewsnap_last" // Repulsion Intro -sar_on_load cond "?linux=1 & map=sp_a3_jump_intro" cat_only fullgame sar_function __viewsnap_1 "viewsnap 0 -90 -19.9065 174.831 1; sar_alias viewsnap_next __viewsnap_last" -sar_on_load cond "?linux=0 & map=sp_a3_jump_intro" cat_only fullgame sar_function __viewsnap_1 "viewsnap 0 -90 -19.9065 174.831 1; __tmp_cvar_save fps_max; fps_max 60; sar_alias viewsnap_next __viewsnap_last" +sar_on_load cond "linux & map=sp_a3_jump_intro" cat_only fullgame sar_function __viewsnap_1 "viewsnap 0 -90 -19.9065 174.831 1; sar_alias viewsnap_next __viewsnap_last" +sar_on_load cond "!linux & map=sp_a3_jump_intro" cat_only fullgame sar_function __viewsnap_1 "viewsnap 0 -90 -19.9065 174.831 1; __tmp_cvar_save fps_max; fps_max 60; sar_alias viewsnap_next __viewsnap_last" // Crazy Box // TODO: Convert CM to `viewsnap` syntax @@ -122,10 +116,10 @@ sar_on_load cond "map=sp_a3_portal_intro" sar_function __viewsnap_3 "set_sens 17 // Industrial Fan // Angles from https://discord.com/channels/146404426746167296/438528310394486787/1005822384282013706 -sar_on_load cond "map=mp_coop_fan & !orange" non_cat_only solocoop sar_function __viewsnap_1 "viewsnap 0 -90 -8.068 48.002 ; __tmp_cvar_save fps_max; cond !?linux=1 fps_max 60; sar_alias viewsnap_next __viewsnap_last" -sar_on_load cond "map=mp_coop_fan & orange" non_cat_only solocoop sar_function __viewsnap_1 "viewsnap 0 -90 26.371 -97.471; __tmp_cvar_save fps_max; cond !?linux=1 fps_max 60; sar_alias viewsnap_next __viewsnap_last" -sar_on_load cond "map=mp_coop_fan" cat_only solocoop sar_function __viewsnap_1 "viewsnap 0 -90 -8.068 48.002 ; __tmp_cvar_save fps_max; cond !?linux=1 fps_max 60; sar_alias viewsnap_next __viewsnap_2" -sar_on_load cond "map=mp_coop_fan" cat_only solocoop sar_function __viewsnap_2 "viewsnap 0 -90 26.371 -97.471; __tmp_cvar_save fps_max; cond !?linux=1 fps_max 60; sar_alias viewsnap_next __viewsnap_last" +sar_on_load cond "map=mp_coop_fan & !orange" non_cat_only solocoop sar_function __viewsnap_1 "viewsnap 0 -90 -8.068 48.002 ; __tmp_cvar_save fps_max; cond !linux fps_max 60; sar_alias viewsnap_next __viewsnap_last" +sar_on_load cond "map=mp_coop_fan & orange" non_cat_only solocoop sar_function __viewsnap_1 "viewsnap 0 -90 26.371 -97.471; __tmp_cvar_save fps_max; cond !linux fps_max 60; sar_alias viewsnap_next __viewsnap_last" +sar_on_load cond "map=mp_coop_fan" cat_only solocoop sar_function __viewsnap_1 "viewsnap 0 -90 -8.068 48.002 ; __tmp_cvar_save fps_max; cond !linux fps_max 60; sar_alias viewsnap_next __viewsnap_2" +sar_on_load cond "map=mp_coop_fan" cat_only solocoop sar_function __viewsnap_2 "viewsnap 0 -90 26.371 -97.471; __tmp_cvar_save fps_max; cond !linux fps_max 60; sar_alias viewsnap_next __viewsnap_last" // Changing sensitivity on load is banned outside of CM! sar_on_load cond "?viewsnap_enable_on_load=1 & ?__viewsnap_on_load=1 & (?category=sp_cm | ?category=coop_cm)" "viewsnap_next"