Add generic warning when loading other weapon mods.

(Plus small tweaks to the anti-BD script)
This commit is contained in:
Mari the Deer 2025-02-06 11:51:14 +01:00
commit 8526c2ffb0
4 changed files with 129 additions and 35 deletions

View file

@ -36,10 +36,10 @@ Class SWWMHDoomHandler : StaticEventHandler
SetRandomSeed[hdscreen](Random[hdscreen]()+consoleplayer+int(MSTimeF()));
Console.PrintfEx(PRINT_HIGH|PRINT_NONOTIFY,
"\cx┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\c-\n"
"\cx┃ \cfOh my, someone appears to be \cgH \ckO \cdR \cvN \chY \ct♥ \cx┃\c-\n"
"\cx┃ \cfWell, too bad, this mod isn't compatible with H-Doom \cx┃\c-\n"
"\cx┃ \cfOh my, someone appears to be \cgH \ckO \cdR \cvN \chY \ct♥\cx ┃\c-\n"
"\cx┃ \cfWell, too bad, this mod isn't compatible with H-Doom\cx ┃\c-\n"
"\cx┃ ┃\c-\n"
"\cx┃ \cfget bonked \cx┃\c-\n"
"\cx┃ \cfget bonked\cx ┃\c-\n"
"\cx┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\c-");
S_StartSound("compat/warn",CHAN_YABLEWIT,CHANF_UI|CHANF_NOPAUSE|CHANF_OVERLAP,1,ATTN_NONE);
}

View file

@ -23,7 +23,6 @@ Class SWWMBrutalHandler : StaticEventHandler
ui TextureID boydance[10], boykiss;
ui int boyframe, boystate, boyloop1, boyloop2, boytimer, boyseq[12];
bool detected;
String which, whichshort;
const BOYTICRATE = 5;
@ -32,33 +31,21 @@ Class SWWMBrutalHandler : StaticEventHandler
// check for brutal doom
foreach ( cls:AllActorClasses )
{
if ( cls is 'PlayerPawn' )
if ( (cls.GetClassName() == 'Doomer') || (cls.GetClassName() == 'BDoomer') || (cls.GetClassName() == 'BEDoomer') )
{
if ( (cls.GetClassName() == 'Doomer') || (cls.GetClassName() == 'BDoomer') || (cls.GetClassName() == 'BEDoomer') )
{
detected = true;
which = "Brutal Doom";
whichshort = "BD";
}
else if ( (cls.GetClassName() == 'BrutalDoomer') || (cls.GetClassName() == 'PB_PlayerPawn') )
{
detected = true;
which = "Project Brutality";
whichshort = "PB";
}
detected = true;
}
if ( !detected ) continue;
let shnd = SWWMStaticHandler(StaticEventHandler.Find("SWWMStaticHandler"));
shnd.isbd = true;
shnd.bdname = which;
Console.PrintfEx(PRINT_HIGH|PRINT_NONOTIFY,
"\cx┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\c-\n"
"\cx┃ \cfIf you have "..whichshort.." on your autoload you really shouldn't. \cx┃\c-\n"
"\cx┃ \cfIf you manually loaded it with this mod, why would you? \cx┃\c-\n"
"\cx┃ \cfThey're not compatible and never will be. \cx┃\c-\n"
"\cx┃ \cfThis mod will now shit the bed once you go in-game, \cx┃\c-\n"
"\cx┃ \cfand trust me, it's better this way. \cx┃\c-\n"
"\cx┃ \cf<See you again, have a nice day> \cx┃\c-\n"
"\cx┃ \cfIf you have BD on your autoload you really shouldn't.\cx ┃\c-\n"
"\cx┃ \cfIf you manually loaded it with this mod, why would you?\cx ┃\c-\n"
"\cx┃ \cfThey're not compatible and never will be.\cx ┃\c-\n"
"\cx┃ \cfThis mod will now shit the bed once you go in-game,\cx ┃\c-\n"
"\cx┃ \cfand trust me, it's better this way.\cx ┃\c-\n"
"\cx┃ \cf<See you again, have a nice day>\cx ┃\c-\n"
"\cx┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\c-");
S_StartSound("compat/warn",CHAN_YABLEWIT,CHANF_UI|CHANF_NOPAUSE|CHANF_OVERLAP,1,ATTN_NONE);
break;
@ -86,7 +73,34 @@ Class SWWMBrutalHandler : StaticEventHandler
S_StartSound("misc/spawn",CHAN_YABLEWIT,CHANF_UI|CHANF_NOPAUSE|CHANF_OVERLAP,1.,ATTN_NONE);
S_StartSound("misc/spawn",CHAN_YABLEWIT,CHANF_UI|CHANF_NOPAUSE|CHANF_OVERLAP,1.,ATTN_NONE);
S_ChangeMusic("",force:true);
Console.PrintfEx(PRINT_HIGH|PRINT_NONOTIFY,"\n\n\cjYou like playing \cg"..which.."\cj don't you?\c-\n\n\n");
Console.PrintfEx(PRINT_HIGH|PRINT_NONOTIFY,
"\cj⢀⡾⠳⣄⣠⡴⠛⣆\n"
"\cj⢠⡟⠈⠳⣄⣠⠞⠉⠸⣆\c-\n"
"\cj⢠⡟⠈⢳⣄⢠⡤⣤⣤⣀⡀⣠⠞⠁⢻⡀\c-\n"
"\cj⠙⢷⡀⢸⡇⠉⠙⠳⢦⣄⣠⠞⠁⠘⣇\c-\n"
"\cj⢰⡇⠙⣦⡀⠻⣄⠈⠻⣦⣀⡾⠋⣿\c-\n"
"\cj⢸⡇⢀⣨⡷⠞⠛⠛⠈⠻⣦⣿\c-\n"
"\cj⢸⡇⢴⣯⣥⣤⣤⣤⣤⠴⣿\c-\n"
"\cj⠸⡇⢰⡇\c-\n"
"\cj⢿⡀⢀⡾\c-\n"
"\cj⠈⢧⢤⣤⡤⠤⢤⣤⣤⣤⣤⡄⣶⣶⣿⣿⣟⠛⠛⢿⡛⢀⡾⠁\c-\n"
"\cj⠈⢷⡀⢸⣿⣿⣿⣿⡇⣿⣿⣿⣿⣿⠘⡇⣠⣟⣁⣀\c-\n"
"\cj⢻⡟⠓⠶⠶⠿⢸⡇⠘⣿⣿⣿⣿⠇⣿⣿⣿⣿⡏⠈⠉⠉⣩⡟\c-\n"
"\cj⠻⣄⡀⠘⣧⢻⣿⣿⡟⢀⣀⡀⠈⠿⠿⠟⠁⣀⡴⠋\c-\n"
"\cj⢨⡏⠠⠶⣿⣤⠶⠰⢿⣷⠞⠻⣦\c-\n"
"\cj⢠⡟⠰⣤⣤⡴⠟⠶⠶⠶⠛⠈⠁⠈⢷⡀\c-\n"
"\cj⠿⢤⡤⠴⠶⠶⣤⣀⣀⣠⡴⠞⠛⠓⠒⠛⠛⠋⠁\c-\n"
"\cj⠉⠻⣶⠶⣤⣤⣤⡄⠛⣿⠉⠁\c-\n"
"\cj⠙⢦⣄⠘⣧\c-\n"
"\cj⣴⠟⠁⠸⣇\c-\n"
"\cj⠼⠷⢶⡶⢹⡄\c-\n"
"\cj⡾⠁⠈⣧\c-\n"
"\cj⣸⠇⢹⡆\c-\n"
"\cj⠈⣇\c-\n"
"\cj⢸⡇\c-\n"
"\cj\c-\n"
"\cj⢸⡇\c-\n"
"\cjYou like playing \cgBrutal Doom\cj, don't you?\c-");
}
else if ( timer == 140 )
{
@ -196,7 +210,7 @@ Class SWWMBrutalHandler : StaticEventHandler
if ( !detected ) return;
Screen.Dim("White",clamp((timer+e.fractic)/70.,0.,1.),0,0,Screen.GetWidth(),Screen.GetHeight());
if ( timer < 70 ) return;
String str = "You like playing \cg"..which.."\c- don't you?";
String str = "You like playing \cgBrutal Doom\c-, don't you?";
int boxh = fnt?((fnt.GetHeight()+16)*CleanYFac):0;
double scl = (Screen.GetHeight()-boxh)/2048.;
if ( boykiss.IsValid() ) Screen.DrawTexture(boykiss,false,Screen.GetWidth()/2,(Screen.GetHeight()-boxh)/2,DTA_CenterOffset,true,DTA_ScaleX,scl,DTA_ScaleY,scl);