Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Divinity (Chapter 1) category #80

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 19 additions & 17 deletions srconfigs/cats/fullgame.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cond "game=portal2 & map=ep1_testchmb_00" sar_speedrun_category "Aperture
cond "game=portal2 & map=cosmogony_release1" sar_speedrun_category "Cosmogony"
cond "game=portal2 & map=dfd_1_intro" sar_speedrun_category "Designed for Danger"
cond "game=portal2 & map=sp_dilapidation_p0" sar_speedrun_category "Dilapidation"
cond "game=portal2 & map=sp_a1_divinity_intro" sar_speedrun_category "Divinity: Chapter 1"
cond "game=portal2 & map=sp_a1_beginning" sar_speedrun_category "Eidolon"
cond "game=portal2 & map=Memories_Chapter_I" sar_speedrun_category "Memories"
cond "game=portal2 & map=sp_a260201_room_1alpha" sar_speedrun_category "Mind Escape Chambers"
Expand Down Expand Up @@ -58,23 +59,24 @@ conds "game=reloaded | game=aptag | game=infra" "developer 0" "developer 1"
cond "map=sp_a5_credits | map=credits | map=credits_museum | map=celeste_moonroom | map=main_menu" svar_set __suppress_record 1

// Category-specific aliases
cond "game=portal2 & (menu | ?builtin_map=1)" sar_function __sp_reset_load conds ?sp_use_save=0 "map sp_a1_intro1" ?sp_use_save=1 "load containerridesave" ?sp_use_save=2 "load vault"
cond "game=portal2 & map=e1p1" sar_function __sp_reset_load conds ?afterhours_use_save=0 "map e1p1" ?afterhours_use_save=1 "load ah-vault"
cond "game=portal2 & map=ep1_testchmb_00" sar_function __sp_reset_load conds ?ireland_use_save=0 "map ep1_testchmb_00" ?ireland_use_save=1 "load vault"
cond "game=portal2 & map=sp_a260201_room_1alpha" sar_function __sp_reset_load conds ?mindescape_use_save=0 "map sp_a260201_room_1alpha" ?mindescape_use_save=1 "load vault"
cond "game=portal2 & map=testchmb_a_00" sar_function __sp_reset_load conds ?p1dp2_use_save=0 "map testchmb_a_00" ?p1dp2_use_save=1 "load vault"
cond "game=portal2 & map=sp_intro" sar_function __sp_reset_load conds ?welcomeback_use_save=0 "map sp_intro" ?welcomeback_use_save=1 "load vault"
cond "game=portal2 & map=cosmogony_release1" sar_function __sp_reset_load map cosmogony_release1
cond "game=portal2 & map=dfd_1_intro" sar_function __sp_reset_load map dfd_1_intro
cond "game=portal2 & map=sp_dilapidation_p0" sar_function __sp_reset_load map sp_dilapidation_p0
cond "game=portal2 & map=sp_a1_beginning" sar_function __sp_reset_load map sp_a1_beginning
cond "game=portal2 & map=Memories_Chapter_I" sar_function __sp_reset_load map Memories_Chapter_I
cond "game=portal2 & map=testchmb00" sar_function __sp_reset_load map testchmb00
cond "game=portal2 & map=map1" sar_function __sp_reset_load map map1
cond "game=portal2 & map=sp_lobby_1" sar_function __sp_reset_load map sp_lobby_1
cond "game=mel" sar_function __sp_reset_load conds ?mel_use_save=0 "map st_a1_tramride" ?mel_use_save=1 "load tram"
cond "game=aptag & (menu | ?builtin_map=1)" sar_function __sp_reset_load conds ?aptag_use_save=0 "map gg_intro_wakeup" ?aptag_use_save=1 "load intro"
cond "game=aptag & map=sm_gg_intro_wakeup" sar_function __sp_reset_load map sm_gg_intro_wakeup
cond "game=portal2 & (menu | ?builtin_map=1)" sar_function __sp_reset_load conds ?sp_use_save=0 "changelevel sp_a1_intro1" ?sp_use_save=1 "load containerridesave" ?sp_use_save=2 "load vault"
cond "game=portal2 & map=e1p1" sar_function __sp_reset_load conds ?afterhours_use_save=0 "changelevel e1p1" ?afterhours_use_save=1 "load ah-vault"
cond "game=portal2 & map=ep1_testchmb_00" sar_function __sp_reset_load conds ?ireland_use_save=0 "changelevel ep1_testchmb_00" ?ireland_use_save=1 "load vault"
cond "game=portal2 & map=sp_a260201_room_1alpha" sar_function __sp_reset_load conds ?mindescape_use_save=0 "changelevel sp_a260201_room_1alpha" ?mindescape_use_save=1 "load vault"
cond "game=portal2 & map=testchmb_a_00" sar_function __sp_reset_load conds ?p1dp2_use_save=0 "changelevel testchmb_a_00" ?p1dp2_use_save=1 "load vault"
cond "game=portal2 & map=sp_intro" sar_function __sp_reset_load conds ?welcomeback_use_save=0 "changelevel sp_intro" ?welcomeback_use_save=1 "load vault"
cond "game=portal2 & map=cosmogony_release1" sar_function __sp_reset_load changelevel cosmogony_release1
cond "game=portal2 & map=dfd_1_intro" sar_function __sp_reset_load changelevel dfd_1_intro
cond "game=portal2 & map=sp_dilapidation_p0" sar_function __sp_reset_load changelevel sp_dilapidation_p0
cond "game=portal2 & map=sp_a1_divinity_intro" sar_function __sp_reset_load "sar_patch_viewcontrol 0; changelevel sp_a1_divinity_intro"
cond "game=portal2 & map=sp_a1_beginning" sar_function __sp_reset_load changelevel sp_a1_beginning
cond "game=portal2 & map=Memories_Chapter_I" sar_function __sp_reset_load changelevel Memories_Chapter_I
cond "game=portal2 & map=testchmb00" sar_function __sp_reset_load changelevel testchmb00
cond "game=portal2 & map=map1" sar_function __sp_reset_load changelevel map1
cond "game=portal2 & map=sp_lobby_1" sar_function __sp_reset_load changelevel sp_lobby_1
cond "game=mel" sar_function __sp_reset_load conds ?mel_use_save=0 "changelevel st_a1_tramride" ?mel_use_save=1 "load tram"
cond "game=aptag & (menu | ?builtin_map=1)" sar_function __sp_reset_load conds ?aptag_use_save=0 "changelevel gg_intro_wakeup" ?aptag_use_save=1 "load intro"
cond "game=aptag & map=sm_gg_intro_wakeup" sar_function __sp_reset_load changelevel sm_gg_intro_wakeup

cond "game=portal2" sar_alias do_reset "sar_speedrun_reset; stop; sv_allow_mobile_portals 0; __sp_reset_load"
cond "game=srm" sar_alias do_reset "sar_speedrun_reset; stop; sv_allow_mobile_portals 0; map sp_a1_intro1"
Expand Down
5 changes: 5 additions & 0 deletions srconfigs/mkcats.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,8 @@ cond "game=aptag" sar_speedrun_cc_rule "Start" entity action=start map=sm_gg_in
cond "game=aptag" sar_speedrun_cc_rule "Good Ending" entity action=stop map=sm_gg_stage_theend targetname=ele_exit_door inputname=Close
cond "game=aptag" sar_speedrun_cc_rule "Bad Ending" entity action=stop map=sm_gg_stage_theend targetname=credits_video inputname=PlayMovie
cond "game=aptag" sar_speedrun_cc_finish

cond "game=portal2" sar_speedrun_cc_start "Divinity: Chapter 1"
cond "game=portal2" sar_speedrun_cc_rule "Start" entity action=start map=sp_a1_divinity_intro targetname=wakeup_camera inputname=Disable
cond "game=portal2" sar_speedrun_cc_rule "Finish" entity action=stop map=sp_a1_divinity_core01 targetname=InstanceAuto1-viewelevator inputname=Enable
cond "game=portal2" sar_speedrun_cc_finish