From 9e8109d9d2d1292ec468d8bcea9fa20189e43d4a Mon Sep 17 00:00:00 2001 From: orian34 Date: Thu, 12 Sep 2024 21:54:10 +0200 Subject: [PATCH] NOCG support --- Update/_kakera52.txt | 2 ++ Update/_mats_006.txt | 10 ++++++++++ Update/_mats_007.txt | 6 ++++++ Update/_mats_009.txt | 6 ++++++ Update/_mats_017.txt | 8 ++++++++ Update/_mats_018.txt | 1 + Update/_mats_021.txt | 5 +++++ Update/_mats_022.txt | 3 ++- Update/_mats_024.txt | 3 +++ 9 files changed, 43 insertions(+), 1 deletion(-) diff --git a/Update/_kakera52.txt b/Update/_kakera52.txt index 7811b2c..80caac7 100644 --- a/Update/_kakera52.txt +++ b/Update/_kakera52.txt @@ -174,6 +174,7 @@ void main() NULL, "The woman said to the girl:", Line_Normal); ClearMessage(); + if (GetGlobalFlag(GHideCG)) {DrawScene("black", 400 );} if (GetGlobalFlag(GADVMode)) { OutputLine("???", NULL, "???", NULL, Line_ContinueAfterTyping); } ModPlayVoiceLS(4, 5, "ps3/s20/05/vtk2_rika2082", 128, TRUE); @@ -184,6 +185,7 @@ void main() NULL, " Or do you want to die?\"", Line_Normal); ClearMessage(); + if (GetGlobalFlag(GHideCG)) {DrawScene("background/koudou", 400 );} if (GetGlobalFlag(GADVMode)) { OutputLineAll("", NULL, Line_ContinueAfterTyping); } OutputLine(NULL, " それだけを聞いたなら、普通の人なら、おかしな人だと訝しがるだろう。", diff --git a/Update/_mats_006.txt b/Update/_mats_006.txt index c0777a4..39025a8 100644 --- a/Update/_mats_006.txt +++ b/Update/_mats_006.txt @@ -862,6 +862,7 @@ void main() ClearMessage(); DrawScene( "scene/401a", 400 ); + if (GetGlobalFlag(GHideCG)) {DrawScene("background/ymo3_01", 400 );} if (GetGlobalFlag(GADVMode)) { OutputLineAll("", NULL, Line_ContinueAfterTyping); } OutputLine(NULL, " 天を仰いでも、私の顔面を冷たく大粒の雨が叩きつけるだけだ。", @@ -897,6 +898,9 @@ void main() PlaySE( 0, "s_daidageki", 128, 64 ); DrawScene( "scene/401c", 100 ); DrawScene( "scene/401a", 600 ); + if (GetGlobalFlag(GHideCG)) {DrawScene("white", 50 );} + if (GetGlobalFlag(GHideCG)) {DrawScene("black", 100 );} + if (GetGlobalFlag(GHideCG)) {DrawScene("background/ymo3_01", 600 );} if (GetGlobalFlag(GADVMode)) { OutputLineAll("", NULL, Line_ContinueAfterTyping); } OutputLine(NULL, " 天にごろごろと雷鳴が轟いた。", @@ -958,6 +962,9 @@ void main() PlaySE( 0, "s_daidageki", 128, 64 ); DrawScene( "scene/401d", 100 ); DrawScene( "scene/401b", 600 ); + if (GetGlobalFlag(GHideCG)) {DrawScene("white", 50 );} + if (GetGlobalFlag(GHideCG)) {DrawScene("black", 100 );} + if (GetGlobalFlag(GHideCG)) {DrawScene("background/ymo3_01", 600 );} if (GetGlobalFlag(GADVMode)) { OutputLineAll("", NULL, Line_ContinueAfterTyping); } OutputLine(NULL, " 天は再び相槌を打つ。", @@ -1015,6 +1022,9 @@ void main() PlaySE( 0, "s_daidageki", 128, 64 ); DrawScene( "scene/401d", 100 ); DrawScene( "scene/401b", 500 ); + if (GetGlobalFlag(GHideCG)) {DrawScene("white", 50 );} + if (GetGlobalFlag(GHideCG)) {DrawScene("black", 100 );} + if (GetGlobalFlag(GHideCG)) {DrawScene("background/ymo3_01", 600 );} if (GetGlobalFlag(GADVMode)) { OutputLineAll("", NULL, Line_ContinueAfterTyping); } OutputLine(NULL, " 天はもう一度、唸り声をあげる。", diff --git a/Update/_mats_007.txt b/Update/_mats_007.txt index 5a42ba0..64e5222 100644 --- a/Update/_mats_007.txt +++ b/Update/_mats_007.txt @@ -5009,6 +5009,8 @@ void main() ClearMessage(); DrawScene( "scene/402a", 400 ); + if (GetGlobalFlag(GHideCG)) {DisableWindow();} + if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(2, 12, "sprite/ha1_muhyou_", "0", 160, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 10, 200, TRUE );} if (GetGlobalFlag(GADVMode)) { OutputLine("少女", NULL, "Girl", NULL, Line_ContinueAfterTyping); } ModPlayVoiceLS(4, 12, "ps3/s13/12/550600005", 128, TRUE); @@ -5068,6 +5070,8 @@ void main() DrawBustshot(3, "scene/402b", 540, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 20, 0, TRUE ); PlaySE( 0, "s_furu", 128, 64 ); MoveBustshot( 3, NULL, 0, 0, 0, 20, 250, TRUE ); + if (GetGlobalFlag(GHideCG)) {DisableWindow();} + if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(2, 12, "sprite/ha1_def2_", "0", 160, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 10, 200, TRUE );} Wait( 100 ); if (GetGlobalFlag(GADVMode)) { OutputLine("少女", NULL, "Girl", NULL, Line_ContinueAfterTyping); } @@ -5112,6 +5116,8 @@ void main() ClearMessage(); FadeOutBGM( 0, 300, FALSE ); + if (GetGlobalFlag(GHideCG)) {DisableWindow();} + if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(2, 12, "sprite/ha1_muhyou_", "0", 160, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 10, 200, TRUE );} PlayBGM( 1, "higurashi", 120, 0 ); if (GetGlobalFlag(GADVMode)) { OutputLine("少女", NULL, "Girl", NULL, Line_ContinueAfterTyping); } diff --git a/Update/_mats_009.txt b/Update/_mats_009.txt index 21384dd..95de16a 100644 --- a/Update/_mats_009.txt +++ b/Update/_mats_009.txt @@ -358,6 +358,10 @@ void main() PlaySE( 0, "s_door", 128, 64 ); PlayBGM( 0, "air_pizz_ver2", 120, 0 ); DrawSceneWithMask( "scene/403a", "maskright", 7, 0, 300 ); + if (GetGlobalFlag(GHideCG)) {ModSetLayerFilter(1, 256, "none");} + if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(1, 22, "sprite/tie_1_", "0", 160, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 0, 0, FALSE );} + if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(0, 12, "sprite/ha3a_au_", "2", -160, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 5, 0, FALSE );} + if (GetGlobalFlag(GHideCG)) {DrawSceneWithMask( "background/gk1", "maskright", 1, 0, 300 );} if (GetGlobalFlag(GADVMode)) { OutputLine("羽入", NULL, "Hanyuu", NULL, Line_ContinueAfterTyping); } ModPlayVoiceLS(4, 12, "ps3/s13/12/ds41070001", 128, TRUE); @@ -479,6 +483,8 @@ void main() ClearMessage(); DrawScene( "scene/403b", 1000 ); + if (GetGlobalFlag(GHideCG)) {DisableWindow();} + if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(0, 12, "sprite/ha3a_au_", "2", 0, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 5, 300, TRUE );} if (GetGlobalFlag(GADVMode)) { OutputLine("羽入", NULL, "Hanyuu", NULL, Line_ContinueAfterTyping); } ModPlayVoiceLS(4, 12, "ps3/s13/12/ds41070002", 128, TRUE); diff --git a/Update/_mats_017.txt b/Update/_mats_017.txt index 75915be..fd14304 100644 --- a/Update/_mats_017.txt +++ b/Update/_mats_017.txt @@ -1079,6 +1079,7 @@ void main() ClearMessage(); DrawSceneWithMask( "scene/404b", "maskup", 1, 0, 300 ); + if (GetGlobalFlag(GHideCG)) {DrawSceneWithMask( "background/sora2", "maskup", 1, 0, 300 );} if (GetGlobalFlag(GADVMode)) { OutputLine("大石", NULL, "Ooishi", NULL, Line_ContinueAfterTyping); } ModPlayVoiceLS(4, 11, "ps3/s13/11/ds41110257", 128, TRUE); @@ -1167,6 +1168,11 @@ void main() FadeOutBGM( 0, 300, FALSE ); DrawSceneWithMask( "scene/404a", "maskup", 1, 0, 300 ); + if (GetGlobalFlag(GHideCG)) {ModSetLayerFilter(1, 256, "sunset");} + if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(1, 16, "sprite/aka_def_", "0", -160, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 0, 0, FALSE );} + if (GetGlobalFlag(GHideCG)) {ModSetLayerFilter(2, 256, "sunset");} + if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(2, 6, "sprite/si1a_majime_a1_", "0", 160, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 10, 0, FALSE );} + if (GetGlobalFlag(GHideCG)) {DrawSceneWithMask( "background/ohaka_02", "maskup", 1, 0, 300 );} if (GetGlobalFlag(GADVMode)) { OutputLine("大石", NULL, "Ooishi", NULL, Line_ContinueAfterTyping); } ModPlayVoiceLS(4, 11, "ps3/s13/11/ds41110261", 128, TRUE); @@ -1258,6 +1264,8 @@ void main() NULL, " They're nice.\"", Line_Normal); ClearMessage(); +if (GetGlobalFlag(GHideCG)) {DisableWindow();} +if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(2, 6, "sprite/si1b_wink_b1_", "0", 160, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 10, 200, TRUE );} if (GetGlobalFlag(GADVMode)) { OutputLine("詩音", NULL, "Shion", NULL, Line_ContinueAfterTyping); } ModPlayVoiceLS(4, 6, "ps3/s13/06/ds41060001", 128, TRUE); diff --git a/Update/_mats_018.txt b/Update/_mats_018.txt index d032835..d64ef8f 100644 --- a/Update/_mats_018.txt +++ b/Update/_mats_018.txt @@ -1837,6 +1837,7 @@ void main() SetSpeedOfMessage( FALSE, 0 ); DrawScene( "scene/sil5", 400 ); + if (GetGlobalFlag(GHideCG)) {DrawScene("background/aka1", 400 );} if (GetGlobalFlag(GADVMode)) { OutputLineAll("", NULL, Line_ContinueAfterTyping); } OutputLine(NULL, " 蹴らないで、蹴らないで…!!", diff --git a/Update/_mats_021.txt b/Update/_mats_021.txt index ee3ee83..8fd0c82 100644 --- a/Update/_mats_021.txt +++ b/Update/_mats_021.txt @@ -5917,6 +5917,7 @@ void main() DrawScene( "black", 50 ); PlaySE( 0, "s_furu", 128, 64 ); DrawBustshotWithFiltering(5, "scene/cutin2", "maskright", 0, 0, 0, FALSE, 0, 0, 0, 0, 0, 25, 200, TRUE ); + if (GetGlobalFlag(GHideCG)) {DrawScene( "white", 150 );} StartShakingOfWindow( 248, 30, 0, 2, 2*2, FALSE ); StartShakingOfAllObjects( 248, 30, 0, 2, 2*2, TRUE ); DrawScene( "black", 200 ); @@ -5956,11 +5957,13 @@ void main() DrawScene( "black", 100 ); PlaySE( 0, "s_daidageki", 128, 64 ); DrawBustshotWithFiltering(5, "scene/cutin4", "maskdown", 0, 0, 0, FALSE, 0, 0, 0, 0, 0, 25, 300, TRUE ); + if (GetGlobalFlag(GHideCG)) {DrawScene( "background/furiker_b", 150 );} StartShakingOfWindow( 241, 40, 0, 2, 4*2, FALSE ); StartShakingOfAllObjects( 241, 40, 0, 2, 4*2, TRUE ); DrawScene( "black", 200 ); PlaySE( 0, "s_daidageki", 128, 64 ); DrawBustshotWithFiltering(5, "scene/cutin3", "maskup", 0, 0, 0, FALSE, 0, 0, 0, 0, 0, 25, 300, TRUE ); + if (GetGlobalFlag(GHideCG)) {DrawScene( "background/furiker_a", 150 );} StartShakingOfWindow( 241, 40, 0, 2, 4*2, FALSE ); StartShakingOfAllObjects( 241, 40, 0, 2, 4*2, TRUE ); DrawScene( "black", 200 ); @@ -6890,6 +6893,7 @@ void main() PlaySE( 0, "s_furu", 128, 64 ); DrawScene( "scene/405a", 300 ); + if (GetGlobalFlag(GHideCG)) {DrawScene("black", 200 );} StartShakingOfWindow( 248, 30, 0, 2, 2*2, FALSE ); StartShakingOfAllObjects( 248, 30, 0, 2, 2*2, TRUE ); @@ -6904,6 +6908,7 @@ void main() PlaySE( 0, "s_daidageki", 128, 64 ); FadeOutBGM( 0, 300, FALSE ); DrawScene( "scene/405b", 50 ); + if (GetGlobalFlag(GHideCG)) {DrawScene("background/sora5", 50 );} StartShakingOfWindow( 248, 30, 0, 2, 2*2, FALSE ); StartShakingOfAllObjects( 248, 30, 0, 2, 2*2, TRUE ); if (GetGlobalFlag(GADVMode)) { OutputLineAll("", NULL, Line_ContinueAfterTyping); } diff --git a/Update/_mats_022.txt b/Update/_mats_022.txt index 04cdf27..46239da 100644 --- a/Update/_mats_022.txt +++ b/Update/_mats_022.txt @@ -6509,7 +6509,7 @@ void main() StartShakingOfAllObjects( 241, 40, 0, 2, 4*2, TRUE ); DrawBustshot(5, "background/fure2", 0, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 5, 500, TRUE ); OutputLineAll(NULL, "", Line_WaitForInput); - + //VoiceMatching if(GetGlobalFlag(GCensor) >= 4){ModCallScriptSection("_zmats_022_vm0x_n01","dialog001");} if(GetGlobalFlag(GCensor) <= 3){ModCallScriptSection("_zmats_022_vm00_n01","dialog001");} @@ -6591,6 +6591,7 @@ void main() PlaySE( 0, "s_furu", 128, 64 ); Wait( 300 ); DrawBustshot(0, "scene/irie_mih", 0, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 9, 0, FALSE ); + if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(0, 10, "sprite/iri2_majime2_", "0", 0, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 9, 0, FALSE );} DrawScene( "background/furiker_c", 50 ); PlaySE( 0, "s_Kyupiin", 128, 64 ); StartShakingOfWindow( 241, 40, 0, 2, 5*2, FALSE ); diff --git a/Update/_mats_024.txt b/Update/_mats_024.txt index f921a7e..0c05065 100644 --- a/Update/_mats_024.txt +++ b/Update/_mats_024.txt @@ -5170,6 +5170,8 @@ void main() ClearMessage(); DrawScene( "scene/408a", 1000 ); + if (GetGlobalFlag(GHideCG)) {DisableWindow();} + if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(1, 9, "sprite/ta5_iradachi_", "0", -160, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 0, 300, TRUE );} PlayBGM( 1, "higurashi", 120, 0 ); if (GetGlobalFlag(GADVMode)) { OutputLine("鷹野", NULL, "Takano", NULL, Line_ContinueAfterTyping); } @@ -5181,6 +5183,7 @@ void main() NULL, " Okay, okay, okay.", Line_Continue); Wait( 2400 ); DrawBustshot(5, "scene/408b", 0, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 25, 200, TRUE ); + if (GetGlobalFlag(GHideCG)) {ModDrawCharacter(1, 9, "sprite/ta5_sakebi_", "2", -160, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, 0, 200, TRUE );} OutputLine(NULL, "なら死ねッ!!!」", NULL, " Fine, die!!!\"", GetGlobalFlag(GLinemodeSp)); if (GetGlobalFlag(GADVMode)) { ClearMessage(); } else { OutputLineAll(NULL, "\n", Line_ContinueAfterTyping); }